Home
last modified time | relevance | path

Searched refs:fromIndex (Results 1 – 25 of 65) sorted by relevance

123

/external/okhttp/okio/okio/src/main/java/okio/
DRealBufferedSource.java303 @Override public long indexOf(byte b, long fromIndex) throws IOException { in indexOf() argument
305 while (fromIndex >= buffer.size) { in indexOf()
309 while ((index = buffer.indexOf(b, fromIndex)) == -1) { in indexOf()
310 fromIndex = buffer.size; in indexOf()
320 @Override public long indexOf(ByteString bytes, long fromIndex) throws IOException { in indexOf() argument
323 fromIndex = indexOf(bytes.getByte(0), fromIndex); in indexOf()
324 if (fromIndex == -1) { in indexOf()
327 if (rangeEquals(fromIndex, bytes)) { in indexOf()
328 return fromIndex; in indexOf()
330 fromIndex++; in indexOf()
[all …]
DBuffer.java1233 @Override public long indexOf(byte b, long fromIndex) {
1234 if (fromIndex < 0) throw new IllegalArgumentException("fromIndex < 0");
1241 if (fromIndex >= segmentByteCount) {
1242 fromIndex -= segmentByteCount;
1245 for (int pos = (int) (s.pos + fromIndex), limit = s.limit; pos < limit; pos++) {
1248 fromIndex = 0;
1260 @Override public long indexOf(ByteString bytes, long fromIndex) throws IOException {
1263 fromIndex = indexOf(bytes.getByte(0), fromIndex);
1264 if (fromIndex == -1) {
1267 if (rangeEquals(fromIndex, bytes)) {
[all …]
DBufferedSource.java215 long indexOf(byte b, long fromIndex) throws IOException; in indexOf() argument
230 long indexOf(ByteString bytes, long fromIndex) throws IOException; in indexOf() argument
247 long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException; in indexOfElement() argument
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DRealBufferedSource.java304 @Override public long indexOf(byte b, long fromIndex) throws IOException { in indexOf() argument
306 while (fromIndex >= buffer.size) { in indexOf()
310 while ((index = buffer.indexOf(b, fromIndex)) == -1) { in indexOf()
311 fromIndex = buffer.size; in indexOf()
321 @Override public long indexOf(ByteString bytes, long fromIndex) throws IOException { in indexOf() argument
324 fromIndex = indexOf(bytes.getByte(0), fromIndex); in indexOf()
325 if (fromIndex == -1) { in indexOf()
328 if (rangeEquals(fromIndex, bytes)) { in indexOf()
329 return fromIndex; in indexOf()
331 fromIndex++; in indexOf()
[all …]
DBuffer.java1235 @Override public long indexOf(byte b, long fromIndex) {
1236 if (fromIndex < 0) throw new IllegalArgumentException("fromIndex < 0");
1243 if (fromIndex >= segmentByteCount) {
1244 fromIndex -= segmentByteCount;
1247 for (int pos = (int) (s.pos + fromIndex), limit = s.limit; pos < limit; pos++) {
1250 fromIndex = 0;
1262 @Override public long indexOf(ByteString bytes, long fromIndex) throws IOException {
1265 fromIndex = indexOf(bytes.getByte(0), fromIndex);
1266 if (fromIndex == -1) {
1269 if (rangeEquals(fromIndex, bytes)) {
[all …]
DBufferedSource.java217 long indexOf(byte b, long fromIndex) throws IOException; in indexOf() argument
232 long indexOf(ByteString bytes, long fromIndex) throws IOException; in indexOf() argument
249 long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException; in indexOfElement() argument
/external/apache-xml/src/main/java/org/apache/xml/utils/
DXMLStringDefault.java440 public int indexOf(int ch, int fromIndex) in indexOf() argument
442 return m_str.indexOf(ch, fromIndex); in indexOf()
488 public int lastIndexOf(int ch, int fromIndex) in lastIndexOf() argument
490 return m_str.lastIndexOf(ch, fromIndex); in lastIndexOf()
563 public int indexOf(String str, int fromIndex) in indexOf() argument
565 return m_str.indexOf(str, fromIndex); in indexOf()
611 public int lastIndexOf(String str, int fromIndex) in lastIndexOf() argument
613 return m_str.lastIndexOf(str, fromIndex); in lastIndexOf()
DXMLString.java374 public abstract int indexOf(int ch, int fromIndex); in indexOf() argument
416 public abstract int lastIndexOf(int ch, int fromIndex); in lastIndexOf() argument
482 public abstract int indexOf(String str, int fromIndex); in indexOf() argument
524 public abstract int lastIndexOf(String str, int fromIndex); in lastIndexOf() argument
/external/guava/guava/src/com/google/common/collect/
DImmutableList.java380 public ImmutableList<E> subList(int fromIndex, int toIndex) {
381 checkPositionIndexes(fromIndex, toIndex, size());
382 int length = toIndex - fromIndex;
387 return of(get(fromIndex));
389 return subListUnchecked(fromIndex, toIndex);
398 ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) {
399 return new SubList(fromIndex, toIndex - fromIndex);
423 public ImmutableList<E> subList(int fromIndex, int toIndex) {
424 checkPositionIndexes(fromIndex, toIndex, length);
425 return ImmutableList.this.subList(fromIndex + offset, toIndex + offset);
[all …]
DRegularImmutableSortedMap.java100 private ImmutableSortedMap<K, V> getSubMap(int fromIndex, int toIndex) { in getSubMap() argument
101 if (fromIndex == 0 && toIndex == size()) { in getSubMap()
103 } else if (fromIndex == toIndex) { in getSubMap()
107 keySet.getSubSet(fromIndex, toIndex), in getSubMap()
108 valueList.subList(fromIndex, toIndex)); in getSubMap()
DForwardingList.java110 public List<E> subList(int fromIndex, int toIndex) { in subList() argument
111 return delegate().subList(fromIndex, toIndex); in subList()
214 @Beta protected List<E> standardSubList(int fromIndex, int toIndex) { in standardSubList() argument
215 return Lists.subListImpl(this, fromIndex, toIndex); in standardSubList()
DRegularImmutableList.java96 ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) { in subListUnchecked() argument
98 array, offset + fromIndex, toIndex - fromIndex); in subListUnchecked()
DSingletonImmutableList.java66 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) { in subList() argument
67 Preconditions.checkPositionIndexes(fromIndex, toIndex, 1); in subList()
68 return (fromIndex == toIndex) ? ImmutableList.<E>of() : this; in subList()
DLists.java722 int fromIndex, int toIndex) {
723 checkPositionIndexes(fromIndex, toIndex, size()); // for GWT
724 return charactersOf(string.substring(fromIndex, toIndex));
833 @Override protected void removeRange(int fromIndex, int toIndex) {
834 subList(fromIndex, toIndex).clear();
849 @Override public List<T> subList(int fromIndex, int toIndex) {
850 checkPositionIndexes(fromIndex, toIndex, size());
852 reversePosition(toIndex), reversePosition(fromIndex)));
1008 final List<E> list, int fromIndex, int toIndex) {
1027 return wrapper.subList(fromIndex, toIndex);
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/text/
DStringContainsInOrder.java18 int fromIndex = 0; in matchesSafely() local
21 fromIndex = s.indexOf(substring, fromIndex); in matchesSafely()
22 if (fromIndex == -1) { in matchesSafely()
/external/cldr/tools/java/org/unicode/cldr/draft/
DUnmodifiableBitSet.java43 public void clear(int fromIndex, int toIndex) { in clear() argument
53 public void flip(int fromIndex, int toIndex) { in flip() argument
68 public void set(int fromIndex, int toIndex) { in set() argument
73 public void set(int fromIndex, int toIndex, boolean value) { in set() argument
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DListExtensions.cs206 public static IList subList( this IList list, int fromIndex, int toIndex ) in subList() argument
208 return new SubList( list, fromIndex, toIndex ); in subList()
217 public static IList<T> subList<T>( this IList<T> list, int fromIndex, int toIndex ) in subList() argument
219 return new SubList<T>( list, fromIndex, toIndex ); in subList()
227 public static IList<T> subList<T>( this List<T> list, int fromIndex, int toIndex ) in subList() argument
229 return new SubList<T>( list, fromIndex, toIndex ); in subList()
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXString.java680 public int indexOf(int ch, int fromIndex) in indexOf() argument
682 return str().indexOf(ch, fromIndex); in indexOf()
728 public int lastIndexOf(int ch, int fromIndex) in lastIndexOf() argument
730 return str().lastIndexOf(ch, fromIndex); in lastIndexOf()
803 public int indexOf(String str, int fromIndex) in indexOf() argument
805 return str().indexOf(str, fromIndex); in indexOf()
851 public int lastIndexOf(String str, int fromIndex) in lastIndexOf() argument
853 return str().lastIndexOf(str, fromIndex); in lastIndexOf()
DXStringForFSB.java707 public int indexOf(int ch, int fromIndex) in indexOf() argument
713 if (fromIndex < 0) in indexOf()
715 fromIndex = 0; in indexOf()
717 else if (fromIndex >= m_length) in indexOf()
724 for (int i = m_start + fromIndex; i < max; i++) in indexOf()
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
DPhoneNumberMatcher.java456 int fromIndex = 0; in allNumberGroupsRemainGrouped() local
460 fromIndex = normalizedCandidate.indexOf(countryCode) + countryCode.length(); in allNumberGroupsRemainGrouped()
467 fromIndex = normalizedCandidate.indexOf(formattedNumberGroups[i], fromIndex); in allNumberGroupsRemainGrouped()
468 if (fromIndex < 0) { in allNumberGroupsRemainGrouped()
472 fromIndex += formattedNumberGroups[i].length(); in allNumberGroupsRemainGrouped()
473 if (i == 0 && fromIndex < normalizedCandidate.length()) { in allNumberGroupsRemainGrouped()
480 && Character.isDigit(normalizedCandidate.charAt(fromIndex))) { in allNumberGroupsRemainGrouped()
485 return normalizedCandidate.substring(fromIndex - formattedNumberGroups[i].length()) in allNumberGroupsRemainGrouped()
493 return normalizedCandidate.substring(fromIndex).contains(number.getExtension()); in allNumberGroupsRemainGrouped()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberMatcher.java455 int fromIndex = 0; in allNumberGroupsRemainGrouped() local
459 fromIndex = normalizedCandidate.indexOf(countryCode) + countryCode.length(); in allNumberGroupsRemainGrouped()
466 fromIndex = normalizedCandidate.indexOf(formattedNumberGroups[i], fromIndex); in allNumberGroupsRemainGrouped()
467 if (fromIndex < 0) { in allNumberGroupsRemainGrouped()
471 fromIndex += formattedNumberGroups[i].length(); in allNumberGroupsRemainGrouped()
472 if (i == 0 && fromIndex < normalizedCandidate.length()) { in allNumberGroupsRemainGrouped()
479 && Character.isDigit(normalizedCandidate.charAt(fromIndex))) { in allNumberGroupsRemainGrouped()
484 return normalizedCandidate.substring(fromIndex - formattedNumberGroups[i].length()) in allNumberGroupsRemainGrouped()
492 return normalizedCandidate.substring(fromIndex).contains(number.getExtension()); in allNumberGroupsRemainGrouped()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DLists.java688 int fromIndex, int toIndex) {
689 checkPositionIndexes(fromIndex, toIndex, size()); // for GWT
690 return charactersOf(string.substring(fromIndex, toIndex));
799 @Override protected void removeRange(int fromIndex, int toIndex) {
800 subList(fromIndex, toIndex).clear();
815 @Override public List<T> subList(int fromIndex, int toIndex) {
816 checkPositionIndexes(fromIndex, toIndex, size());
818 reversePosition(toIndex), reversePosition(fromIndex)));
974 final List<E> list, int fromIndex, int toIndex) {
993 return wrapper.subList(fromIndex, toIndex);
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
DCollationPerformanceTest.java1145 void qSortImpl_java_usekeys(String src[], int fromIndex, int toIndex, java.text.Collator c) { in qSortImpl_java_usekeys() argument
1146 int low = fromIndex; in qSortImpl_java_usekeys()
1155 …while((high > fromIndex) && (compare(c.getCollationKey(src[high]), c.getCollationKey(middle)) > 0)… in qSortImpl_java_usekeys()
1166 if(fromIndex < high) { in qSortImpl_java_usekeys()
1167 qSortImpl_java_usekeys(src, fromIndex, high, c); in qSortImpl_java_usekeys()
1176 …void qSortImpl_icu_usekeys(String src[], int fromIndex, int toIndex, com.ibm.icu.text.Collator c) { in qSortImpl_icu_usekeys() argument
1177 int low = fromIndex; in qSortImpl_icu_usekeys()
1186 …while((high > fromIndex) && (compare(c.getCollationKey(src[high]), c.getCollationKey(middle)) > 0)… in qSortImpl_icu_usekeys()
1197 if(fromIndex < high) { in qSortImpl_icu_usekeys()
1198 qSortImpl_icu_usekeys(src, fromIndex, high, c); in qSortImpl_icu_usekeys()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUTF16.java1636 public static int indexOf(String source, int char32, int fromIndex) { in indexOf() argument
1643 return source.indexOf((char) char32, fromIndex); in indexOf()
1647 int result = source.indexOf((char) char32, fromIndex); in indexOf()
1662 return source.indexOf(char32str, fromIndex); in indexOf()
1692 public static int indexOf(String source, String str, int fromIndex) { in indexOf() argument
1696 return source.indexOf(str, fromIndex); in indexOf()
1699 int result = source.indexOf(str, fromIndex); in indexOf()
1849 public static int lastIndexOf(String source, int char32, int fromIndex) { in lastIndexOf() argument
1856 return source.lastIndexOf((char) char32, fromIndex); in lastIndexOf()
1860 int result = source.lastIndexOf((char) char32, fromIndex); in lastIndexOf()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DUTF16.java1575 public static int indexOf(String source, int char32, int fromIndex) { in indexOf() argument
1582 return source.indexOf((char) char32, fromIndex); in indexOf()
1586 int result = source.indexOf((char) char32, fromIndex); in indexOf()
1601 return source.indexOf(char32str, fromIndex); in indexOf()
1630 public static int indexOf(String source, String str, int fromIndex) { in indexOf() argument
1634 return source.indexOf(str, fromIndex); in indexOf()
1637 int result = source.indexOf(str, fromIndex); in indexOf()
1784 public static int lastIndexOf(String source, int char32, int fromIndex) { in lastIndexOf() argument
1791 return source.lastIndexOf((char) char32, fromIndex); in lastIndexOf()
1795 int result = source.lastIndexOf((char) char32, fromIndex); in lastIndexOf()
[all …]

123