diff options
author | Daisuke Miyakawa <dmiyakawa@google.com> | 2009-09-19 19:19:53 -0700 |
---|---|---|
committer | Daisuke Miyakawa <dmiyakawa@google.com> | 2009-09-20 13:32:06 -0700 |
commit | 948a119c94f8b69760437c7d1e784b498cd9b766 (patch) | |
tree | fd7d49dbfa47e5017ffed31867a35e747a59c925 /android/PhoneNumberUtils.cpp | |
parent | b3b8a9dac508afdbac8de93a31a752c60e34e254 (diff) |
Revert the default phone number comparation algorithm.
Now developers have to explicitly set the third argument of PHONE_NUMBERS_COMPARE() into 1,
when they want to use "strict" phone number comparation algorithm, which was used in Donut.
In default, PHONE_NUMBER_COMPARE() now uses "loose" phone number comparation algorithm,
which had been used in Cupcake.
Internal issue id: 1892808
Diffstat (limited to 'android/PhoneNumberUtils.cpp')
-rw-r--r-- | android/PhoneNumberUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/PhoneNumberUtils.cpp b/android/PhoneNumberUtils.cpp index 68c0fb6..775e33f 100644 --- a/android/PhoneNumberUtils.cpp +++ b/android/PhoneNumberUtils.cpp @@ -428,9 +428,9 @@ static bool phone_number_compare_inter(const char* const org_a, const char* cons return true; } -bool phone_number_compare(const char* a, const char* b) +bool phone_number_compare_strict(const char* a, const char* b) { return phone_number_compare_inter(a, b, true); } -} // namespace android +} // namespace android |