]> granicus.if.org Git - icu/commitdiff
ICU-12677 clean up extra trailing spaces.
authorAndy Heninger <andy.heninger@gmail.com>
Tue, 6 Feb 2018 21:28:05 +0000 (21:28 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Tue, 6 Feb 2018 21:28:05 +0000 (21:28 +0000)
X-SVN-Rev: 40844

icu4c/source/common/rbbiscan.cpp
icu4c/source/test/intltest/rbbitst.cpp

index 49a58068a96f03f6115fb9ecb1c6ea7748019ba8..60f3d197c291882cf9c98a6b1af001e628cdbeaa 100644 (file)
@@ -830,7 +830,7 @@ UnicodeString RBBIRuleScanner::stripRules(const UnicodeString &rules) {
     UnicodeString strippedRules;
     int32_t rulesLength = rules.length();
     bool skippingSpaces = false;
-    
+
     for (int32_t idx=0; idx<rulesLength; idx = rules.moveIndex32(idx, 1)) {
         UChar32 cp = rules.char32At(idx);
         bool whiteSpace = u_hasBinaryProperty(cp, UCHAR_PATTERN_WHITE_SPACE);
index 98b95bb7e2dd00fef18c184c1759f9c930e4fb80..98a1c900ceb0b4f56d7b0f0882f6beb0f0d8c69e 100644 (file)
@@ -4445,13 +4445,13 @@ void RBBITest::TestBug12677() {
                          " # .;        # a comment that looks sort of like a rule.   \n"
                          " '#' '?';    # a rule with a quoted #   \n"
                        );
-    
+
     UErrorCode status = U_ZERO_ERROR;
     UParseError pe;
-    RuleBasedBreakIterator bi (rules, pe, status);
+    RuleBasedBreakIterator bi(rules, pe, status);
     assertSuccess(WHERE, status);
     UnicodeString rtRules = bi.getRules();
-    assertEquals(WHERE, UnicodeString(u"!!forward; $x = [ab#]; '#' '?'; "),  rtRules); 
+    assertEquals(WHERE, UnicodeString(u"!!forward; $x = [ab#]; '#' '?'; "),  rtRules);
 }
 
 //