Searched refs:badUTF8 (Results 1 – 2 of 2) sorted by relevance
/external/icu/icu4c/source/test/cintltst/ |
D | ccapitst.c | 2392 static const char *const badUTF8[]={ variable 2546 for(i=0; i<UPRV_LENGTHOF(badUTF8); ++i) { in testFromTruncatedUTF8() 2548 int32_t length=strlen(badUTF8[i]); in testFromTruncatedUTF8() 2549 if(!isOneTruncatedUTF8(badUTF8[i], length)) { in testFromTruncatedUTF8() 2554 memcpy(utf8+charUTF8Length, badUTF8[i], length); in testFromTruncatedUTF8() 2578 if(invalidLength!=length || 0!=memcmp(invalidChars, badUTF8[i], length)) { in testFromTruncatedUTF8() 2610 for(i=0; i<UPRV_LENGTHOF(badUTF8); ++i) { in testFromBadUTF8() 2611 int32_t length=strlen(badUTF8[i]); in testFromBadUTF8() 2612 memcpy(utf8+utf8Length, badUTF8[i], length); in testFromBadUTF8()
|
/external/icu/icu4c/source/test/intltest/ |
D | utxttest.cpp | 936 const char *badUTF8 = "\x41\x81\x42\xf0\x81\x81\x43"; in ErrorTest() local 939 ut = utext_openUTF8(NULL, badUTF8, -1, &status); in ErrorTest()
|