• Home
  • Raw
  • Download

Lines Matching refs:cnv

379     LocalUConverterPointer cnv;  in TestGetUnicodeSet()  local
450 cnv.adoptInstead(cnv_open(charset, errorCode)); in TestGetUnicodeSet()
458 … ucnv_getUnicodeSet(cnv.getAlias(), cnvSetPtr->toUSet(), (UConverterUnicodeSet)which, &errorCode); in TestGetUnicodeSet()
579 LocalUConverterPointer cnv; in TestGetUnicodeSet2() local
584 cnv.adoptInstead(cnv_open(cnvNames[i], errorCode)); in TestGetUnicodeSet2()
590 … ucnv_setFromUCallBack(cnv.getAlias(), getUnicodeSetCallback, &expected, NULL, NULL, &errorCode); in TestGetUnicodeSet2()
598 ucnv_setFallback(cnv.getAlias(), TRUE); in TestGetUnicodeSet2()
606 …ucnv_fromUnicode(cnv.getAlias(), &t, buffer+sizeof(buffer), (const UChar **)&s, s0+s0Length, NULL,… in TestGetUnicodeSet2()
617 ucnv_getUnicodeSet(cnv.getAlias(), set.toUSet(), which, &errorCode); in TestGetUnicodeSet2()
693 UConverter *cnv = cnv_open(cnv_name, status); in TestDefaultIgnorableCallback() local
700 ucnv_setFromUCallBack(cnv, UCNV_FROM_U_CALLBACK_SUBSTITUTE, NULL, NULL, NULL, &status); in TestDefaultIgnorableCallback()
714 …outputLength = ucnv_fromUChars(cnv, output, 10, UnicodeString::fromUTF32(input, 1).getTerminatedBu… in TestDefaultIgnorableCallback()
732 …outputLength = ucnv_fromUChars(cnv, output, 10, UnicodeString::fromUTF32(input, 1).getTerminatedBu… in TestDefaultIgnorableCallback()
738 ucnv_close(cnv); in TestDefaultIgnorableCallback()
971 stepToUnicode(ConversionCase &cc, UConverter *cnv, in stepToUnicode() argument
1008 ucnv_resetFromUnicode(cnv); in stepToUnicode()
1011 ucnv_toUnicode(cnv, in stepToUnicode()
1066 ucnv_resetFromUnicode(cnv); in stepToUnicode()
1072 c=ucnv_getNextUChar(cnv, &source, bytesLimit, pErrorCode); in stepToUnicode()
1121 ucnv_toUnicode(cnv, in stepToUnicode()
1164 LocalUConverterPointer cnv(cnv_open(cc.charset, errorCode)); in ToUnicodeCase() local
1175 ucnv_setToUCallBack(cnv.getAlias(), callback, option, NULL, NULL, errorCode); in ToUnicodeCase()
1223 resultLength=stepToUnicode(cc, cnv.getAlias(), in ToUnicodeCase()
1228 cc, cnv.getAlias(), steps[i].name, in ToUnicodeCase()
1235 ucnv_resetToUnicode(cnv.getAlias()); in ToUnicodeCase()
1253 resultLength=ucnv_toUChars(cnv.getAlias(), in ToUnicodeCase()
1258 cc, cnv.getAlias(), "toUChars", in ToUnicodeCase()
1269 resultLength=ucnv_toUChars(cnv.getAlias(), in ToUnicodeCase()
1277 cc, cnv.getAlias(), "preflight toUChars", in ToUnicodeCase()
1289 ConversionTest::checkToUnicode(ConversionCase &cc, UConverter *cnv, const char *name, in checkToUnicode() argument
1304 ucnv_getInvalidChars(cnv, resultInvalidChars, &resultInvalidLength, &errorCode); in checkToUnicode()
1374 UConverter *utf8Cnv, UConverter *cnv, in stepFromUTF8() argument
1415 ucnv_resetToUnicode(cnv); in stepFromUTF8()
1418 ucnv_convertEx(cnv, utf8Cnv, in stepFromUTF8()
1479 stepFromUnicode(ConversionCase &cc, UConverter *cnv, in stepFromUnicode() argument
1515 ucnv_resetToUnicode(cnv); in stepFromUnicode()
1518 ucnv_fromUnicode(cnv, in stepFromUnicode()
1567 UConverter *cnv; in FromUnicodeCase() local
1572 cnv=cnv_open(cc.charset, errorCode); in FromUnicodeCase()
1582 ucnv_setFromUCallBack(cnv, callback, option, NULL, NULL, &errorCode); in FromUnicodeCase()
1586 ucnv_close(cnv); in FromUnicodeCase()
1593 ucnv_setFallback(cnv, cc.fallbacks); in FromUnicodeCase()
1600 ucnv_setSubstChars(cnv, cc.subchar, (int8_t)length, &errorCode); in FromUnicodeCase()
1604 ucnv_close(cnv); in FromUnicodeCase()
1608 ucnv_setSubstString(cnv, cc.subString, -1, &errorCode); in FromUnicodeCase()
1612 ucnv_close(cnv); in FromUnicodeCase()
1652 resultLength=stepFromUnicode(cc, cnv, in FromUnicodeCase()
1657 cc, cnv, steps[i].name, in FromUnicodeCase()
1664 ucnv_resetFromUnicode(cnv); in FromUnicodeCase()
1681 resultLength=stepFromUTF8(cc, utf8Cnv, cnv, in FromUnicodeCase()
1685 cc, cnv, steps[i].utf8Name, in FromUnicodeCase()
1693 ucnv_resetFromUnicode(cnv); in FromUnicodeCase()
1704 resultLength=ucnv_fromUChars(cnv, in FromUnicodeCase()
1709 cc, cnv, "fromUChars", in FromUnicodeCase()
1720 resultLength=ucnv_fromUChars(cnv, in FromUnicodeCase()
1728 cc, cnv, "preflight fromUChars", in FromUnicodeCase()
1735 ucnv_close(cnv); in FromUnicodeCase()
1740 ConversionTest::checkFromUnicode(ConversionCase &cc, UConverter *cnv, const char *name, in checkFromUnicode() argument
1755 ucnv_getInvalidUChars(cnv, resultInvalidUChars, &resultInvalidLength, &errorCode); in checkFromUnicode()