]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/search.cpp
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / i18n / search.cpp
index fca18fe77d32ddf67bf707a80f15836b536cc853..c190e94b103631cb41953f29f7611f5d560b93d6 100644 (file)
@@ -235,14 +235,14 @@ int32_t SearchIterator::next(UErrorCode &status)
         }
 
         if (matchlength > 0) {
-                       // if matchlength is 0 we are at the start of the iteration
-                       if (m_search_->isOverlap) {
-                               offset ++;
-                       }
-                       else {
-                               offset += matchlength;
-                       }
-               }
+            // if matchlength is 0 we are at the start of the iteration
+            if (m_search_->isOverlap) {
+                offset ++;
+            }
+            else {
+                offset += matchlength;
+            }
+        }
         return handleNext(offset, status);
     }
     return USEARCH_DONE;