summaryrefslogtreecommitdiff
path: root/android/PhoneticStringUtils.cpp
AgeCommit message (Collapse)Author
2013-02-05Fix contacts index labels for i18nJay Shrauner
Switch ContactsProvider to using ICU for generation of index labels, and remove custom KO and JA code. Add i18n test cases. Bug:7351596 Change-Id: I7ac25add8b29ff2c6c395f04a83b279b541e4125
2011-12-18GetPhonebookIndex: Fix handling for minor Japanese kana charactersYutaro Ogasawara
This adds minor Japanese kana character handling to meet the unicode collation algorithm. -Normalize digraphs (yori, koto) into first reading letter. -Treat dakuten, dot, onbiki, iteration marks as a symbol. -Add handling for minor small katakana letter. Signed-off-by: Yutaro Ogasawara <yutaro.ogasawara@gmail.com>
2010-11-15Update to new Unicode.h includesKenny Root
Change-Id: Ibb9ca5833f9c0b3313ff0e9bc70348d268aaf4e2
2010-03-17Remove getPhoneticallySortableString() and its SQLite variant, both of which ↵Daisuke Miyakawa
are now obsolete because we already have icu's collator. Remain getNormalizedString() but remove SQLite variant since the C function is used internally. Change-Id: If1e4b8388087b78e0f6418ac3c7be4c23f67ee0e
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-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-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-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-13auto import from //branches/cupcake_rel/...@138607The Android Open Source Project