Home
last modified time | relevance | path

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

/ohos5.0/base/security/certificate_manager/interfaces/kits/napi/src/dialog/
H A Dcm_napi_dialog_common.cpp118 std::string encodeStr(""); in EncodeBase64() local
121 return encodeStr; in EncodeBase64()
131encodeStr += g_base64Table[(triple >> BYTE_INDEX_THREE * BYTE_SHIFT_6) & BASE64_URL_TABLE_SIZE]; in EncodeBase64()
132encodeStr += g_base64Table[(triple >> BYTE_INDEX_TWO * BYTE_SHIFT_6) & BASE64_URL_TABLE_SIZE]; in EncodeBase64()
133encodeStr += g_base64Table[(triple >> BYTE_INDEX_ONE * BYTE_SHIFT_6) & BASE64_URL_TABLE_SIZE]; in EncodeBase64()
134encodeStr += g_base64Table[(triple >> BYTE_INDEX_ZONE * BYTE_SHIFT_6) & BASE64_URL_TABLE_SIZE]; in EncodeBase64()
139 encodeStr.replace(encodeStr.length() - BYTE_END_TWO, 1, BASE64_PADDING); in EncodeBase64()
140 encodeStr.replace(encodeStr.length() - BYTE_END_ONE, 1, BASE64_PADDING); in EncodeBase64()
143 encodeStr.replace(encodeStr.length() - BYTE_END_ONE, 1, BASE64_PADDING); in EncodeBase64()
148 return encodeStr; in EncodeBase64()
/ohos5.0/commonlibrary/ets_utils/platform/default/
H A Dutil_helper.cpp33 std::string encodeStr = ""; in CreateConverter() local
36 encodeStr = "ISO-8859-1"; in CreateConverter()
39 encodeStr = targetEncStr; in CreateConverter()
41 UConverter *conv = ucnv_open(encodeStr.c_str(), &codeflag); in CreateConverter()
/ohos5.0/foundation/distributeddatamgr/preferences/test/native/unittest/
H A Dbase64_helper_test.cpp137 std::string encodeStr = Base64Helper::Encode(array); variable
139 EXPECT_TRUE(Base64Helper::Decode(encodeStr, decodeArray));
/ohos5.0/foundation/communication/dsoftbus/tests/adapter/unittest/
H A Ddsoftbus_crypto_test.cpp31 static unsigned char encodeStr[100]; member in OHOS::AdaptorDsoftbusCryptTest
46 unsigned char AdaptorDsoftbusCryptTest::encodeStr[100]; member in OHOS::AdaptorDsoftbusCryptTest
63 memcpy_s(encodeStr, olen, dst, olen);
117 … int32_t ret = SoftBusBase64Decode((unsigned char *)dst, sizeof(dst), &olen, encodeStr, encodeLen);
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/src/
H A Dutil_js.ts687 static encodeStr: string = '';
701 TextDecoder.encodeStr = 'utf-8';
707 TextDecoder.encodeStr = encoding;
716 TextDecoder.encodeStr = encoding;