Home
last modified time | relevance | path

Searched refs:offsetByCodePoints (Results 1 – 25 of 38) sorted by relevance

12

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUCharacterSurrogateTest.java306 int val1 = UCharacter.offsetByCodePoints(chars, start, count, in TestOffsetByCodePoints()
308 int val2 = UCharacter.offsetByCodePoints(string, index - start, in TestOffsetByCodePoints()
324 val1 = UCharacter.offsetByCodePoints(chars, start, count, in TestOffsetByCodePoints()
326 val2 = UCharacter.offsetByCodePoints(string, expected in TestOffsetByCodePoints()
347 UCharacter.offsetByCodePoints(text, start, count, index, in TestOffsetByCodePoints()
362 UCharacter.offsetByCodePoints(text, index, offset); in TestOffsetByCodePoints()
DUnicodeSetStringSpanTest.java194 start = s.offsetByCodePoints(start, 1); in containsSpanUTF16()
205 next = s.offsetByCodePoints(next, 1); in containsSpanUTF16()
223 next = s.offsetByCodePoints(next, 1); in containsSpanUTF16()
296 prev = s.offsetByCodePoints(prev, -1); in containsSpanBackUTF16()
313 prev = s.offsetByCodePoints(prev, -1); in containsSpanBackUTF16()
321 length = s.offsetByCodePoints(length, -1); in containsSpanBackUTF16()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUCharacterSurrogateTest.java303 int val1 = UCharacter.offsetByCodePoints(chars, start, count, in TestOffsetByCodePoints()
305 int val2 = UCharacter.offsetByCodePoints(string, index - start, in TestOffsetByCodePoints()
321 val1 = UCharacter.offsetByCodePoints(chars, start, count, in TestOffsetByCodePoints()
323 val2 = UCharacter.offsetByCodePoints(string, expected in TestOffsetByCodePoints()
344 UCharacter.offsetByCodePoints(text, start, count, index, in TestOffsetByCodePoints()
359 UCharacter.offsetByCodePoints(text, index, offset); in TestOffsetByCodePoints()
DUnicodeSetStringSpanTest.java191 start = s.offsetByCodePoints(start, 1); in containsSpanUTF16()
202 next = s.offsetByCodePoints(next, 1); in containsSpanUTF16()
220 next = s.offsetByCodePoints(next, 1); in containsSpanUTF16()
293 prev = s.offsetByCodePoints(prev, -1); in containsSpanBackUTF16()
310 prev = s.offsetByCodePoints(prev, -1); in containsSpanBackUTF16()
318 length = s.offsetByCodePoints(length, -1); in containsSpanBackUTF16()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DRBBIMonkeyTest.java588 … (matchStart < fString.length() && fString.offsetByCodePoints(matchStart, 1) < matchEnd)) { in set()
634 int updatedStrIdx = fString.offsetByCodePoints(matchEnd, -1); in set()
685 start = fString.offsetByCodePoints(around, -30); in dump()
690 end = fString.offsetByCodePoints(around, +30); in dump()
696 … for (int charIdx = start; charIdx < end; charIdx=fString.offsetByCodePoints(charIdx, 1)) { in dump()
DRBBITestExtended.java362 charIdx = testString.offsetByCodePoints(charIdx, 1); in TestExtended()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DRBBIMonkeyTest.java585 … (matchStart < fString.length() && fString.offsetByCodePoints(matchStart, 1) < matchEnd)) { in set()
631 int updatedStrIdx = fString.offsetByCodePoints(matchEnd, -1); in set()
682 start = fString.offsetByCodePoints(around, -30); in dump()
687 end = fString.offsetByCodePoints(around, +30); in dump()
693 … for (int charIdx = start; charIdx < end; charIdx=fString.offsetByCodePoints(charIdx, 1)) { in dump()
DRBBITestExtended.java359 charIdx = testString.offsetByCodePoints(charIdx, 1); in TestExtended()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUnicodeSetStringSpan.java416 … overlap = string.offsetByCodePoints(overlap, -1); // Length of the string minus the last code in spanWithStrings()
687 len1 = string.offsetByCodePoints(0, 1); in spanBack()
DPunycode.java411 … codeUnitIndex=dest.offsetByCodePoints(firstSupplementaryIndex, i-firstSupplementaryIndex); in decode()
DNormalizer2Impl.java353 codePointStart=str.offsetByCodePoints(codePointStart, -1); in skipPrevious()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DPunycode.java409 … codeUnitIndex=dest.offsetByCodePoints(firstSupplementaryIndex, i-firstSupplementaryIndex); in decode()
DUnicodeSetStringSpan.java412 … overlap = string.offsetByCodePoints(overlap, -1); // Length of the string minus the last code in spanWithStrings()
683 len1 = string.offsetByCodePoints(0, 1); in spanBack()
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationIterator.java125 pos = oldBuffer.offsetByCodePoints(length, beyond - n); in backwardNumCodePoints()
130 pos = oldBuffer.offsetByCodePoints(pos, -n); in backwardNumCodePoints()
DCollationDataBuilder.java1287 pos = Character.offsetByCodePoints(s, pos, num); in forwardNumCodePoints()
1292 pos = Character.offsetByCodePoints(s, pos, -num); in backwardNumCodePoints()
DCollationBuilder.java966 int lastStarterLength = Character.offsetByCodePoints(decomp, 0, 1);
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationIterator.java123 pos = oldBuffer.offsetByCodePoints(length, beyond - n); in backwardNumCodePoints()
128 pos = oldBuffer.offsetByCodePoints(pos, -n); in backwardNumCodePoints()
DCollationDataBuilder.java1286 pos = Character.offsetByCodePoints(s, pos, num); in forwardNumCodePoints()
1291 pos = Character.offsetByCodePoints(s, pos, -num); in backwardNumCodePoints()
DCollationBuilder.java962 int lastStarterLength = Character.offsetByCodePoints(decomp, 0, 1);
/external/icu/android_icu4j/src/main/java/android/icu/text/
DSpoofChecker.java1292 i = Character.offsetByCodePoints(text, i, 1);
1314 i = Character.offsetByCodePoints(nfdText, i, 1);
DRBBIRuleScanner.java703 for (int idx = 0; idx < rulesLength; idx = rules.offsetByCodePoints(idx, 1)) { in stripRules()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DSpoofChecker.java1352 i = Character.offsetByCodePoints(text, i, 1);
1374 i = Character.offsetByCodePoints(nfdText, i, 1);
DRBBIRuleScanner.java702 for (int idx = 0; idx < rulesLength; idx = rules.offsetByCodePoints(idx, 1)) { in stripRules()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/lang/
DUCharacter.java6342 public static int offsetByCodePoints(CharSequence text, int index, int codePointOffset) { in offsetByCodePoints() method in UCharacter
6390 public static int offsetByCodePoints(char[] text, int start, int count, int index, in offsetByCodePoints() method in UCharacter
/external/icu/android_icu4j/src/main/java/android/icu/lang/
DUCharacter.java5674 public static int offsetByCodePoints(CharSequence text, int index, int codePointOffset) { in offsetByCodePoints() method in UCharacter
5721 public static int offsetByCodePoints(char[] text, int start, int count, int index, in offsetByCodePoints() method in UCharacter

12