diff options
author | Wei Huang <weih@google.com> | 2009-09-20 16:54:10 -0700 |
---|---|---|
committer | Wei Huang <weih@google.com> | 2009-09-20 16:58:56 -0700 |
commit | 3fffdd3714c6d4de821269bcefb65d897151c2f2 (patch) | |
tree | 7a916b785639f4fbcf65d95103bfb641d2354fc6 | |
parent | 7bb17d6e6c99d4b2fa23ab57020cef4040373b24 (diff) | |
download | android_external_sqlite-3fffdd3714c6d4de821269bcefb65d897151c2f2.tar.gz android_external_sqlite-3fffdd3714c6d4de821269bcefb65d897151c2f2.tar.bz2 android_external_sqlite-3fffdd3714c6d4de821269bcefb65d897151c2f2.zip |
make native sqlite phone_number_compare_loosely use MIN_MATCH of 7 instead of 5.
Change-Id: Ie0dde105e810c07e05471182cd0c0f81045731ef
-rw-r--r-- | android/OldPhoneNumberUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/OldPhoneNumberUtils.cpp b/android/OldPhoneNumberUtils.cpp index d3ae0a7..baeb3fe 100644 --- a/android/OldPhoneNumberUtils.cpp +++ b/android/OldPhoneNumberUtils.cpp @@ -22,7 +22,7 @@ namespace android { -static int MIN_MATCH = 5; +static int MIN_MATCH = 7; /** True if c is ISO-LATIN characters 0-9 */ static bool isISODigit (char c) @@ -186,7 +186,7 @@ static int indexOf(const char *a, char b) { * enough for caller ID purposes. * * - Compares from right to left - * - requires MIN_MATCH (5) characters to match + * - requires MIN_MATCH (7) characters to match * - handles common trunk prefixes and international prefixes * (basically, everything except the Russian trunk prefix) * |