Home
last modified time | relevance | path

Searched refs:cnv2 (Results 1 – 6 of 6) sorted by relevance

/third_party/icu/icu4c/source/test/cintltst/
Dccapitst.c1706 UConverter * cnv, *cnv2; in TestConvertSafeClone() local
1743 if (NULL == (cnv2 = ucnv_safeClone(cnv, buffer[0], NULL, &err)) || U_FAILURE(err)) in TestConvertSafeClone()
1747 ucnv_close(cnv2); in TestConvertSafeClone()
1762 if (NULL == (cnv2 = ucnv_safeClone(cnv, buffer[0], &bufferSize, &err)) || U_FAILURE(err)) in TestConvertSafeClone()
1766 if (cnv2) { in TestConvertSafeClone()
1767 ucnv_close(cnv2); in TestConvertSafeClone()
1772 …if (NULL == (cnv2 = ucnv_safeClone(cnv, NULL, &bufferSize, &err)) || err != U_SAFECLONE_ALLOCATED_… in TestConvertSafeClone()
1776 if (cnv2) { in TestConvertSafeClone()
1777 ucnv_close(cnv2); in TestConvertSafeClone()
1784 …if (NULL == (cnv2 = ucnv_safeClone(cnv, NULL, &bufferSize, &err)) || err != U_SAFECLONE_ALLOCATED_… in TestConvertSafeClone()
[all …]
Dnucnvtst.c4880 UConverter *cnv2; in TestLMBCS() local
4892 cnv2=ucnv_open(NAME_LMBCS_2, &errorCode); in TestLMBCS()
4903 get_name = ucnv_getName (cnv2, &errorCode); in TestLMBCS()
4919 ucnv_setSubstChars (cnv2,new_subchars, len, &errorCode); in TestLMBCS()
4923 ucnv_getSubstChars (cnv2, get_subchars, &len, &errorCode); in TestLMBCS()
4934 ucnv_close(cnv2); in TestLMBCS()
/third_party/boost/libs/convert/example/
Dstream.cpp80 boost::cnv::lexical_cast cnv2; in example6() local
87 BOOST_TEST(convert<change>("up", cnv2, change::no) == change::up); in example6()
Dgetting_started.cpp102 boost::cnv::strtol cnv2; in getting_started_example3() local
106 int i2 = convert<int>("123", cnv2).value(); // Two times faster than lexical_cast. in getting_started_example3()
/third_party/icu/icu4c/source/test/intltest/
Dconvtest.cpp717 LocalUConverterPointer cnv2(ucnv_open("UTF-8", errorCode)); in TestUTF8ToUTF8Overflow() local
732 ucnv_convertEx(cnv2.getAlias(), cnv1.getAlias(), in TestUTF8ToUTF8Overflow()
742 ucnv_convertEx(cnv2.getAlias(), cnv1.getAlias(), in TestUTF8ToUTF8Overflow()
755 ucnv_reset(cnv2.getAlias()); in TestUTF8ToUTF8Overflow()
765 ucnv_convertEx(cnv2.getAlias(), cnv1.getAlias(), in TestUTF8ToUTF8Overflow()
775 ucnv_convertEx(cnv2.getAlias(), cnv1.getAlias(), in TestUTF8ToUTF8Overflow()
788 ucnv_reset(cnv2.getAlias()); in TestUTF8ToUTF8Overflow()
802 ucnv_convertEx(cnv2.getAlias(), cnv1.getAlias(), in TestUTF8ToUTF8Overflow()
818 ucnv_convertEx(cnv2.getAlias(), cnv1.getAlias(), in TestUTF8ToUTF8Overflow()
838 LocalUConverterPointer cnv2(ucnv_open("UTF-8", errorCode)); in TestUTF8ToUTF8Streaming() local
[all …]
/third_party/boost/libs/convert/test/
Dstrtol_converter.cpp295 boost::cnv::printf cnv2; in compare() local
298 string s2 = convert<string>(pair.first, cnv2(arg::precision = pair.second)).value(); in compare()