Age | Commit message (Collapse) | Author |
|
This function will produce a normalized upper case first letter
from a given string.
Bug: 2407129
Change-Id: Idfafca04342d43ef43cfdff0e431e0a6a8cf5c68
|
|
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.
|
|
Change-Id: I11fc145464e29364dbf302c1e607a07031e1821d
|
|
Change-Id: Ie0dde105e810c07e05471182cd0c0f81045731ef
|
|
|
|
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
|
|
in PhoneNumberUtils.java.
Due to the Thailand's special case, the code became a little nastier than before, but I believe it is inevitable...
|
|
* changes:
Avoid a buffer overrun in GET_NORMALIZED_STRING.
|
|
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
|
|
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.
|
|
unexpectedly...
|
|
Thailand one...
|
|
Changed -1 to 0.
|
|
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.
|
|
|
|
developped functions.
This change depends on https://android-git.corp.google.com/g/Gerrit#change,5510
Internal bug id: 1707173
|
|
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
|
|
using as many characters as possible, unlike the previous implementation."
This reverts commit de43094477419f8a190a6f97b47d346827310a02.
related internal issue: 1949010
|
|
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.
|
|
|
|
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.
|
|
Add SQL functions "GET_PHONETICALLY_SORTABLE_STRING()" and "GET_NORMALIZED_STRING()" and its tests.
|
|
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
|
|
|
|
whitespaces correctly.
Original author: dmiyakawa
Merged from: //branches/cupcake/...
Automated import of CL 143231
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|