Lines Matching refs:buffer
40 UChar buffer[32]; in TestCaseLower() local
45 buffer[0]=0xabcd; in TestCaseLower()
47 length=u_strToLower(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseLower()
53 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseLower()
54 buffer[length]!=0 in TestCaseLower()
59 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)==0 && in TestCaseLower()
60 buffer[length]==0 ? "yes" : "no", in TestCaseLower()
62 aescstrdup(buffer,-1)); in TestCaseLower()
66 uprv_memcpy(buffer, beforeLower, sizeof(beforeLower)); in TestCaseLower()
67 buffer[sizeof(beforeLower)/U_SIZEOF_UCHAR]=0; in TestCaseLower()
69 length=u_strToLower(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseLower()
70 buffer, -1, /* implicit srcLength */ in TestCaseLower()
75 uprv_memcmp(lowerTurkish, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseLower()
76 buffer[length]!=0 in TestCaseLower()
81 … uprv_memcmp(lowerTurkish, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" : "no"); in TestCaseLower()
85 buffer[0]=buffer[2]=0xabcd; in TestCaseLower()
87 length=u_strToLower(buffer, 2, /* set destCapacity=2 */ in TestCaseLower()
93 uprv_memcmp(lowerRoot, buffer, 2*U_SIZEOF_UCHAR)!=0 || in TestCaseLower()
94 buffer[2]!=0xabcd in TestCaseLower()
99 … uprv_memcmp(lowerRoot, buffer, 2*U_SIZEOF_UCHAR)==0 && buffer[2]==0xabcd ? "yes" : "no"); in TestCaseLower()
104 length=u_strToLower(NULL, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseLower()
114 buffer[0]=0xabcd; in TestCaseLower()
116 length=u_strToLower(buffer, -1, in TestCaseLower()
121 buffer[0]!=0xabcd in TestCaseLower()
126 buffer[0]); in TestCaseLower()
138 UChar buffer[32]; in TestCaseUpper() local
143 uprv_memcpy(buffer, beforeUpper, sizeof(beforeUpper)); in TestCaseUpper()
145 length=u_strToUpper(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseUpper()
146 buffer, sizeof(beforeUpper)/U_SIZEOF_UCHAR, in TestCaseUpper()
151 uprv_memcmp(upperRoot, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseUpper()
152 buffer[length]!=0 in TestCaseUpper()
157 … uprv_memcmp(upperRoot, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" : "no"); in TestCaseUpper()
161 buffer[0]=0xabcd; in TestCaseUpper()
163 length=u_strToUpper(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseUpper()
169 uprv_memcmp(upperTurkish, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseUpper()
170 buffer[length]!=0 in TestCaseUpper()
175 … uprv_memcmp(upperTurkish, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" : "no"); in TestCaseUpper()
193 buffer[0]=0xabcd; in TestCaseUpper()
195 length=u_strToUpper(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseUpper()
200 buffer[0]!=0xabcd in TestCaseUpper()
205 buffer[0]); in TestCaseUpper()
208 buffer[0]=0xabcd; in TestCaseUpper()
210 length=u_strToUpper(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseUpper()
215 buffer[0]!=0xabcd in TestCaseUpper()
220 buffer[0]); in TestCaseUpper()
234 UChar buffer[32]; in TestCaseTitle() local
247 uprv_memcpy(buffer, beforeTitle, sizeof(beforeTitle)); in TestCaseTitle()
249 length=u_strToTitle(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseTitle()
250 buffer, sizeof(beforeTitle)/U_SIZEOF_UCHAR, in TestCaseTitle()
255 uprv_memcmp(titleWord, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseTitle()
256 buffer[length]!=0 in TestCaseTitle()
261 … uprv_memcmp(titleWord, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" : "no"); in TestCaseTitle()
265 buffer[0]=0xabcd; in TestCaseTitle()
267 length=u_strToTitle(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseTitle()
273 uprv_memcmp(titleChar, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseTitle()
274 buffer[length]!=0 in TestCaseTitle()
279 … uprv_memcmp(titleChar, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" : "no"); in TestCaseTitle()
297 buffer[0]=0xabcd; in TestCaseTitle()
299 length=u_strToTitle(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseTitle()
304 buffer[0]!=0xabcd in TestCaseTitle()
309 buffer[0]); in TestCaseTitle()
312 buffer[0]=0xabcd; in TestCaseTitle()
314 length=u_strToTitle(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseTitle()
319 buffer[0]!=0xabcd in TestCaseTitle()
324 buffer[0]); in TestCaseTitle()
338 UChar buffer[32]; in TestCaseDutchTitle() local
351 buffer[0]=0xabcd; in TestCaseDutchTitle()
353 length=u_strToTitle(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseDutchTitle()
359 uprv_memcmp(titleRoot, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseDutchTitle()
360 buffer[length]!=0 in TestCaseDutchTitle()
363 u_UCharsToChars(buffer,charsOut,sizeof(charsOut)); in TestCaseDutchTitle()
367 …uprv_memcmp(titleRoot, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" : "no", char… in TestCaseDutchTitle()
370 buffer[0]=0xabcd; in TestCaseDutchTitle()
372 length=u_strToTitle(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseDutchTitle()
378 uprv_memcmp(titleDutch, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseDutchTitle()
379 buffer[length]!=0 in TestCaseDutchTitle()
382 u_UCharsToChars(buffer,charsOut,sizeof(charsOut)); in TestCaseDutchTitle()
386 …uprv_memcmp(titleDutch, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" : "no", cha… in TestCaseDutchTitle()
431 UChar buffer[32]; in TestCaseFolding() local
457 buffer[0]=0xabcd; in TestCaseFolding()
459 length=u_strFoldCase(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseFolding()
465 uprv_memcmp(foldedDefault, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseFolding()
466 buffer[length]!=0 in TestCaseFolding()
471 … uprv_memcmp(foldedDefault, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" : "no"); in TestCaseFolding()
476 buffer[0]=0xabcd; in TestCaseFolding()
478 length=u_strFoldCase(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseFolding()
484 uprv_memcmp(foldedExcludeSpecialI, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseFolding()
485 buffer[length]!=0 in TestCaseFolding()
490 …uprv_memcmp(foldedExcludeSpecialI, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" … in TestCaseFolding()
495 uprv_memcpy(buffer, mixed, sizeof(mixed)); in TestCaseFolding()
496 buffer[sizeof(mixed)/U_SIZEOF_UCHAR]=0; in TestCaseFolding()
498 length=u_strFoldCase(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseFolding()
499 buffer, -1, /* implicit srcLength */ in TestCaseFolding()
504 uprv_memcmp(foldedDefault, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseFolding()
505 buffer[length]!=0 in TestCaseFolding()
510 … uprv_memcmp(foldedDefault, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" : "no"); in TestCaseFolding()
515 uprv_memcpy(buffer, mixed, sizeof(mixed)); in TestCaseFolding()
517 length=u_strFoldCase(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseFolding()
518 buffer, sizeof(mixed)/U_SIZEOF_UCHAR, in TestCaseFolding()
523 uprv_memcmp(foldedExcludeSpecialI, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseFolding()
524 buffer[length]!=0 in TestCaseFolding()
529 …uprv_memcmp(foldedExcludeSpecialI, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" … in TestCaseFolding()
534 buffer[0]=buffer[2]=0xabcd; in TestCaseFolding()
536 length=u_strFoldCase(buffer, 2, /* set destCapacity=2 */ in TestCaseFolding()
542 uprv_memcmp(foldedDefault, buffer, 2*U_SIZEOF_UCHAR)!=0 || in TestCaseFolding()
543 buffer[2]!=0xabcd in TestCaseFolding()
548 … uprv_memcmp(foldedDefault, buffer, 2*U_SIZEOF_UCHAR)==0 && buffer[2]==0xabcd ? "yes" : "no"); in TestCaseFolding()
566 length=u_strFoldCase(NULL, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseFolding()
576 buffer[0]=0xabcd; in TestCaseFolding()
578 length=u_strFoldCase(buffer, -1, in TestCaseFolding()
583 buffer[0]!=0xabcd in TestCaseFolding()
588 buffer[0]); in TestCaseFolding()
591 buffer[0]=0xabcd; in TestCaseFolding()
593 length=u_strFoldCase(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseFolding()
598 buffer[0]!=0xabcd in TestCaseFolding()
603 buffer[0]); in TestCaseFolding()
606 buffer[0]=0xabcd; in TestCaseFolding()
608 length=u_strFoldCase(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseFolding()
613 buffer[0]!=0xabcd in TestCaseFolding()
618 buffer[0]); in TestCaseFolding()
873 UChar buffer[32]; in TestUCaseMapToTitle() local
893 …length=ucasemap_toTitle(csm, buffer, UPRV_LENGTHOF(buffer), beforeTitle, UPRV_LENGTHOF(beforeTitle… in TestUCaseMapToTitle()
896 0!=u_memcmp(buffer, titleWord, length) || in TestUCaseMapToTitle()
897 buffer[length]!=0 in TestUCaseMapToTitle()
915 …length=ucasemap_toTitle(csm, buffer, UPRV_LENGTHOF(buffer), beforeTitle, UPRV_LENGTHOF(beforeTitle… in TestUCaseMapToTitle()
918 0!=u_memcmp(buffer, titleWordNoAdjust, length) || in TestUCaseMapToTitle()
919 buffer[length]!=0 in TestUCaseMapToTitle()
959 buffer[0]=0; in TestUCaseMapToTitle()
960 …length=ucasemap_toTitle(csm, buffer, UPRV_LENGTHOF(buffer), beforeTitle, UPRV_LENGTHOF(beforeTitle… in TestUCaseMapToTitle()
963 0!=u_memcmp(buffer, titleSentNoLower, length) || in TestUCaseMapToTitle()
964 buffer[length]!=0 in TestUCaseMapToTitle()