summaryrefslogtreecommitdiff
path: root/android
AgeCommit message (Collapse)Author
2010-03-03Introducing a new SQLite extension function: GET_PHONEBOOK_INDEXDmitri Plotnikov
This function will produce a normalized upper case first letter from a given string. Bug: 2407129 Change-Id: Idfafca04342d43ef43cfdff0e431e0a6a8cf5c68
2009-10-23bug #2180646: make comparing "404-04" and "40404" return true in the native ↵Wei Huang
sqlite (loose) phone number comparison method. - when comparing two numbers whose dialable char length is less than the MIN_MATCH (7), treat them as equal if the dialable portion of the numbers match.
2009-09-21fix failing test.Wei Huang
Change-Id: I11fc145464e29364dbf302c1e607a07031e1821d
2009-09-20make native sqlite phone_number_compare_loosely use MIN_MATCH of 7 instead of 5.Wei Huang
Change-Id: Ie0dde105e810c07e05471182cd0c0f81045731ef
2009-09-20Small changeDaisuke Miyakawa
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-09-02Fix the implementation of phone_number_compare in accordance with the tests ↵Daisuke Miyakawa
in PhoneNumberUtils.java. Due to the Thailand's special case, the code became a little nastier than before, but I believe it is inevitable...
2009-08-31Merge change 23409 into donutAndroid (Google) Code Review
* changes: Avoid a buffer overrun in GET_NORMALIZED_STRING.
2009-09-01Avoid a buffer overrun in GET_NORMALIZED_STRING.Jeff Hamilton
This custom SQL function uses a fixed buffer of 128 characters and would overrun the buffer if passed a longer src string. Also, fix another problem with the function where it was using the incorrect value for next_codepoint. It was reading from the destination array not the source array. Bug: 2089658
2009-08-31fix bug 2015059: where the native sqlite comparison method ↵Wei Huang
phone_number_compare() treated all alpha addresses as the same phone number. - changed phone_number_compare() to handle alpha chars. Before this change the algorithm skipped over all non-dialable chars for comparison, and thus treating "foo" and "bar" as the same addresses. now we don't skip any char that's alpha. This would treat "foo" and "bar" as separate addresses, as well as treating "1-800-flowers" and "800-flowers" as the same number.
2009-07-20One more test, which is succesful (and should be successful), but ↵Daisuke Miyakawa
unexpectedly...
2009-07-20Fix a bug in which "16\d+6" matches 166 and the number is handled as ↵Daisuke Miyakawa
Thailand one...
2009-07-10Oops! I was totally misunderstanding what was going wrong!!Daisuke Miyakawa
Changed -1 to 0.
2009-07-10Make sim-ang not corrupt when building PhoneticUtilsTest.cppDaisuke Miyakawa
You can double-check by doing this: > make libsqlite3_phone_number_utils_test However, I'm doubting the current breakage is caused not only this but also another something. I'll stay tuned.
2009-07-09quick fixDaisuke Miyakawa
2009-07-09Make PhoneticStringUtils use functions in String8 instead of using locally ↵Daisuke Miyakawa
developped functions. This change depends on https://android-git.corp.google.com/g/Gerrit#change,5510 Internal bug id: 1707173
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-06-22Remove libsqlite3_phonetic_string_utils_test from tests buildSriram Raman
2009-05-19Added 'tag' column to SQLite _TOKENIZE function.Bjorn Bringert
If the new optional 6th argument <data_tag> is given to _TOKENIZE, the 'tag' column is set to <data_tag>. This can for example be used to record from which column the tokens come when tokens are extracted from multiple columns.
2009-05-18Hand merge from cupcake_dcm from donut, part 1.Daisuke Miyakawa
Add SQL functions "GET_PHONETICALLY_SORTABLE_STRING()" and "GET_NORMALIZED_STRING()" and its tests.
2009-05-14Add token_index column to _TOKENIZE table.Bjorn Bringert
If the new optional fifth argument to _TOKENIZE is non-zero, the _TOKENIZE function now uses a third column, token_index, in addition to the earlier token and source columns. The new column stores the index of the token within the string. This is useful for distingusihing between matches that are prefixes of the original string, and matches that are prefixes of one of the tokens inside the original string. This change is required to fix http://b/issue?id=1847321
2009-05-06Don't allow '/../' to be part of the path for delete file triggers.Marco Nelissen
2009-03-27AI 143231: am: CL 143056 Fix PhoneticStringUtils so that it ignores ↵Daisuke Miyakawa
whitespaces correctly. Original author: dmiyakawa Merged from: //branches/cupcake/... Automated import of CL 143231
2009-03-24Automated import from //branches/donutburger/...@140818,140818Dianne Hackborn
2009-03-13auto import from //branches/cupcake_rel/...@138607The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-02-10auto import from //branches/cupcake/...@130745The Android Open Source Project
2008-12-17Code drop from //branches/cupcake/...@124589The Android Open Source Project
2008-10-21Initial ContributionThe Android Open Source Project