Home
last modified time | relevance | path

Searched refs:possible_lengths (Results 1 - 5 of 5) sorted by relevance

/third_party/libphonenumber/cpp/test/phonenumbers/geocoding/
H A Dgeocoding_data_test.cc68 absl::btree_set<int> possible_lengths; in TestPrefixDescriptions() local
75 possible_lengths.insert(log10(prefix) + 1); in TestPrefixDescriptions()
80 int possible_length = descriptions->possible_lengths[i]; in TestPrefixDescriptions()
83 EXPECT_LT(descriptions->possible_lengths[i - 1], possible_length); in TestPrefixDescriptions()
86 possible_lengths.find(possible_length) != possible_lengths.end()); in TestPrefixDescriptions()
172 EXPECT_EQ(expected_lengths[i], desc_1_de->possible_lengths[i]); in TEST()
/third_party/libphonenumber/cpp/src/phonenumbers/geocoding/
H A Dgeocoding_data.h45 const int32_t* possible_lengths; member
47 // Number of elements in possible_lengths.
H A Ddefault_map_storage.cc48 possible_lengths_ = descriptions->possible_lengths; in ReadFromMap()
/third_party/libphonenumber/cpp/src/phonenumbers/
H A Dphonenumberutil.cc417 RepeatedField<int> possible_lengths = in TestNumberLength() local
438 possible_lengths.MergeFrom( in TestNumberLength()
442 std::sort(possible_lengths.begin(), possible_lengths.end()); in TestNumberLength()
456 if (possible_lengths.Get(0) == -1) { in TestNumberLength()
467 int minimum_length = possible_lengths.Get(0); in TestNumberLength()
472 } else if (*(possible_lengths.end() - 1) < actual_length) { in TestNumberLength()
476 return std::find(possible_lengths.begin() + 1, possible_lengths.end(), in TestNumberLength()
477 actual_length) != possible_lengths in TestNumberLength()
[all...]
/third_party/libphonenumber/cpp/src/phonenumbers/ohos/
H A Dupdate_geocoding.cc232 possibleLengths[i] = prefixDescriptionsArray[index]->possible_lengths[i]; in ModifyPossibleLengths()

Completed in 9 milliseconds