Home
last modified time | relevance | path

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

123

/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.java687 int fromIndex, int toIndex) {
688 checkPositionIndexes(fromIndex, toIndex, size()); // for GWT
689 return charactersOf(string.substring(fromIndex, toIndex));
798 @Override protected void removeRange(int fromIndex, int toIndex) {
799 subList(fromIndex, toIndex).clear();
814 @Override public List<T> subList(int fromIndex, int toIndex) {
815 checkPositionIndexes(fromIndex, toIndex, size());
817 reversePosition(toIndex), reversePosition(fromIndex)));
973 final List<E> list, int fromIndex, int toIndex) {
992 return wrapper.subList(fromIndex, toIndex);
DImmutableSortedAsList.java81 ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) { in subListUnchecked() argument
83 super.subListUnchecked(fromIndex, toIndex), comparator()) in subListUnchecked()
/external/antlr/antlr-3.4/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/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 indexOfElement(ByteString targetBytes, long fromIndex) throws IOException { in indexOfElement() argument
322 while (fromIndex >= buffer.size) { in indexOfElement()
326 while ((index = buffer.indexOfElement(targetBytes, fromIndex)) == -1) { in indexOfElement()
327 fromIndex = buffer.size; in indexOfElement()
DBufferedSource.java215 long indexOf(byte b, long fromIndex) throws IOException; in indexOf() argument
232 long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException; in indexOfElement() argument
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 (long pos = s.pos + fromIndex, limit = s.limit; pos < limit; pos++) {
1248 fromIndex = 0;
1260 @Override public long indexOfElement(ByteString targetBytes, long fromIndex) {
1261 if (fromIndex < 0) throw new IllegalArgumentException("fromIndex < 0");
1269 if (fromIndex >= segmentByteCount) {
1270 fromIndex -= segmentByteCount;
[all …]
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberMatcher.java475 int fromIndex = 0; in allNumberGroupsRemainGrouped() local
479 fromIndex = normalizedCandidate.indexOf(countryCode) + countryCode.length(); in allNumberGroupsRemainGrouped()
486 fromIndex = normalizedCandidate.indexOf(formattedNumberGroups[i], fromIndex); in allNumberGroupsRemainGrouped()
487 if (fromIndex < 0) { in allNumberGroupsRemainGrouped()
491 fromIndex += formattedNumberGroups[i].length(); in allNumberGroupsRemainGrouped()
492 if (i == 0 && fromIndex < normalizedCandidate.length()) { in allNumberGroupsRemainGrouped()
499 Character.isDigit(normalizedCandidate.charAt(fromIndex))) { in allNumberGroupsRemainGrouped()
504 return normalizedCandidate.substring(fromIndex - formattedNumberGroups[i].length()) in allNumberGroupsRemainGrouped()
512 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.java653 int fromIndex, int toIndex) {
654 checkPositionIndexes(fromIndex, toIndex, size()); // for GWT
655 return charactersOf(string.substring(fromIndex, toIndex));
764 @Override protected void removeRange(int fromIndex, int toIndex) {
765 subList(fromIndex, toIndex).clear();
780 @Override public List<T> subList(int fromIndex, int toIndex) {
781 checkPositionIndexes(fromIndex, toIndex, size());
783 reversePosition(toIndex), reversePosition(fromIndex)));
939 final List<E> list, int fromIndex, int toIndex) {
958 return wrapper.subList(fromIndex, toIndex);
DForwardingImmutableList.java49 public ImmutableList<E> subList(int fromIndex, int toIndex) { in subList() argument
50 return unsafeDelegateList(delegateList().subList(fromIndex, toIndex)); in subList()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUTF16.java1644 public static int indexOf(String source, int char32, int fromIndex) { in indexOf() argument
1651 return source.indexOf((char) char32, fromIndex); in indexOf()
1655 int result = source.indexOf((char) char32, fromIndex); in indexOf()
1670 return source.indexOf(char32str, fromIndex); in indexOf()
1700 public static int indexOf(String source, String str, int fromIndex) { in indexOf() argument
1704 return source.indexOf(str, fromIndex); in indexOf()
1707 int result = source.indexOf(str, fromIndex); in indexOf()
1857 public static int lastIndexOf(String source, int char32, int fromIndex) { in lastIndexOf() argument
1864 return source.lastIndexOf((char) char32, fromIndex); in lastIndexOf()
1868 int result = source.lastIndexOf((char) char32, fromIndex); in lastIndexOf()
[all …]
/external/guava/guava/src/com/google/common/primitives/
DBytes.java333 @Override public List<Byte> subList(int fromIndex, int toIndex) { in subList() argument
335 checkPositionIndexes(fromIndex, toIndex, size); in subList()
336 if (fromIndex == toIndex) { in subList()
339 return new ByteArrayAsList(array, start + fromIndex, start + toIndex); in subList()
DBooleans.java419 @Override public List<Boolean> subList(int fromIndex, int toIndex) { in subList() argument
421 checkPositionIndexes(fromIndex, toIndex, size); in subList()
422 if (fromIndex == toIndex) { in subList()
425 return new BooleanArrayAsList(array, start + fromIndex, start + toIndex); in subList()
DChars.java537 @Override public List<Character> subList(int fromIndex, int toIndex) { in subList() argument
539 checkPositionIndexes(fromIndex, toIndex, size); in subList()
540 if (fromIndex == toIndex) { in subList()
543 return new CharArrayAsList(array, start + fromIndex, start + toIndex); in subList()
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
DChars.java486 @Override public List<Character> subList(int fromIndex, int toIndex) { in subList() argument
488 checkPositionIndexes(fromIndex, toIndex, size); in subList()
489 if (fromIndex == toIndex) { in subList()
492 return new CharArrayAsList(array, start + fromIndex, start + toIndex); in subList()
DShorts.java529 @Override public List<Short> subList(int fromIndex, int toIndex) { in subList() argument
531 checkPositionIndexes(fromIndex, toIndex, size); in subList()
532 if (fromIndex == toIndex) { in subList()
535 return new ShortArrayAsList(array, start + fromIndex, start + toIndex); in subList()
DInts.java528 @Override public List<Integer> subList(int fromIndex, int toIndex) { in subList() argument
530 checkPositionIndexes(fromIndex, toIndex, size); in subList()
531 if (fromIndex == toIndex) { in subList()
534 return new IntArrayAsList(array, start + fromIndex, start + toIndex); in subList()

123