summaryrefslogtreecommitdiff
path: root/android/PhoneNumberUtils.h
AgeCommit message (Collapse)Author
2019-07-18Support loose comparison using minimum matched charsTaesu Lee
Specific min match is required for each country. Test: Manual Change-Id: I2f1355c4ba712170464e4c23a916024e0bf58e71 Merged-In: I2f1355c4ba712170464e4c23a916024e0bf58e71 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Bug:134246556
2011-01-06Adding a custom function to support legacy API compatibilityDmitri Plotnikov
Bug: 3210604 Change-Id: I6e9a20ec7887375b67c42a28cff54e2e9d399ea6
2009-09-20Revert the default phone number comparation algorithm.Daisuke Miyakawa
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
2009-07-07"Rewrite" PhoneNumberUtil so that it compares two phone strings using as ↵Daisuke Miyakawa
many characters as possible, unlike the previous implementation. Unlike the change 5480, this considers the NDD-problem mentioned in the internal issue 1949010. This time, 1-650-555-1234 and 650-555-1234 match each other. Added tests for the cases. related internal issue: 1868702, 1949010
2009-07-07Revert ""Rewrite" PhoneNumberUtil so that it compares two phone strings ↵Daisuke Miyakawa
using as many characters as possible, unlike the previous implementation." This reverts commit de43094477419f8a190a6f97b47d346827310a02. related internal issue: 1949010
2009-06-26"Rewrite" PhoneNumberUtil so that it compares two phone strings using as ↵Daisuke Miyakawa
many characters as possible, unlike the previous implementation. The new implementation considers country code seriously. To confirm this change does not do something wrong, I also created another change (https://android-git.corp.google.com/g/Gerrit#change,4036). All tests related to PhoneNumberUtils pass, including Thailand's ugly buggy behavior around country code handling :-P Also Add tests for PhoneNumberUtils, which can be executed in the usual workstation like this: > g++ -Wall external/sqlite/android/PhoneNumberUtils.cpp external/sqlite/android/PhoneNumberUtilsTest.cpp > ./a.out This change fixes the internal bug 1868702.
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2008-10-21Initial ContributionThe Android Open Source Project