Home
last modified time | relevance | path

Searched refs:errorLength (Results 1 – 3 of 3) sorted by relevance

/third_party/icu/icu4c/source/extra/uconv/
Duconv.cpp793 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 …]
/third_party/skia/third_party/externals/icu/source/extra/uconv/
Duconv.cpp793 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 …]
/third_party/icu/icu4c/source/test/intltest/
Dconvtest.cpp808 int8_t errorLength; in TestUTF8ToUTF8Overflow() local
817 errorLength = UPRV_LENGTHOF(errorBytes); in TestUTF8ToUTF8Overflow()
818 ucnv_getInvalidChars(cnv1.getAlias(), errorBytes, &errorLength, errorCode); in TestUTF8ToUTF8Overflow()
819 assertEquals("illFormed truncated errorLength", 2, (int32_t)errorLength); in TestUTF8ToUTF8Overflow()
820 if (errorLength == 2) { in TestUTF8ToUTF8Overflow()
834 errorLength = UPRV_LENGTHOF(errorBytes); in TestUTF8ToUTF8Overflow()
835 ucnv_getInvalidChars(cnv1.getAlias(), errorBytes, &errorLength, errorCode); in TestUTF8ToUTF8Overflow()
836 assertEquals("illFormed trail byte errorLength", 1, (int32_t)errorLength); in TestUTF8ToUTF8Overflow()
837 if (errorLength == 1) { in TestUTF8ToUTF8Overflow()