HomeSort by relevance Sort by last modified time
    Searched refs:offsetByCodePoints (Results 1 - 25 of 33) sorted by null

1 2

  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
StringTest.java 297 * @tests java.lang.String.offsetByCodePoints(int, int)'
300 int result = new String("a\uD800\uDC00b").offsetByCodePoints(0, 2);
303 result = new String("abcd").offsetByCodePoints(3, -1);
306 result = new String("a\uD800\uDC00b").offsetByCodePoints(0, 3);
309 result = new String("a\uD800\uDC00b").offsetByCodePoints(3, -1);
312 result = new String("a\uD800\uDC00b").offsetByCodePoints(3, 0);
315 result = new String("\uD800\uDC00bc").offsetByCodePoints(3, 0);
318 result = new String("a\uDC00bc").offsetByCodePoints(3, -1);
321 result = new String("a\uD800bc").offsetByCodePoints(3, -1);
325 .offsetByCodePoints(0, 2)
    [all...]
StringBufferTest.java 466 * @tests java.lang.StringBuffer.offsetByCodePoints(int, int)'
469 int result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(0, 2);
472 result = new StringBuffer("abcd").offsetByCodePoints(3, -1);
475 result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(0, 3);
478 result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(3, -1);
481 result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(3, 0);
484 result = new StringBuffer("\uD800\uDC00bc").offsetByCodePoints(3, 0);
487 result = new StringBuffer("a\uDC00bc").offsetByCodePoints(3, -1);
490 result = new StringBuffer("a\uD800bc").offsetByCodePoints(3, -1);
495 sb.offsetByCodePoints(-1, 1)
    [all...]
CharacterTest.java 409 int result = Character.offsetByCodePoints("a\uD800\uDC00b", 0, 2);
412 result = Character.offsetByCodePoints("abcd", 3, -1);
415 result = Character.offsetByCodePoints("a\uD800\uDC00b", 0, 3);
418 result = Character.offsetByCodePoints("a\uD800\uDC00b", 3, -1);
421 result = Character.offsetByCodePoints("a\uD800\uDC00b", 3, 0);
424 result = Character.offsetByCodePoints("\uD800\uDC00bc", 3, 0);
427 result = Character.offsetByCodePoints("a\uDC00bc", 3, -1);
430 result = Character.offsetByCodePoints("a\uD800bc", 3, -1);
434 Character.offsetByCodePoints((CharSequence) null, 0, 1);
440 Character.offsetByCodePoints("abc", -1, 1)
    [all...]
StringBuilderTest.java     [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
StringUtils.java 98 final int cutoff = s.offsetByCodePoints(0, 1);
114 final int cutoff = s.offsetByCodePoints(0, 1);
127 for (int index = 0; index < length; index = string.offsetByCodePoints(index, 1)) {
178 for (; index < len; index = text.offsetByCodePoints(index, 1)) {
189 for (index = text.offsetByCodePoints(index, 1); index < len;
190 index = text.offsetByCodePoints(index, 1)) {
211 for (int i = 0; i < len; i = text.offsetByCodePoints(i, 1)) {
222 for (int i = 0; i < len; i = text.offsetByCodePoints(i, 1)) {
235 for (int i = 0; i < len; i = text.offsetByCodePoints(i, 1)) {
256 for (int i = 0; i < len; i = text.offsetByCodePoints(i, 1))
    [all...]
RecapitalizeStatus.java 156 nonWhitespaceStart = mStringBefore.offsetByCodePoints(nonWhitespaceStart, 1)) {
162 nonWhitespaceEnd = mStringBefore.offsetByCodePoints(nonWhitespaceEnd, -1)) {
WordComposer.java 204 for (int i = 0; i < length; i = Character.offsetByCodePoints(word, i, 1)) {
235 for (int i = 0; i < length; i = Character.offsetByCodePoints(word, i, 1)) {
273 i = mTypedWord.offsetByCodePoints(i, -1);
DictionaryInfoUtils.java 112 for (int i = 0; i < nameLength; i = name.offsetByCodePoints(i, 1)) {
144 for (int i = 0; i < fnameLength; i = fname.offsetByCodePoints(i, 1)) {
Utils.java 422 for (int i = 0; i < length; i = Character.offsetByCodePoints(separator, i, 1)) {
  /frameworks/base/core/java/android/emoji/
EmojiFactory.java 191 for (int i = 0; i < len; i = vspString.offsetByCodePoints(i, 1), new_len++) {
225 for (int i = 0; i < len; i = puaString.offsetByCodePoints(i, 1), new_len++) {
  /packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
FusionDictionaryTest.java 86 for (int i = 0; i < word.length(); i = word.offsetByCodePoints(i, 1)) {
  /libcore/luni/src/main/java/java/lang/
StringBuffer.java 661 public synchronized int offsetByCodePoints(int index, int codePointOffset) {
662 return super.offsetByCodePoints(index, codePointOffset);
AbstractStringBuilder.java 895 * @see Character#offsetByCodePoints(char[], int, int, int, int)
898 public int offsetByCodePoints(int index, int codePointOffset) {
899 return Character.offsetByCodePoints(value, 0, count, index,
String.java     [all...]
Character.java     [all...]
  /frameworks/opt/vcard/java/com/android/vcard/
VCardUtils.java 462 for (int i = 0; i < length; i = value.offsetByCodePoints(i, 1)) {
510 for (int i = 0; i < length; i = str.offsetByCodePoints(i, 1)) {
539 for (int i = 0; i < length; i = str.offsetByCodePoints(i, 1)) {
564 for (int i = 0; i < length; i = value.offsetByCodePoints(i, 1)) {
612 for (int i = 0; i < length; i = value.offsetByCodePoints(i, 1)) {
640 for (int i = 0; i < length; i = orgString.offsetByCodePoints(i, 1)) {
    [all...]
  /packages/apps/Email/src/org/apache/james/mime4j/codec/
EncoderUtil.java 521 int splitOffset = text.offsetByCodePoints(text.length() / 2, -1);
549 int splitOffset = text.offsetByCodePoints(text.length() / 2, -1);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
InputTestsBase.java 220 for (int i = 0; i < stringToType.length(); i = stringToType.offsetByCodePoints(i, 1)) {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
AndroidWordLevelSpellCheckerSession.java 190 for (int i = 0; i < length; i = text.offsetByCodePoints(i, 1)) {
297 for (int i = 0; i < length; i = text.offsetByCodePoints(i, 1)) {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
BinaryDictIOUtils.java 202 for (int p = 0, j = word.offsetByCodePoints(0, wordPos);
204 ++p, j = word.offsetByCodePoints(j, 1)) {
440 for (int i = 0; i < length; i = word.offsetByCodePoints(i, 1)) {
    [all...]
BinaryDictInputOutput.java 209 for (int i = 0; i < length; i = word.offsetByCodePoints(i, 1)) {
233 for (int i = 0; i < length; i = word.offsetByCodePoints(i, 1)) {
341 for (int i = 0; i < length; i = word.offsetByCodePoints(i, 1)) {
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
ResearchLogger.java     [all...]
  /prebuilts/sdk/10/
android.jar 
  /prebuilts/sdk/11/
android.jar 
  /prebuilts/sdk/13/
android.jar 

Completed in 1600 milliseconds

1 2