Home
last modified time | relevance | path

Searched refs:phoneNumberFormat (Results 1 - 3 of 3) sorted by relevance

/base/global/i18n/frameworks/intl/src/
H A Dphone_number_format.cpp131 phoneNumberFormat = type2PhoneNumberFormat[type]; in PhoneNumberFormat()
133 phoneNumberFormat = PhoneNumberUtil::PhoneNumberFormat::NATIONAL; in PhoneNumberFormat()
156 std::unique_ptr<PhoneNumberFormat> phoneNumberFormat = std::make_unique<PhoneNumberFormat>(countryTag, options); in CreateInstance() local
157 if (phoneNumberFormat->GetPhoneNumberUtil() == nullptr) { in CreateInstance()
160 return phoneNumberFormat; in CreateInstance()
194 util->Format(phoneNumber, phoneNumberFormat, &formatted_number); in format()
/base/global/i18n/frameworks/intl/include/
H A Dphone_number_format.h60 PhoneNumberUtil::PhoneNumberFormat phoneNumberFormat; member in OHOS::Global::I18n::PhoneNumberFormat
/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_test_extent.cpp243 std::unique_ptr<PhoneNumberFormat> phoneNumberFormat = in HWTEST_F() local
245 std::string location = phoneNumberFormat->getLocationName("13228901234", "en-US"); in HWTEST_F()
247 std::string location2 = phoneNumberFormat->getLocationName("15156712345", "zh-CN"); in HWTEST_F()
249 std::string location3 = phoneNumberFormat->getLocationName("17673241234", "zh-CN"); in HWTEST_F()
251 bool flag = phoneNumberFormat->isValidPhoneNumber("+8618622350085"); in HWTEST_F()
254 std::string formatResult = phoneNumberFormat->format(number2); in HWTEST_F()
256 std::string location4 = phoneNumberFormat->getLocationName("fake-number", "zh-CN"); in HWTEST_F()
259 std::string formatedStr = phoneNumberFormat->format(number3); in HWTEST_F()

Completed in 6 milliseconds