Home
last modified time | relevance | path

Searched refs:number_as_unicode (Results 1 – 4 of 4) sorted by relevance

/third_party/libphonenumber/cpp/src/phonenumbers/
Dnormalize_utf8.h28 UnicodeText number_as_unicode; in NormalizeDecimalDigits() local
29 number_as_unicode.PointToUTF8(number.data(), static_cast<int>(number.size())); in NormalizeDecimalDigits()
30 if (!number_as_unicode.UTF8WasValid()) in NormalizeDecimalDigits()
32 for (UnicodeText::const_iterator it = number_as_unicode.begin(); in NormalizeDecimalDigits()
33 it != number_as_unicode.end(); in NormalizeDecimalDigits()
Dphonenumberutil.cc332 UnicodeText number_as_unicode; in NormalizeHelper() local
333 number_as_unicode.PointToUTF8(number->data(), static_cast<int>(number->size())); in NormalizeHelper()
334 if (!number_as_unicode.UTF8WasValid()) { in NormalizeHelper()
341 for (UnicodeText::const_iterator it = number_as_unicode.begin(); in NormalizeHelper()
342 it != number_as_unicode.end(); in NormalizeHelper()
1013 UnicodeText number_as_unicode; in TrimUnwantedEndChars() local
1014 number_as_unicode.PointToUTF8(number->data(), static_cast<int>(number->size())); in TrimUnwantedEndChars()
1015 if (!number_as_unicode.UTF8WasValid()) { in TrimUnwantedEndChars()
1022 UnicodeText::const_reverse_iterator reverse_it(number_as_unicode.end()); in TrimUnwantedEndChars()
1023 for (; reverse_it.base() != number_as_unicode.begin(); ++reverse_it) { in TrimUnwantedEndChars()
[all …]
Dphonenumbermatcher.cc444 UnicodeText number_as_unicode; in IsInputUtf8() local
445 number_as_unicode.PointToUTF8(text_.c_str(), text_.size()); in IsInputUtf8()
446 return number_as_unicode.UTF8WasValid(); in IsInputUtf8()
/third_party/libphonenumber/cpp/test/phonenumbers/utf/
Dunicodetext_test.cc37 UnicodeText number_as_unicode; in TEST() local
38 number_as_unicode.PointToUTF8(number.data(), number.size()); in TEST()
39 EXPECT_TRUE(number_as_unicode.UTF8WasValid()); in TEST()
40 UnicodeText::const_iterator it = number_as_unicode.begin(); in TEST()