Lines Matching refs:cnv
381 LocalUConverterPointer cnv; in TestGetUnicodeSet() local
452 cnv.adoptInstead(cnv_open(charset, errorCode)); in TestGetUnicodeSet()
460 … ucnv_getUnicodeSet(cnv.getAlias(), cnvSetPtr->toUSet(), (UConverterUnicodeSet)which, &errorCode); in TestGetUnicodeSet()
581 LocalUConverterPointer cnv; in TestGetUnicodeSet2() local
586 cnv.adoptInstead(cnv_open(cnvNames[i], errorCode)); in TestGetUnicodeSet2()
592 … ucnv_setFromUCallBack(cnv.getAlias(), getUnicodeSetCallback, &expected, NULL, NULL, &errorCode); in TestGetUnicodeSet2()
600 ucnv_setFallback(cnv.getAlias(), TRUE); in TestGetUnicodeSet2()
608 …ucnv_fromUnicode(cnv.getAlias(), &t, buffer+sizeof(buffer), (const UChar **)&s, s0+s0Length, NULL,… in TestGetUnicodeSet2()
619 ucnv_getUnicodeSet(cnv.getAlias(), set.toUSet(), which, &errorCode); in TestGetUnicodeSet2()
700 UConverter *cnv = cnv_open(cnv_name, status); in TestDefaultIgnorableCallback() local
707 ucnv_setFromUCallBack(cnv, UCNV_FROM_U_CALLBACK_SUBSTITUTE, NULL, NULL, NULL, &status); in TestDefaultIgnorableCallback()
721 …outputLength = ucnv_fromUChars(cnv, output, 10, UnicodeString::fromUTF32(input, 1).getTerminatedBu… in TestDefaultIgnorableCallback()
739 …outputLength = ucnv_fromUChars(cnv, output, 10, UnicodeString::fromUTF32(input, 1).getTerminatedBu… in TestDefaultIgnorableCallback()
745 ucnv_close(cnv); in TestDefaultIgnorableCallback()
857 stepToUnicode(ConversionCase &cc, UConverter *cnv, in stepToUnicode() argument
894 ucnv_resetFromUnicode(cnv); in stepToUnicode()
897 ucnv_toUnicode(cnv, in stepToUnicode()
952 ucnv_resetFromUnicode(cnv); in stepToUnicode()
958 c=ucnv_getNextUChar(cnv, &source, bytesLimit, pErrorCode); in stepToUnicode()
1007 ucnv_toUnicode(cnv, in stepToUnicode()
1050 LocalUConverterPointer cnv(cnv_open(cc.charset, errorCode)); in ToUnicodeCase() local
1060 ucnv_setToUCallBack(cnv.getAlias(), callback, option, NULL, NULL, errorCode); in ToUnicodeCase()
1108 resultLength=stepToUnicode(cc, cnv.getAlias(), in ToUnicodeCase()
1113 cc, cnv.getAlias(), steps[i].name, in ToUnicodeCase()
1120 ucnv_resetToUnicode(cnv.getAlias()); in ToUnicodeCase()
1138 resultLength=ucnv_toUChars(cnv.getAlias(), in ToUnicodeCase()
1143 cc, cnv.getAlias(), "toUChars", in ToUnicodeCase()
1154 resultLength=ucnv_toUChars(cnv.getAlias(), in ToUnicodeCase()
1162 cc, cnv.getAlias(), "preflight toUChars", in ToUnicodeCase()
1174 ConversionTest::checkToUnicode(ConversionCase &cc, UConverter *cnv, const char *name, in checkToUnicode() argument
1189 ucnv_getInvalidChars(cnv, resultInvalidChars, &resultInvalidLength, &errorCode); in checkToUnicode()
1259 UConverter *utf8Cnv, UConverter *cnv, in stepFromUTF8() argument
1300 ucnv_resetToUnicode(cnv); in stepFromUTF8()
1303 ucnv_convertEx(cnv, utf8Cnv, in stepFromUTF8()
1364 stepFromUnicode(ConversionCase &cc, UConverter *cnv, in stepFromUnicode() argument
1400 ucnv_resetToUnicode(cnv); in stepFromUnicode()
1403 ucnv_fromUnicode(cnv, in stepFromUnicode()
1452 UConverter *cnv; in FromUnicodeCase() local
1457 cnv=cnv_open(cc.charset, errorCode); in FromUnicodeCase()
1467 ucnv_setFromUCallBack(cnv, callback, option, NULL, NULL, &errorCode); in FromUnicodeCase()
1471 ucnv_close(cnv); in FromUnicodeCase()
1478 ucnv_setFallback(cnv, cc.fallbacks); in FromUnicodeCase()
1485 ucnv_setSubstChars(cnv, cc.subchar, (int8_t)length, &errorCode); in FromUnicodeCase()
1489 ucnv_close(cnv); in FromUnicodeCase()
1493 ucnv_setSubstString(cnv, cc.subString, -1, &errorCode); in FromUnicodeCase()
1497 ucnv_close(cnv); in FromUnicodeCase()
1537 resultLength=stepFromUnicode(cc, cnv, in FromUnicodeCase()
1542 cc, cnv, steps[i].name, in FromUnicodeCase()
1549 ucnv_resetFromUnicode(cnv); in FromUnicodeCase()
1566 resultLength=stepFromUTF8(cc, utf8Cnv, cnv, in FromUnicodeCase()
1570 cc, cnv, steps[i].utf8Name, in FromUnicodeCase()
1578 ucnv_resetFromUnicode(cnv); in FromUnicodeCase()
1589 resultLength=ucnv_fromUChars(cnv, in FromUnicodeCase()
1594 cc, cnv, "fromUChars", in FromUnicodeCase()
1605 resultLength=ucnv_fromUChars(cnv, in FromUnicodeCase()
1613 cc, cnv, "preflight fromUChars", in FromUnicodeCase()
1620 ucnv_close(cnv); in FromUnicodeCase()
1625 ConversionTest::checkFromUnicode(ConversionCase &cc, UConverter *cnv, const char *name, in checkFromUnicode() argument
1640 ucnv_getInvalidUChars(cnv, resultInvalidUChars, &resultInvalidLength, &errorCode); in checkFromUnicode()