]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/affixpatternparser.cpp
ICU-59117.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / affixpatternparser.cpp
index 41eadef2b3a88a8e22f4b3faa310ce175b1891cc..fcc6f226eb2f5a65a42e31ec53c8aa4fda5f7215 100644 (file)
@@ -1,3 +1,5 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
  * Copyright (C) 2015, International Business Machines
  * Corporation and others.  All Rights Reserved.
@@ -11,7 +13,9 @@
 
 #include "unicode/dcfmtsym.h"
 #include "unicode/plurrule.h"
+#include "unicode/strenum.h"
 #include "unicode/ucurr.h"
+#include "unicode/ustring.h"
 #include "affixpatternparser.h"
 #include "charstr.h"
 #include "precision.h"
@@ -44,7 +48,8 @@ nextToken(const UChar *buffer, int32_t idx, int32_t len, UChar *token) {
     *token = buffer[idx + 1];
     if (buffer[idx + 1] == 0xA4) {
         int32_t i = 2;
-        for (; idx + i < len && i < 4 && buffer[idx + i] == buffer[idx + 1]; ++i);
+        for (; idx + i < len && i < 4 && buffer[idx + i] == buffer[idx + 1]; ++i)
+          ;
         return i;
     }
     return 2;
@@ -66,7 +71,8 @@ nextUserToken(const UChar *buffer, int32_t idx, int32_t len, UChar *token) {
         break;
     }
     int32_t i = 1;
-    for (; idx + i < len && i < max && buffer[idx + i] == buffer[idx]; ++i);
+    for (; idx + i < len && i < max && buffer[idx + i] == buffer[idx]; ++i)
+      ;
     return i;
 }