aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/utils/StringUtils.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move StringUtils under common.Jean Chalard2014-10-281-630/+0
| | | | | Bug: 18108776 Change-Id: Ia46a4102a0e86e71118ca5e641f9f531998e166b
* Reduce StringUtils dependency on the Android libsJean Chalard2014-10-281-65/+66
| | | | | Bug: 18108776 Change-Id: I43feb25d79f89276d44462ba71788a14c4583277
* Move Constants.java to the latin.common packageKen Wakasa2014-10-231-4/+2
| | | | | | | Our intention is to have classes of latinime-common under the common package as much as we can. Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d
* Fix Javadoc and null analysis related warningsTadashi G. Takaoka2014-10-231-3/+3
| | | | | | | This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
* resolved conflicts for merge of 233a2f21 to masterYohei Yukawa2014-09-181-0/+34
|\ | | | | | | Change-Id: If391cc622367dfb4448c6a5c32b82111d352d86e
| * Use Add-To-Dictionary indicator onlyYohei Yukawa2014-09-181-0/+34
| | | | | | | | | | | | | | | | | | | | With this CL, the previously used commit indicator was reverted. Instead we use the add-to-dictionary indicator only at the moment. This CL also fixes the indicator position in bidi context. BUG: 17335734 Change-Id: I5f7cf173ddc30876e2b01320acaff8ba4265edf6
* | Straighten the dead char implementation, take 3.Jean Chalard2014-08-281-2/+2
| | | | | | | | Change-Id: I4f70f6eebe076c7d2b780d25e3a2c1d3faa2edfa
* | Revert "Straighten the dead char implementation."Ken Wakasa2014-08-271-2/+2
| | | | | | | | | | | | | | | | This reverts commit 5ef447aeea97c755008785b36468715922b7ccc1. Reverting because this broke a bunch of unit tests -- https://sponge.corp.google.com/target?id=b6439742-099e-46cb-8f00-d0c602a4d9bb&target=com.google.android.inputmethod.latin.tests&searchFor=&show=FAILED&sortBy=STATUS Change-Id: Ibbd9e11372993f62e630fd9da37158ffcf47c17a
* | Straighten the dead char implementation.Jean Chalard2014-08-271-2/+2
| | | | | | | | | | | | | | | | This now supports all cases, including cases not supported by the framework. Now rebased on top of the right change, and renamed Change-Id: I7886f0dcbb86cdb4dccec09aa7c52ad339680e04
* | Revert "[HW17] Straighten the dead char implementation."Jean Chalard2014-08-221-2/+2
| | | | | | | | | | | | This reverts commit c6612ff05185503bedc56dc610aa300d01be2e82. Change-Id: I750d9bff9cb89a6ab13af7a33567c3a0fe2af381
* | [HW17] Straighten the dead char implementation.Jean Chalard2014-08-221-2/+2
|/ | | | | | | This now supports all cases, including cases not supported by the framework. Change-Id: I9dfbe2829c28c5bcb64b0b5a2551e7806990c00f
* Enable StringUtils to split CharSequence like String#splitYohei Yukawa2014-07-191-0/+52
| | | | | | | | | | | | This is a groundwork for enabling LocaleSpan. To enable LocaleSpan everywhere, we need to switch to CharSequence from String so that Span infromation can be preserved end-to-end. To achieve this, we need to have CharSequence version of String#split. BUG: 16029304 Change-Id: I0dd103185dcf62fb1e25054a374340790e6a4678
* Remove dead code to fix test failure due to NoSuchMethodErrorYohei Yukawa2014-07-041-25/+0
| | | | | | | | | | This CL removes following methods from StringUtils, which are no longer used since Id3c262386a7bc7ed75966b1395a50171abe550d3. - #joinCommaSplittableText - #appendToCommaSplittableTextIfNotExists BUG: 16000850 Change-Id: Ibdc9b7e463a19cdfac788b24c0a6322d0c5850c5
* Revert "Move getPrevWordsInfoFromNthPreviousWord to StringUtlis."Ken Wakasa2014-06-271-77/+0
| | | | | | | This reverts commit ba463c9a66f75e8d00f4658e32b763eb54215231 that broke the dicttool build. Bug: 14425059 Change-Id: Ie1685587104d26e4416624747c97f6087c13388a
* Move getPrevWordsInfoFromNthPreviousWord to StringUtlis.Keisuke Kuroyanagi2014-06-271-0/+77
| | | | | Bug: 14425059 Change-Id: I3eb24e840c165e43f68c2a60fccf9974affb57a6
* Remove a useless methodJean Chalard2014-06-101-18/+0
| | | | Change-Id: I21a4219f682f43f4a84b1ab12d00dd930b35caa1
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-2/+1
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Fix: StringIndexOutOfBoundsException.Keisuke Kuroyanagi2014-05-161-0/+9
| | | | | Bug: 14985751 Change-Id: I9df2f737555ab02e24e0fbd231a97c1eec26bc57
* [CB25] Refactor some array copyingJean Chalard2014-04-091-2/+31
| | | | | Bug: 13406701 Change-Id: I09edd822f5cc2446b324d41c76d835bcff1191e6
* [CB17] Remove a member.Jean Chalard2014-04-021-8/+9
| | | | | Bug: 13406701 Change-Id: I2e271f637f6b529a4191a7adc5cdfa5af437761b
* Add ActualKeyboardBuilder for testing keyboard layoutsTadashi G. Takaoka2014-03-071-0/+40
| | | | | Bug: 13017434 Change-Id: I38b1f5c261ea1f3ff312c780d7d9b5fe3fba8aaf
* Add a utility method to StringUtils.Keisuke Kuroyanagi2014-02-041-1/+19
| | | | | Bug: 12810574 Change-Id: I607803e924b9e99855df7690e67488b2861c120e
* Move some methods to StringUtilsTadashi G. Takaoka2014-01-311-0/+18
| | | | Change-Id: I29d87fdd65ec879d1c0bdf7e7792a677687c1693
* Try to figure out whether d.quotes open or close.Jean Chalard2014-01-271-1/+43
| | | | | Bug: 8911672 Change-Id: I5d5635949530a67f95e5208986907251b7bce903
* [IL71.1] Add some javadoc.Jean Chalard2014-01-231-0/+7
| | | | Change-Id: I382abd3104d535a1e868935d8cfb4e34ad8ebaed
* [IL71] Add indices to toCodePointArray.Jean Chalard2014-01-231-2/+8
| | | | | | | This is necessary for tests Bug: 8636060 Change-Id: I50ea401a22e4df72333eda61ca39aa180966ee4b
* Use sorted int[] to represent word separatorsTadashi G. Takaoka2014-01-201-9/+9
| | | | Change-Id: I4103541d99fe59bfcf12379a1298a0a690497846
* Add SpacingAndPunctuationsTestsTadashi G. Takaoka2014-01-201-0/+7
| | | | Change-Id: I78d488ad84a11af809ee1f8d3d2fa01a89fbfa28
* Fix build.Jean Chalard2014-01-101-26/+0
| | | | Change-Id: I6d0b572190080e58e95f72856ad39e72a49537b7
* Passing SpacingAndPunctuations to StringUtils.looksValidForDictionaryInsertionTadashi G. Takaoka2014-01-091-6/+3
| | | | | | This change must be checked in together with Iec437d6df0. Change-Id: Idf745b8870965f3bdf690de7ff3b22f83f6204bf
* Fix a bug with languages without spaces and predictionsJean Chalard2013-12-161-0/+18
| | | | | | This is simpler and more correct. Change-Id: I41806d2fc12b4ca25f76e32972b38f91f3d05c2b
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-76/+24
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Fix wrong commitText parameter in sendKeyCodePoint()Ken Wakasa2013-10-131-0/+10
| | | | | | | | | Small optimization on generating a String instance from a single code point too. bug: 11181913 Change-Id: I0f905e4dc6ec7841092bb4d3d940daf3b2303f5b
* Fix the offdevice regression test buildKen Wakasa2013-09-251-89/+0
| | | | | | | Followup to If4e44eca3cdc5bb02cf2e0c8c44ecd4bf27fae57 bug: 10622489 Change-Id: If98b2c75725f8692f0c2b41c33e448086404479b
* Copy only the spans we are interested in.Jean Chalard2013-09-241-0/+89
| | | | | | | | | The PARAGRAPH type of span is dangerous, as concatenating CharSequences that contain it may crash. We also don't use other spans than SuggestionSpans, so we don't copy them. Bug: 10622489 Change-Id: If4e44eca3cdc5bb02cf2e0c8c44ecd4bf27fae57
* Fix Emoji recentsSatoshi Kataoka2013-09-181-2/+74
| | | | | | Bug: 10538430 Change-Id: Ia2e423eb1843195b3c3218afc79a5820b8cd729b
* Consolidate hex string utilsSatoshi Kataoka2013-08-191-0/+7
| | | | Change-Id: Id4f4a287e3a2790b22bff7ad4a4617bf2ee82884
* Add hex string utilsSatoshi Kataoka2013-08-161-0/+26
| | | | | Bug: 9429906 Change-Id: I3267d1d86122ab471c3e63008c73e9f9b758fc8e
* Fix test breakageSatoshi Kataoka2013-08-141-0/+2
| | | | Change-Id: I10bd8fcc68711a039e000f715d7a65ae42095965
* Add a method to import one bigram and string utilitiesSatoshi Kataoka2013-08-141-0/+10
| | | | | Bug: 9429906 Change-Id: I73bbf65985196d62470552c576bb076a7cb95008
* Add looksValidForDictionaryInsertionJean Chalard2013-08-141-4/+33
| | | | | | | | | | ...and test it. Also at the same time, add a facility to create a SettingsValues for test, and some minor performance improvement to surrounding methods. Change-Id: I13b629ae14755c244af2a9406a7e9b4a4a16090f
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-0/+319
Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa