Home
last modified time | relevance | path

Searched refs:formatted_number (Results 1 – 6 of 6) sorted by relevance

/third_party/libphonenumber/cpp/test/phonenumbers/
Dphonenumberutil_test.cc514 string formatted_number; in TEST_F() local
517 phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number); in TEST_F()
518 EXPECT_EQ("650 253 0000", formatted_number); in TEST_F()
520 &formatted_number); in TEST_F()
521 EXPECT_EQ("+1 650 253 0000", formatted_number); in TEST_F()
524 phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number); in TEST_F()
525 EXPECT_EQ("800 253 0000", formatted_number); in TEST_F()
527 &formatted_number); in TEST_F()
528 EXPECT_EQ("+1 800 253 0000", formatted_number); in TEST_F()
531 phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number); in TEST_F()
[all …]
/third_party/libphonenumber/cpp/src/phonenumbers/
Dphonenumberutil.cc170 string* formatted_number) { in PrefixNumberWithCountryCallingCode() argument
173 formatted_number->insert(0, StrCat(kPlusSign, country_calling_code)); in PrefixNumberWithCountryCallingCode()
176 formatted_number->insert(0, StrCat(kPlusSign, country_calling_code, " ")); in PrefixNumberWithCountryCallingCode()
179 formatted_number->insert(0, StrCat(kRfc3966Prefix, kPlusSign, in PrefixNumberWithCountryCallingCode()
1088 string* formatted_number) const { in Format()
1089 DCHECK(formatted_number); in Format()
1098 formatted_number->assign(raw_input); in Format()
1109 formatted_number->assign(national_significant_number); in Format()
1111 formatted_number); in Format()
1115 formatted_number->assign(national_significant_number); in Format()
[all …]
Dasyoutypeformatter.cc410 string formatted_number; in InputDigitWithOptionToRememberPosition() local
411 AttemptToFormatAccruedDigits(&formatted_number); in InputDigitWithOptionToRememberPosition()
412 if (formatted_number.length() > 0) { in InputDigitWithOptionToRememberPosition()
413 phone_number->assign(formatted_number); in InputDigitWithOptionToRememberPosition()
435 string* formatted_number) { in AttemptToChoosePatternWithPrefixExtracted() argument
442 AttemptToChooseFormattingPattern(formatted_number); in AttemptToChoosePatternWithPrefixExtracted()
479 string formatted_number(national_number_); in AttemptToFormatAccruedDigits() local
481 &formatted_number, number_format.format()); in AttemptToFormatAccruedDigits()
492 AppendNationalNumber(formatted_number, &full_output); in AttemptToFormatAccruedDigits()
500 AppendNationalNumber(formatted_number, formatted_result); in AttemptToFormatAccruedDigits()
[all …]
Dphonenumberutil.h341 string* formatted_number) const;
349 string* formatted_number) const;
358 string* formatted_number) const;
373 string* formatted_number) const;
383 string* formatted_number) const;
395 string* formatted_number) const;
408 string* formatted_number) const;
430 string* formatted_number) const;
878 string* formatted_number) const;
884 string* formatted_number) const;
[all …]
Dasyoutypeformatter.h115 void AttemptToChoosePatternWithPrefixExtracted(string* formatted_number);
127 void AttemptToFormatAccruedDigits(string* formatted_number);
138 void AttemptToChooseFormattingPattern(string* formatted_number);
/third_party/glib/glib/
Dgutils.c2919 gchar *formatted_number; in g_format_size_full() local
2931 formatted_number = g_strdup_printf ("%'"G_GUINT64_FORMAT, size); in g_format_size_full()
2934 g_string_append_printf (string, translated_format, formatted_number); in g_format_size_full()
2935 g_free (formatted_number); in g_format_size_full()