Searched refs:phoneNumberFormat (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/docs/zh-cn/application-dev/internationalization/ |
H A D | i18n-phone-numbers.md | 23 …let phoneNumberFormat: i18n.PhoneNumberFormat = new i18n.PhoneNumberFormat(country: string, option… 28 let formattedPhoneNumber: string = phoneNumberFormat.format(phoneNumber: string); 33 let isValidNumber: boolean = phoneNumberFormat.isValidNumber(phoneNumber: string); // 判断电话号码正确性 34 …let locationName: string = phoneNumberFormat.getLocationName(number: string, locale: string); // 获…
|
/ohos5.0/base/global/i18n/frameworks/intl/src/ |
H A D | phone_number_format.cpp | 131 phoneNumberFormat = type2PhoneNumberFormat[type]; in PhoneNumberFormat() 133 phoneNumberFormat = PhoneNumberUtil::PhoneNumberFormat::NATIONAL; in PhoneNumberFormat() 156 …std::unique_ptr<PhoneNumberFormat> phoneNumberFormat = std::make_unique<PhoneNumberFormat>(country… in CreateInstance() local 157 if (phoneNumberFormat->GetPhoneNumberUtil() == nullptr) { in CreateInstance() 160 return phoneNumberFormat; in CreateInstance() 194 util->Format(phoneNumber, phoneNumberFormat, &formatted_number); in format()
|
/ohos5.0/docs/en/application-dev/internationalization/ |
H A D | i18n-phone-numbers.md | 23 …let phoneNumberFormat: i18n.PhoneNumberFormat = new i18n.PhoneNumberFormat(country: string, option… 28 let formattedPhoneNumber: string = phoneNumberFormat.format(phoneNumber: string); 33 …The let isValidNumber: boolean = phoneNumberFormat.isValidNumber(phoneNumber: string); // Check wh… 34 …let locationName: string = phoneNumberFormat.getLocationName(number: string, locale: string); // O…
|
/ohos5.0/base/global/i18n/frameworks/intl/include/ |
H A D | phone_number_format.h | 60 PhoneNumberUtil::PhoneNumberFormat phoneNumberFormat; variable
|
/ohos5.0/base/global/i18n/frameworks/intl/test/unittest/ |
H A D | intl_test_extent.cpp | 242 std::unique_ptr<PhoneNumberFormat> phoneNumberFormat = variable 244 std::string location = phoneNumberFormat->getLocationName("13228901234", "en-US"); 246 std::string location2 = phoneNumberFormat->getLocationName("15156712345", "zh-CN"); 248 std::string location3 = phoneNumberFormat->getLocationName("17673241234", "zh-CN"); 250 bool flag = phoneNumberFormat->isValidPhoneNumber("+8618622350085"); 253 std::string formatResult = phoneNumberFormat->format(number2); 255 std::string location4 = phoneNumberFormat->getLocationName("fake-number", "zh-CN"); 258 std::string formatedStr = phoneNumberFormat->format(number3);
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-localization-kit/ |
H A D | js-apis-i18n.md | 1053 let phoneNumberFormat: i18n.PhoneNumberFormat = new i18n.PhoneNumberFormat("CN", option);
|
/ohos5.0/docs/en/application-dev/reference/apis-localization-kit/ |
H A D | js-apis-i18n.md | 1053 let phoneNumberFormat: i18n.PhoneNumberFormat = new i18n.PhoneNumberFormat("CN", option);
|