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

1 2 3 4

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
StringTest.java 281 int result = new String("a\uD800\uDC00b").offsetByCodePoints(0, 2);
284 result = new String("abcd").offsetByCodePoints(3, -1);
287 result = new String("a\uD800\uDC00b").offsetByCodePoints(0, 3);
290 result = new String("a\uD800\uDC00b").offsetByCodePoints(3, -1);
293 result = new String("a\uD800\uDC00b").offsetByCodePoints(3, 0);
296 result = new String("\uD800\uDC00bc").offsetByCodePoints(3, 0);
299 result = new String("a\uDC00bc").offsetByCodePoints(3, -1);
302 result = new String("a\uD800bc").offsetByCodePoints(3, -1);
306 .offsetByCodePoints(0, 2);
309 result = newString(2, 4, "__abcd__".toCharArray()).offsetByCodePoints(
    [all...]
StringBufferTest.java 467 * java.lang.StringBuffer.offsetByCodePoints(int, int)'
470 int result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(0, 2);
473 result = new StringBuffer("abcd").offsetByCodePoints(3, -1);
476 result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(0, 3);
479 result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(3, -1);
482 result = new StringBuffer("a\uD800\uDC00b").offsetByCodePoints(3, 0);
485 result = new StringBuffer("\uD800\uDC00bc").offsetByCodePoints(3, 0);
488 result = new StringBuffer("a\uDC00bc").offsetByCodePoints(3, -1);
491 result = new StringBuffer("a\uD800bc").offsetByCodePoints(3, -1);
496 sb.offsetByCodePoints(-1, 1)
    [all...]
CharacterTest.java 384 int result = Character.offsetByCodePoints("a\uD800\uDC00b", 0, 2);
387 result = Character.offsetByCodePoints("abcd", 3, -1);
390 result = Character.offsetByCodePoints("a\uD800\uDC00b", 0, 3);
393 result = Character.offsetByCodePoints("a\uD800\uDC00b", 3, -1);
396 result = Character.offsetByCodePoints("a\uD800\uDC00b", 3, 0);
399 result = Character.offsetByCodePoints("\uD800\uDC00bc", 3, 0);
402 result = Character.offsetByCodePoints("a\uDC00bc", 3, -1);
405 result = Character.offsetByCodePoints("a\uD800bc", 3, -1);
409 Character.offsetByCodePoints(null, 0, 1);
415 Character.offsetByCodePoints("abc", -1, 1)
    [all...]
StringBuilderTest.java     [all...]
  /packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
StringUtils.java 208 final int cutoff = s.offsetByCodePoints(0, 1);
226 final int cutoff = s.offsetByCodePoints(0, 1);
283 index = Character.offsetByCodePoints(charSequence, index, 1)) {
326 for (; index < len; index = text.offsetByCodePoints(index, 1)) {
337 for (index = text.offsetByCodePoints(index, 1); index < len;
338 index = text.offsetByCodePoints(index, 1)) {
387 for (int i = 0; i < len; i = text.offsetByCodePoints(i, 1)) {
409 for (int i = 0; i < len; i = text.offsetByCodePoints(i, 1)) {
410 final String nextChar = text.substring(i, text.offsetByCodePoints(i, 1));
476 i = Character.offsetByCodePoints(text, i, -1)
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
RecapitalizeStatus.java 185 nonWhitespaceStart = mStringBefore.offsetByCodePoints(nonWhitespaceStart, 1)) {
191 nonWhitespaceEnd = mStringBefore.offsetByCodePoints(nonWhitespaceEnd, -1)) {
DictionaryInfoUtils.java 144 for (int i = 0; i < nameLength; i = name.offsetByCodePoints(i, 1)) {
184 for (int i = 0; i < fnameLength; i = fname.offsetByCodePoints(i, 1)) {
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
UCharacterSurrogateTest.java 297 return "offsetByCodePoints('" + Utility.escape(s) + "' "
306 int val1 = UCharacter.offsetByCodePoints(chars, start, count,
308 int val2 = UCharacter.offsetByCodePoints(string, index - start,
324 val1 = UCharacter.offsetByCodePoints(chars, start, count,
326 val2 = UCharacter.offsetByCodePoints(string, expected
347 UCharacter.offsetByCodePoints(text, start, count, index,
362 UCharacter.offsetByCodePoints(text, index, offset);
UnicodeSetStringSpanTest.java 194 start = s.offsetByCodePoints(start, 1);
205 next = s.offsetByCodePoints(next, 1);
223 next = s.offsetByCodePoints(next, 1);
296 prev = s.offsetByCodePoints(prev, -1);
313 prev = s.offsetByCodePoints(prev, -1);
321 length = s.offsetByCodePoints(length, -1);
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
UCharacterSurrogateTest.java 294 return "offsetByCodePoints('" + Utility.escape(s) + "' "
303 int val1 = UCharacter.offsetByCodePoints(chars, start, count,
305 int val2 = UCharacter.offsetByCodePoints(string, index - start,
321 val1 = UCharacter.offsetByCodePoints(chars, start, count,
323 val2 = UCharacter.offsetByCodePoints(string, expected
344 UCharacter.offsetByCodePoints(text, start, count, index,
359 UCharacter.offsetByCodePoints(text, index, offset);
UnicodeSetStringSpanTest.java 191 start = s.offsetByCodePoints(start, 1);
202 next = s.offsetByCodePoints(next, 1);
220 next = s.offsetByCodePoints(next, 1);
293 prev = s.offsetByCodePoints(prev, -1);
310 prev = s.offsetByCodePoints(prev, -1);
318 length = s.offsetByCodePoints(length, -1);
    [all...]
  /packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
FusionDictionaryTest.java 83 for (int i = 0; i < word.length(); i = word.offsetByCodePoints(i, 1)) {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
SentenceLevelAdapter.java 93 int index = fromIndex < 0 ? 0 : Character.offsetByCodePoints(sequence, fromIndex, 1);
121 int index = fromIndex < 0 ? 0 : Character.offsetByCodePoints(sequence, fromIndex, 1);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
BinaryDictIOUtils.java 186 for (int p = 0, j = word.offsetByCodePoints(0, wordPos);
188 ++p, j = word.offsetByCodePoints(j, 1)) {
BinaryDictDecoderUtils.java 212 for (int i = 0; i < length; i = word.offsetByCodePoints(i, 1)) {
245 for (int i = 0; i < length; i = word.offsetByCodePoints(i, 1)) {
  /frameworks/base/core/java/com/android/internal/app/
LocaleHelper.java 71 final int firstCodePointLen = str.offsetByCodePoints(0, 1);
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
ImsRttTextHandler.java 163 int endSendIndex = mBufferedTextToNetwork.offsetByCodePoints(0,
  /libcore/ojluni/src/main/java/java/lang/
StringBuffer.java 234 public synchronized int offsetByCodePoints(int index, int codePointOffset) {
235 return super.offsetByCodePoints(index, codePointOffset);
  /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...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
RBBIMonkeyTest.java 584 (matchStart < fString.length() && fString.offsetByCodePoints(matchStart, 1) < matchEnd)) {
629 int updatedStrIdx = fString.offsetByCodePoints(matchEnd, -1);
679 start = fString.offsetByCodePoints(around, -30);
684 end = fString.offsetByCodePoints(around, +30);
690 for (int charIdx = start; charIdx < end; charIdx=fString.offsetByCodePoints(charIdx, 1)) {
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
RBBIMonkeyTest.java 581 (matchStart < fString.length() && fString.offsetByCodePoints(matchStart, 1) < matchEnd)) {
626 int updatedStrIdx = fString.offsetByCodePoints(matchEnd, -1);
676 start = fString.offsetByCodePoints(around, -30);
681 end = fString.offsetByCodePoints(around, +30);
687 for (int charIdx = start; charIdx < end; charIdx=fString.offsetByCodePoints(charIdx, 1)) {
    [all...]
  /packages/apps/UnifiedEmail/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 312 for (int i = 0; i < stringToType.length(); i = stringToType.offsetByCodePoints(i, 1)) {
338 i = stringToGesture.offsetByCodePoints(i, 1)) {
  /external/icu/android_icu4j/src/main/java/android/icu/impl/
UnicodeSetStringSpan.java 416 overlap = string.offsetByCodePoints(overlap, -1); // Length of the string minus the last code
687 len1 = string.offsetByCodePoints(0, 1);
    [all...]
Punycode.java 411 codeUnitIndex=dest.offsetByCodePoints(firstSupplementaryIndex, i-firstSupplementaryIndex);

Completed in 1278 milliseconds

1 2 3 4