mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-20601 Add missing semicolons.
The way these macros currently are defined, the code compiles also without the final semicolons. But for consistency and in order to allow the macro definitions to be updated also these macro invocations should have final semicolons just like in the rest of this code base.
This commit is contained in:
parent
17606e0345
commit
aa60d4292e
4 changed files with 7 additions and 7 deletions
|
@ -1878,7 +1878,7 @@ TimeZoneFormat::parseOffsetFieldsWithPattern(const UnicodeString& text, int32_t
|
|||
while (len > 0) {
|
||||
UChar32 ch;
|
||||
int32_t chLen;
|
||||
U16_GET(patStr, 0, 0, len, ch)
|
||||
U16_GET(patStr, 0, 0, len, ch);
|
||||
if (PatternProps::isWhiteSpace(ch)) {
|
||||
chLen = U16_LENGTH(ch);
|
||||
len -= chLen;
|
||||
|
|
|
@ -691,7 +691,7 @@ static void TestRegexCAPI(void) {
|
|||
|
||||
|
||||
/* SetRegion(), getRegion() do something */
|
||||
TEST_SETUP(".*", "0123456789ABCDEF", 0)
|
||||
TEST_SETUP(".*", "0123456789ABCDEF", 0);
|
||||
UChar resultString[40];
|
||||
TEST_ASSERT(uregex_regionStart(re, &status) == 0);
|
||||
TEST_ASSERT(uregex_regionEnd(re, &status) == 16);
|
||||
|
@ -699,7 +699,7 @@ static void TestRegexCAPI(void) {
|
|||
TEST_ASSERT(uregex_regionStart(re, &status) == 3);
|
||||
TEST_ASSERT(uregex_regionEnd(re, &status) == 6);
|
||||
TEST_ASSERT(uregex_findNext(re, &status));
|
||||
TEST_ASSERT(uregex_group(re, 0, resultString, UPRV_LENGTHOF(resultString), &status) == 3)
|
||||
TEST_ASSERT(uregex_group(re, 0, resultString, UPRV_LENGTHOF(resultString), &status) == 3);
|
||||
TEST_ASSERT_STRING("345", resultString, TRUE);
|
||||
TEST_TEARDOWN;
|
||||
|
||||
|
@ -1322,7 +1322,7 @@ static void TestRegexCAPI(void) {
|
|||
* to be invoked. The nested '+' operators give exponential time
|
||||
* behavior with increasing string length.
|
||||
*/
|
||||
TEST_SETUP("((.)+\\2)+x", "aaaaaaaaaaaaaaaaaaab", 0)
|
||||
TEST_SETUP("((.)+\\2)+x", "aaaaaaaaaaaaaaaaaaab", 0);
|
||||
callBackContext cbInfo = {4, 0, 0};
|
||||
const void *pContext = &cbInfo;
|
||||
URegexMatchCallback *returnedFn = &TestCallbackFn;
|
||||
|
|
|
@ -319,7 +319,7 @@ static void TestUSpoofCAPI(void) {
|
|||
result = uspoof_check(sc, scMixed, -1, NULL, &status);
|
||||
TEST_ASSERT_SUCCESS(status);
|
||||
TEST_ASSERT_EQ(USPOOF_SINGLE_SCRIPT, result);
|
||||
TEST_TEARDOWN
|
||||
TEST_TEARDOWN;
|
||||
|
||||
|
||||
/*
|
||||
|
@ -358,7 +358,7 @@ static void TestUSpoofCAPI(void) {
|
|||
/* Default allowed locales list should be empty */
|
||||
allowedLocales = uspoof_getAllowedLocales(sc, &status);
|
||||
TEST_ASSERT_SUCCESS(status);
|
||||
TEST_ASSERT(strcmp("", allowedLocales) == 0)
|
||||
TEST_ASSERT(strcmp("", allowedLocales) == 0);
|
||||
|
||||
/* Allow en and ru, which should enable Latin and Cyrillic only to pass */
|
||||
uspoof_setAllowedLocales(sc, "en, ru_RU", &status);
|
||||
|
|
|
@ -266,7 +266,7 @@ void UTextTest::TestString(const UnicodeString &s) {
|
|||
i = 0; // native utf-8 index
|
||||
for (j=0; j<cpCount ; j++) { // code point number
|
||||
u8Map[j].nativeIdx = i;
|
||||
U8_NEXT(u8String, i, u8Len, c)
|
||||
U8_NEXT(u8String, i, u8Len, c);
|
||||
u8Map[j].cp = c;
|
||||
}
|
||||
u8Map[cpCount].nativeIdx = u8Len; // position following the last char in utf-8 string.
|
||||
|
|
Loading…
Add table
Reference in a new issue