Home
last modified time | relevance | path

Searched refs:codeflag (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/commonlibrary/ets_utils/platform/default/
H A Dutil_helper.cpp29 UConverter* CreateConverter(const std::string& encStr_, UErrorCode& codeflag) in CreateConverter() argument
41 UConverter *conv = ucnv_open(encodeStr.c_str(), &codeflag); in CreateConverter()
42 if (U_FAILURE(codeflag)) { in CreateConverter()
47 ucnv_setFromUCallBack(conv, UCNV_FROM_U_CALLBACK_SUBSTITUTE, NULL, NULL, NULL, &codeflag); in CreateConverter()
48 if (U_FAILURE(codeflag)) { in CreateConverter()
54 ucnv_setToUCallBack(conv, UCNV_TO_U_CALLBACK_SUBSTITUTE, NULL, NULL, NULL, &codeflag); in CreateConverter()
55 if (U_FAILURE(codeflag)) { in CreateConverter()
/ohos5.0/commonlibrary/ets_utils/platform/ohos/
H A Dutil_helper.cpp24 UConverter *conv = ucnv_open(encStr_.c_str(), &codeflag); in CreateConverter()
25 if (U_FAILURE(codeflag)) { in CreateConverter()
30 if (U_FAILURE(codeflag)) { in CreateConverter()
37 if (U_FAILURE(codeflag)) { in CreateConverter()
61 UErrorCode codeflag = U_ZERO_ERROR; in UnicodeConversion() local
62 UConverter* converter = ucnv_open(encoding.c_str(), &codeflag); in UnicodeConversion()
63 if (U_FAILURE(codeflag)) { in UnicodeConversion()
95 if (U_FAILURE(codeflag)) { in UnicodeConversion()
149 UErrorCode codeflag = U_ZERO_ERROR; in GetMaxByteSize() local
150 UConverter* converter = ucnv_open(encoding.c_str(), &codeflag); in GetMaxByteSize()
[all …]
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/
H A Djs_textdecoder.cpp44 UErrorCode codeflag = U_ZERO_ERROR; in TextDecoder() local
45 UConverter *conv = CreateConverter(encStr_, codeflag); in TextDecoder()
46 if (U_FAILURE(codeflag)) { in TextDecoder()
51 codeflag = U_ZERO_ERROR; in TextDecoder()
52 … ucnv_setToUCallBack(conv, UCNV_TO_U_CALLBACK_STOP, nullptr, nullptr, nullptr, &codeflag); in TextDecoder()
H A Djs_stringdecoder.cpp25 UErrorCode codeflag = U_ZERO_ERROR; in StringDecoder() local
26 conv_ = CreateConverter(encoding, codeflag); in StringDecoder()
/ohos5.0/commonlibrary/ets_utils/platform/
H A Dutil_helper.h78 UConverter* CreateConverter(const std::string& encStr_, UErrorCode& codeflag);