Home
last modified time | relevance | path

Searched refs:tgtCount (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
DStringUTF16.java471 …public static int indexOfLatin1(byte[] src, int srcCount, String tgt, int tgtCount, int fromIndex)…
474 String.checkBoundsBeginEnd(0, tgtCount, tgt.length());
475 return indexOfLatin1Unsafe(src, srcCount, tgt, tgtCount, fromIndex);
480 …public static int indexOfLatin1Unsafe(byte[] src, int srcCount, String tgt, int tgtCount, int from…
482 assert tgtCount > 0;
484 assert tgtCount <= tgt.length();
485 assert srcCount >= tgtCount;
488 int max = (srcCount - tgtCount);
497 int end = j + tgtCount - 1;
547 String tgt, int tgtCount, int fromIndex) {
[all …]
DString.java2229 int tgtCount = tgtStr.length(); in indexOf() local
2232 return (tgtCount == 0 ? srcCount : -1); in indexOf()
2237 if (tgtCount == 0) { in indexOf()
2240 if (tgtCount > srcCount) { in indexOf()
2248 ? StringLatin1.indexOf(src, srcCount, tgtStr, tgtCount, fromIndex) in indexOf()
2249 : StringUTF16.indexOf(src, srcCount, tgtStr, tgtCount, fromIndex); in indexOf()
2256 return StringUTF16.indexOfLatin1(src, srcCount, tgtStr, tgtCount, fromIndex); in indexOf()
2375 int tgtCount = tgtStr.length(); in lastIndexOf() local
2380 int rightIndex = srcCount - tgtCount; in lastIndexOf()
2388 if (tgtCount == 0) { in lastIndexOf()
[all …]
DStringLatin1.java269 String tgt, int tgtCount, int fromIndex) { in lastIndexOf()
270 int min = tgtCount - 1; in lastIndexOf()
272 int strLastIndex = tgtCount - 1; in lastIndexOf()