Home
last modified time | relevance | path

Searched refs:PhoneNumberFormat (Results 1 - 14 of 14) sorted by relevance

/base/global/i18n/frameworks/intl/src/
H A Dphone_number_format.cpp37 void* PhoneNumberFormat::dynamicHandler = nullptr;
38 std::mutex PhoneNumberFormat::phoneMutex;
39 std::mutex PhoneNumberFormat::AS_YOU_TYPE_FORMAT_MUTEX;
40 size_t PhoneNumberFormat::MAX_NUMBER_LENGTH = 30;
41 std::map<char, char> PhoneNumberFormat::VALID_PHONE_NUMBER_CHARS {
105 PhoneNumberFormat::PhoneNumberFormat(const std::string &countryTag, in PhoneNumberFormat() function in OHOS::Global::I18n::PhoneNumberFormat
121 std::map<std::string, PhoneNumberUtil::PhoneNumberFormat> type2PhoneNumberFormat = { in PhoneNumberFormat()
122 {"E164", PhoneNumberUtil::PhoneNumberFormat::E164}, in PhoneNumberFormat()
123 {"RFC3966", PhoneNumberUtil::PhoneNumberFormat in PhoneNumberFormat()
[all...]
/base/global/i18n/frameworks/intl/include/
H A Dphone_number_format.h36 class PhoneNumberFormat { class
38 PhoneNumberFormat(const std::string &countryTag, const std::map<std::string, std::string> &options);
39 virtual ~PhoneNumberFormat();
42 static std::unique_ptr<PhoneNumberFormat> CreateInstance(const std::string &countryTag,
60 PhoneNumberUtil::PhoneNumberFormat phoneNumberFormat;
/base/global/i18n/frameworks/intl/test/fuzztest/phonenumberformat_fuzzer/
H A Dphonenumberformat_fuzzer.cpp33 PhoneNumberFormat formatter(input, options); in DoSomethingInterestingWithMyAPI()
40 PhoneNumberFormat::CreateInstance(input, options); in DoSomethingInterestingWithMyAPI()
/base/global/i18n/frameworks/intl/test/unittest/mock/include/
H A Dphone_number_format_mock.h23 class PhoneNumberFormatMock : public PhoneNumberFormat {
/base/telephony/sms_mms/services/sms/include/
H A Dsms_persist_helper.h59 const i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat formatInfo, std::string &formatNum);
63 void CbnFormat(std::string &numTemp, const i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat formatInfo,
/base/global/i18n/frameworks/intl/test/unittest/mock/src/
H A Dphone_number_format_mock.cpp22 : PhoneNumberFormat(countryTag, options) in PhoneNumberFormatMock()
/base/telephony/sms_mms/services/sms/
H A Dsms_persist_helper.cpp284 const i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat formatInfo, std::string &formatNum) in FormatSmsNumber()
313 const i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat formatInfo, std::string &formatNum) in CbnFormat()
323 if (formatInfo == i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::NATIONAL) { in CbnFormat()
332 if (formatInfo == i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::INTERNATIONAL) { in CbnFormat()
437 address, ISO_COUNTRY_CODE, i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::NATIONAL, nationalNum); in QueryRawContactId()
443 i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::INTERNATIONAL, internationalNum); in QueryRawContactId()
/base/telephony/call_manager/utils/include/
H A Dcall_number_utils.h40 const i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat formatInfo, std::string &formatNumber);
/base/telephony/call_manager/utils/src/
H A Dcall_number_utils.cpp74 i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::NATIONAL, formatNumber); in FormatPhoneNumberToNational()
83 i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::INTERNATIONAL, formatNumber); in FormatPhoneNumberToInternational()
89 const i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat formatInfo, std::string &formatNumber) in FormatNumberBase()
/base/global/i18n/interfaces/js/kits/include/
H A Di18n_addon.h104 std::unique_ptr<PhoneNumberFormat> phonenumberfmt_ = nullptr;
/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_test_extent.cpp235 * @tc.desc: Test Intl PhoneNumberFormat
243 std::unique_ptr<PhoneNumberFormat> phoneNumberFormat = in HWTEST_F()
244 std::make_unique<PhoneNumberFormat>("zh-CN", options); in HWTEST_F()
940 * @tc.desc: Test PhoneNumberFormat.format()
948 std::unique_ptr<PhoneNumberFormat> phoneNumFmt = in HWTEST_F()
949 std::make_unique<PhoneNumberFormat>("zh-CN", options); in HWTEST_F()
974 std::unique_ptr<PhoneNumberFormat> phoneNumFmt2 = in HWTEST_F()
975 std::make_unique<PhoneNumberFormat>("AD", options); in HWTEST_F()
987 PhoneNumberFormat::CloseDynamicHandler(); in HWTEST_F()
H A Di18n_test.cpp528 * @tc.desc: Test I18n PhoneNumberFormat
537 std::unique_ptr<PhoneNumberFormat> formatter = PhoneNumberFormat::CreateInstance(countryTag, options);
543 std::unique_ptr<PhoneNumberFormat> formatter1 = std::make_unique<PhoneNumberFormatMock>("XK", options);
546 std::unique_ptr<PhoneNumberFormat> formatter2 = std::make_unique<PhoneNumberFormatMock>("CN", options);
/base/telephony/sms_mms/test/gtest/
H A Dzero_branch_sms_test.cpp1950 i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat formatInfo = in HWTEST_F()
1951 i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::NATIONAL; in HWTEST_F()
2377 smsPersistHelper->CbnFormat(num, i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::NATIONAL, formatNum); in HWTEST_F()
2379 smsPersistHelper->CbnFormat(num, i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::INTERNATIONAL, formatNum); in HWTEST_F()
2382 cbnNumTemp, i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::INTERNATIONAL, formatNum); in HWTEST_F()
2385 cbnNumTemp, i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::NATIONAL, formatNum); in HWTEST_F()
/base/global/i18n/interfaces/js/kits/src/
H A Di18n_addon.cpp52 PhoneNumberFormat::CloseDynamicHandler(); in ~I18nAddon()
720 status = napi_define_class(env, "PhoneNumberFormat", NAPI_AUTO_LENGTH, PhoneNumberFormatConstructor, nullptr, in InitPhoneNumberFormat()
727 status = napi_set_named_property(env, exports, "PhoneNumberFormat", constructor); in InitPhoneNumberFormat()
792 phonenumberfmt_ = PhoneNumberFormat::CreateInstance(country, options); in InitPhoneNumberFormatContext()
909 HILOG_ERROR_I18N("Get PhoneNumberFormat object failed"); in FormatPhoneNumber()

Completed in 20 milliseconds