Lines Matching refs:UPRV_LENGTHOF
150 u_strToUTF32(u32Target, 0, &u32DestLen, src16, UPRV_LENGTHOF(src16),&err); in Test_strToUTF32()
151 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != UPRV_LENGTHOF(src32)) { in Test_strToUTF32()
154 (long)u32DestLen, (long)UPRV_LENGTHOF(src32), u_errorName(err)); in Test_strToUTF32()
159 u_strToUTF32(u32Target, UPRV_LENGTHOF(src32)+1, &u32DestLen, src16, UPRV_LENGTHOF(src16),&err); in Test_strToUTF32()
160 if(err != U_ZERO_ERROR || u32DestLen != UPRV_LENGTHOF(src32)) { in Test_strToUTF32()
163 (long)u32DestLen, (long)UPRV_LENGTHOF(src32), u_errorName(err)); in Test_strToUTF32()
172 for(i=0; i< UPRV_LENGTHOF(src32); i++){ in Test_strToUTF32()
184 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != UPRV_LENGTHOF(src32)-1) { in Test_strToUTF32()
187 (long)u32DestLen, (long)UPRV_LENGTHOF(src32)-1, u_errorName(err)); in Test_strToUTF32()
192 u_strToUTF32(u32Target, UPRV_LENGTHOF(src32), &u32DestLen, src16, -1,&err); in Test_strToUTF32()
193 if(err != U_ZERO_ERROR || u32DestLen != UPRV_LENGTHOF(src32)-1) { in Test_strToUTF32()
196 (long)u32DestLen, (long)UPRV_LENGTHOF(src32)-1, u_errorName(err)); in Test_strToUTF32()
200 for(i=0; i< UPRV_LENGTHOF(src32); i++){ in Test_strToUTF32()
219 len16 = UPRV_LENGTHOF(surr16); in Test_strToUTF32_surrogates()
230 u_strToUTF32(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16+i, len16-i, &err); in Test_strToUTF32_surrogates()
246 u_strToUTF32(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16+i, -1, &err); in Test_strToUTF32_surrogates()
263 u_strToUTF32(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16+4, len16-4-1, &err); in Test_strToUTF32_surrogates()
279 u_strToUTF32(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16+4, -1, &err); in Test_strToUTF32_surrogates()
297 …u_strToUTF32WithSub(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16, len16-1, 0xfffd, &nu… in Test_strToUTF32_surrogates()
313 …u_strToUTF32WithSub(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16, -1, 0x12345, &numSub… in Test_strToUTF32_surrogates()
329 u_strFromUTF32(uTarget,0,&uDestLen,src32,UPRV_LENGTHOF(src32),&err); in Test_strFromUTF32()
330 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != UPRV_LENGTHOF(src16)) { in Test_strFromUTF32()
333 (long)uDestLen, (long)UPRV_LENGTHOF(src16), u_errorName(err)); in Test_strFromUTF32()
338 u_strFromUTF32(uTarget, UPRV_LENGTHOF(src16)+1,&uDestLen,src32,UPRV_LENGTHOF(src32),&err); in Test_strFromUTF32()
339 if(err != U_ZERO_ERROR || uDestLen != UPRV_LENGTHOF(src16)) { in Test_strFromUTF32()
342 (long)uDestLen, (long)UPRV_LENGTHOF(src16), u_errorName(err)); in Test_strFromUTF32()
364 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != UPRV_LENGTHOF(src16)-1) { in Test_strFromUTF32()
367 (long)uDestLen, (long)UPRV_LENGTHOF(src16)-1, u_errorName(err)); in Test_strFromUTF32()
372 u_strFromUTF32(uTarget, UPRV_LENGTHOF(src16),&uDestLen,src32,-1,&err); in Test_strFromUTF32()
373 if(err != U_ZERO_ERROR || uDestLen != UPRV_LENGTHOF(src16)-1) { in Test_strFromUTF32()
376 (long)uDestLen, (long)UPRV_LENGTHOF(src16)-1, u_errorName(err)); in Test_strFromUTF32()
400 len32 = UPRV_LENGTHOF(surr32); in Test_strFromUTF32_surrogates()
411 u_strFromUTF32(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32+i, len32-i, &err); in Test_strFromUTF32_surrogates()
427 u_strFromUTF32(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32+i, -1, &err); in Test_strFromUTF32_surrogates()
444 u_strFromUTF32(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32+6, len32-6-1, &err); in Test_strFromUTF32_surrogates()
460 u_strFromUTF32(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32+6, -1, &err); in Test_strFromUTF32_surrogates()
478 …u_strFromUTF32WithSub(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32, len32-1, 0xfffd, &numSub… in Test_strFromUTF32_surrogates()
494 …u_strFromUTF32WithSub(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32, -1, 0x12345, &numSubstit… in Test_strFromUTF32_surrogates()
686 …(err=U_ZERO_ERROR, u_strToUTF8(out8, UPRV_LENGTHOF(out8), NULL, withLead16, UPRV_LENGTHOF(withLead… in Test_UChar_UTF8_API()
687 …(err=U_ZERO_ERROR, u_strToUTF8(out8, UPRV_LENGTHOF(out8), NULL, withTrail16, -1, &err), err!=U_INV… in Test_UChar_UTF8_API()
688 …(err=U_ZERO_ERROR, u_strFromUTF8(out16, UPRV_LENGTHOF(out16), NULL, (const char *)withLead8, UPRV_… in Test_UChar_UTF8_API()
689 …(err=U_ZERO_ERROR, u_strFromUTF8(out16, UPRV_LENGTHOF(out16), NULL, (const char *)withTrail8, -1, … in Test_UChar_UTF8_API()
701 u_strFromUTF8WithSub(out16, UPRV_LENGTHOF(out16), &uDestLen, in Test_UChar_UTF8_API()
716 u_strFromUTF8WithSub(out16, UPRV_LENGTHOF(out16), &uDestLen, in Test_UChar_UTF8_API()
744 u_strToUTF8WithSub(out8, UPRV_LENGTHOF(out8), &u8DestLen, in Test_UChar_UTF8_API()
759 u_strToUTF8WithSub(out8, UPRV_LENGTHOF(out8), &u8DestLen, in Test_UChar_UTF8_API()
790 u_strFromUTF8WithSub(out16, UPRV_LENGTHOF(out16), &uDestLen, in Test_UChar_UTF8_API()
805 u_strToUTF8WithSub(out8, UPRV_LENGTHOF(out8), &u8DestLen, in Test_UChar_UTF8_API()
822 u_strFromUTF8WithSub(out16, UPRV_LENGTHOF(out16), &uDestLen, in Test_UChar_UTF8_API()
837 u_strToUTF8WithSub(out8, UPRV_LENGTHOF(out8), &u8DestLen, in Test_UChar_UTF8_API()
855 u_strFromUTF8(out16, UPRV_LENGTHOF(out16), NULL, src, 1, &err); in Test_UChar_UTF8_API()
921 …destPointer=u_strFromUTF8(dest, UPRV_LENGTHOF(dest), &destLength, (const char *)bytes, 3, &errorCo… in Test_FromUTF8()
1062 pDest=u_strFromUTF8Lenient(dest, UPRV_LENGTHOF(dest), &destLength, pb, -1, &errorCode); in Test_FromUTF8Lenient()
1110 … pDest=u_strFromUTF8Lenient(dest, UPRV_LENGTHOF(dest), &destLength, pb, srcLength, &errorCode); in Test_FromUTF8Lenient()
1353 wDestLen=u_terminateWChars(buffer, UPRV_LENGTHOF(buffer), 3, &err); in Test_UChar_WCHART_API()
1369 wDestLen=u_terminateWChars(buffer, UPRV_LENGTHOF(buffer), 3, &err); in Test_UChar_WCHART_API()
1559 src, UPRV_LENGTHOF(src), &errorCode); in Test_strToJavaModifiedUTF8()
1561 length!=UPRV_LENGTHOF(expected) || 0!=memcmp(dest, expected, length) || in Test_strToJavaModifiedUTF8()
1570 src, UPRV_LENGTHOF(src), &errorCode); in Test_strToJavaModifiedUTF8()
1572 0!=memcmp(dest, expected, UPRV_LENGTHOF(expected)) || in Test_strToJavaModifiedUTF8()
1573 dest[UPRV_LENGTHOF(expected)]!=0 in Test_strToJavaModifiedUTF8()
1580 p=u_strToJavaModifiedUTF8(dest, UPRV_LENGTHOF(expected), &length, in Test_strToJavaModifiedUTF8()
1581 src, UPRV_LENGTHOF(src), &errorCode); in Test_strToJavaModifiedUTF8()
1583 length!=UPRV_LENGTHOF(expected) || 0!=memcmp(dest, expected, length) || in Test_strToJavaModifiedUTF8()
1611 p=u_strToJavaModifiedUTF8(dest, UPRV_LENGTHOF(expected)/2, &length, in Test_strToJavaModifiedUTF8()
1612 src, UPRV_LENGTHOF(src), &errorCode); in Test_strToJavaModifiedUTF8()
1614 length!=UPRV_LENGTHOF(expected) || dest[UPRV_LENGTHOF(expected)/2]!=(char)0xff in Test_strToJavaModifiedUTF8()
1622 src, UPRV_LENGTHOF(src), &errorCode); in Test_strToJavaModifiedUTF8()
1624 length!=UPRV_LENGTHOF(expected) || dest[0]!=(char)0xff in Test_strToJavaModifiedUTF8()
1632 shortSrc, UPRV_LENGTHOF(shortSrc), &errorCode); in Test_strToJavaModifiedUTF8()
1634 length!=UPRV_LENGTHOF(shortExpected) || 0!=memcmp(dest, shortExpected, length) || in Test_strToJavaModifiedUTF8()
1645 length!=UPRV_LENGTHOF(asciiNulExpected) || 0!=memcmp(dest, asciiNulExpected, length) || in Test_strToJavaModifiedUTF8()
1666 src, UPRV_LENGTHOF(src), &errorCode); in Test_strToJavaModifiedUTF8()
1674 src, UPRV_LENGTHOF(src), &errorCode); in Test_strToJavaModifiedUTF8()
1682 NULL, UPRV_LENGTHOF(src), &errorCode); in Test_strToJavaModifiedUTF8()
1750 (const char *)src, UPRV_LENGTHOF(src), in Test_strFromJavaModifiedUTF8()
1753 length!=UPRV_LENGTHOF(expected) || 0!=memcmp(dest, expected, length) || in Test_strFromJavaModifiedUTF8()
1755 numSubstitutions!=UPRV_LENGTHOF(invalidExpectedFFFD) in Test_strFromJavaModifiedUTF8()
1763 (const char *)src, UPRV_LENGTHOF(src), in Test_strFromJavaModifiedUTF8()
1766 0!=memcmp(dest, expected, UPRV_LENGTHOF(expected)) || in Test_strFromJavaModifiedUTF8()
1767 dest[UPRV_LENGTHOF(expected)]!=0 || in Test_strFromJavaModifiedUTF8()
1768 numSubstitutions!=UPRV_LENGTHOF(invalidExpectedFFFD) in Test_strFromJavaModifiedUTF8()
1776 (const char *)src, UPRV_LENGTHOF(src), in Test_strFromJavaModifiedUTF8()
1779 length!=UPRV_LENGTHOF(expected) || 0!=memcmp(dest, expected, length) || in Test_strFromJavaModifiedUTF8()
1787 p=u_strFromJavaModifiedUTF8WithSub(dest, UPRV_LENGTHOF(expected), &length, in Test_strFromJavaModifiedUTF8()
1788 (const char *)src, UPRV_LENGTHOF(src), in Test_strFromJavaModifiedUTF8()
1791 length!=UPRV_LENGTHOF(expected) || 0!=memcmp(dest, expected, length) || in Test_strFromJavaModifiedUTF8()
1793 numSubstitutions!=UPRV_LENGTHOF(invalidExpectedFFFD) in Test_strFromJavaModifiedUTF8()
1838 p=u_strFromJavaModifiedUTF8WithSub(dest, UPRV_LENGTHOF(expected)/2, &length, in Test_strFromJavaModifiedUTF8()
1839 (const char *)src, UPRV_LENGTHOF(src), in Test_strFromJavaModifiedUTF8()
1842 length!=UPRV_LENGTHOF(expected) || dest[UPRV_LENGTHOF(expected)/2]!=0xffff in Test_strFromJavaModifiedUTF8()
1850 (const char *)src, UPRV_LENGTHOF(src), in Test_strFromJavaModifiedUTF8()
1853 length!=UPRV_LENGTHOF(expected) || dest[0]!=0xffff in Test_strFromJavaModifiedUTF8()
1861 (const char *)shortSrc, UPRV_LENGTHOF(shortSrc), in Test_strFromJavaModifiedUTF8()
1864 length!=UPRV_LENGTHOF(shortExpected) || 0!=memcmp(dest, shortExpected, length) || in Test_strFromJavaModifiedUTF8()
1877 length!=UPRV_LENGTHOF(asciiNulExpected) || 0!=memcmp(dest, asciiNulExpected, length) || in Test_strFromJavaModifiedUTF8()
1898 (const char *)invalid, UPRV_LENGTHOF(invalid), in Test_strFromJavaModifiedUTF8()
1901 … length!=UPRV_LENGTHOF(invalidExpectedFFFD) || 0!=memcmp(dest, invalidExpectedFFFD, length) || in Test_strFromJavaModifiedUTF8()
1903 numSubstitutions!=UPRV_LENGTHOF(invalidExpectedFFFD) in Test_strFromJavaModifiedUTF8()
1911 (const char *)invalid, UPRV_LENGTHOF(invalid), in Test_strFromJavaModifiedUTF8()
1914 … length!=UPRV_LENGTHOF(invalidExpected50000) || 0!=memcmp(dest, invalidExpected50000, length) || in Test_strFromJavaModifiedUTF8()
1916 numSubstitutions!=UPRV_LENGTHOF(invalidExpectedFFFD) /* not ...50000 */ in Test_strFromJavaModifiedUTF8()
1924 (const char *)invalid, UPRV_LENGTHOF(invalid), in Test_strFromJavaModifiedUTF8()
1933 (const char *)src, UPRV_LENGTHOF(src), in Test_strFromJavaModifiedUTF8()
1936 length>=UPRV_LENGTHOF(expected) || dest[UPRV_LENGTHOF(expected)-1]!=0xffff || in Test_strFromJavaModifiedUTF8()
1947 (const char *)src, UPRV_LENGTHOF(src), in Test_strFromJavaModifiedUTF8()
1956 (const char *)src, UPRV_LENGTHOF(src), in Test_strFromJavaModifiedUTF8()
1965 NULL, UPRV_LENGTHOF(src), in Test_strFromJavaModifiedUTF8()
1982 (const char *)src, UPRV_LENGTHOF(src), in Test_strFromJavaModifiedUTF8()
1991 (const char *)src, UPRV_LENGTHOF(src), in Test_strFromJavaModifiedUTF8()
2015 u_strFromUTF8(dest16, UPRV_LENGTHOF(dest16), &length, NULL, 0, &errorCode); in TestNullEmptySource()
2023 u_strFromUTF8WithSub(dest16, UPRV_LENGTHOF(dest16), &length, NULL, 0, 0xfffd, NULL, &errorCode); in TestNullEmptySource()
2031 u_strFromUTF8Lenient(dest16, UPRV_LENGTHOF(dest16), &length, NULL, 0, &errorCode); in TestNullEmptySource()
2039 u_strFromUTF32(dest16, UPRV_LENGTHOF(dest16), &length, NULL, 0, &errorCode); in TestNullEmptySource()
2047 … u_strFromUTF32WithSub(dest16, UPRV_LENGTHOF(dest16), &length, NULL, 0, 0xfffd, NULL, &errorCode); in TestNullEmptySource()
2055 …u_strFromJavaModifiedUTF8WithSub(dest16, UPRV_LENGTHOF(dest16), &length, NULL, 0, 0xfffd, NULL, &e… in TestNullEmptySource()
2065 u_strToUTF8(dest8, UPRV_LENGTHOF(dest8), &length, NULL, 0, &errorCode); in TestNullEmptySource()
2073 u_strToUTF8WithSub(dest8, UPRV_LENGTHOF(dest8), &length, NULL, 0, 0xfffd, NULL, &errorCode); in TestNullEmptySource()
2081 u_strToUTF32(dest32, UPRV_LENGTHOF(dest32), &length, NULL, 0, &errorCode); in TestNullEmptySource()
2089 u_strToUTF32WithSub(dest32, UPRV_LENGTHOF(dest32), &length, NULL, 0, 0xfffd, NULL, &errorCode); in TestNullEmptySource()
2097 u_strToJavaModifiedUTF8(dest8, UPRV_LENGTHOF(dest8), &length, NULL, 0, &errorCode); in TestNullEmptySource()
2107 u_strFromWCS(dest16, UPRV_LENGTHOF(dest16), &length, NULL, 0, &errorCode); in TestNullEmptySource()
2115 u_strToWCS(destW, UPRV_LENGTHOF(destW), &length, NULL, 0, &errorCode); in TestNullEmptySource()