Searched refs:errorLength (Results 1 – 2 of 2) sorted by relevance
/external/icu/icu4c/source/extra/uconv/ |
D | uconv.cpp | 793 int8_t i, length, errorLength; in convertFile() local 796 errorLength = (int8_t)sizeof(errorBytes); in convertFile() 797 ucnv_getInvalidChars(convfrom, errorBytes, &errorLength, &localError); in convertFile() 798 if (U_FAILURE(localError) || errorLength == 0) { in convertFile() 799 errorLength = 1; in convertFile() 808 (int)(infoffset + (cbufp - buf) - errorLength)); in convertFile() 812 for (i = 0; i < errorLength; ++i) { in convertFile() 946 int8_t i, length, errorLength; in convertFile() local 949 errorLength = UPRV_LENGTHOF(errorUChars); in convertFile() 950 ucnv_getInvalidUChars(convto, errorUChars, &errorLength, &localError); in convertFile() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | convtest.cpp | 830 int8_t errorLength; in TestUTF8ToUTF8Overflow() local 839 errorLength = UPRV_LENGTHOF(errorBytes); in TestUTF8ToUTF8Overflow() 840 ucnv_getInvalidChars(cnv1.getAlias(), errorBytes, &errorLength, errorCode); in TestUTF8ToUTF8Overflow() 841 assertEquals("illFormed truncated errorLength", 2, (int32_t)errorLength); in TestUTF8ToUTF8Overflow() 842 if (errorLength == 2) { in TestUTF8ToUTF8Overflow() 856 errorLength = UPRV_LENGTHOF(errorBytes); in TestUTF8ToUTF8Overflow() 857 ucnv_getInvalidChars(cnv1.getAlias(), errorBytes, &errorLength, errorCode); in TestUTF8ToUTF8Overflow() 858 assertEquals("illFormed trail byte errorLength", 1, (int32_t)errorLength); in TestUTF8ToUTF8Overflow() 859 if (errorLength == 1) { in TestUTF8ToUTF8Overflow()
|