Lines Matching refs:UPRV_LENGTHOF
36 #ifndef UPRV_LENGTHOF
37 #define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) macro
120 printUString("iterate forward through: ", input, UPRV_LENGTHOF(input)); in demo_utf_h_macros()
121 for(i=0; i<UPRV_LENGTHOF(input); /* U16_NEXT post-increments */) { in demo_utf_h_macros()
129 U16_NEXT(input, i, UPRV_LENGTHOF(input), c); in demo_utf_h_macros()
137 U16_APPEND(input, i, UPRV_LENGTHOF(input), 0x0062, isError); in demo_utf_h_macros()
139 printUString("iterate backward through: ", input, UPRV_LENGTHOF(input)); in demo_utf_h_macros()
140 for(i=UPRV_LENGTHOF(input); i>0; /* U16_PREV pre-decrements */) { in demo_utf_h_macros()
227 for(i=j=0; j<UPRV_LENGTHOF(buffer) && !isError; /* U16_NEXT post-increments */) { in demoCaseMapInC()
233 U16_APPEND(buffer, j, UPRV_LENGTHOF(buffer), c, isError); in demoCaseMapInC()
238 for(i=j=0; j<UPRV_LENGTHOF(buffer) && !isError; /* U16_NEXT post-increments */) { in demoCaseMapInC()
244 U16_APPEND(buffer, j, UPRV_LENGTHOF(buffer), c, isError); in demoCaseMapInC()
249 for(i=j=0; j<UPRV_LENGTHOF(buffer) && !isError; /* U16_NEXT post-increments */) { in demoCaseMapInC()
255 U16_APPEND(buffer, j, UPRV_LENGTHOF(buffer), c, isError); in demoCaseMapInC()
260 for(i=j=0; j<UPRV_LENGTHOF(buffer) && !isError; /* U16_NEXT post-increments */) { in demoCaseMapInC()
266 U16_APPEND(buffer, j, UPRV_LENGTHOF(buffer), c, isError); in demoCaseMapInC()
271 for(i=j=0; j<UPRV_LENGTHOF(buffer) && !isError; /* U16_NEXT post-increments */) { in demoCaseMapInC()
277 U16_APPEND(buffer, j, UPRV_LENGTHOF(buffer), c, isError); in demoCaseMapInC()
298 length=u_strToLower(buffer, UPRV_LENGTHOF(buffer), input, -1, "en", &errorCode); in demoCaseMapInC()
306 length=u_strToLower(buffer, UPRV_LENGTHOF(buffer), input, -1, "tr", &errorCode); in demoCaseMapInC()
314 length=u_strToUpper(buffer, UPRV_LENGTHOF(buffer), input, -1, "en", &errorCode); in demoCaseMapInC()
322 length=u_strToUpper(buffer, UPRV_LENGTHOF(buffer), input, -1, "tr", &errorCode); in demoCaseMapInC()
330 length=u_strToTitle(buffer, UPRV_LENGTHOF(buffer), input, -1, NULL, "en", &errorCode); in demoCaseMapInC()
338 length=u_strToTitle(buffer, UPRV_LENGTHOF(buffer), input, -1, NULL, "tr", &errorCode); in demoCaseMapInC()
346 length=u_strFoldCase(buffer, UPRV_LENGTHOF(buffer), input, -1, U_FOLD_CASE_DEFAULT, &errorCode); in demoCaseMapInC()
354 …length=u_strFoldCase(buffer, UPRV_LENGTHOF(buffer), input, -1, U_FOLD_CASE_EXCLUDE_SPECIAL_I, &err… in demoCaseMapInC()
441 one.setTo(readonly, UPRV_LENGTHOF(readonly)); in demoUnicodeStringStorage()
445 one+=UnicodeString(writeable, UPRV_LENGTHOF(writeable)); in demoUnicodeStringStorage()
456 UnicodeString three(FALSE, readonly, UPRV_LENGTHOF(readonly)); in demoUnicodeStringStorage()
468 one.setTo(FALSE, writeable, UPRV_LENGTHOF(writeable)); in demoUnicodeStringStorage()
481 UnicodeString four(writeable, UPRV_LENGTHOF(writeable), UPRV_LENGTHOF(writeable)); in demoUnicodeStringStorage()
498 one.setTo(writeable, UPRV_LENGTHOF(writeable), UPRV_LENGTHOF(writeable)); in demoUnicodeStringStorage()
512 if(one.length()<UPRV_LENGTHOF(writeable)) { in demoUnicodeStringStorage()
515 i=UPRV_LENGTHOF(writeable); in demoUnicodeStringStorage()
518 for(i=0; i<UPRV_LENGTHOF(writeable); ++i) { in demoUnicodeStringStorage()
581 buffer, UPRV_LENGTHOF(buffer)); in demoUnicodeStringInit()