Searched refs:fromIndex (Results 1 - 25 of 95) sorted by relevance

1234

/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/text/
H A DStringContainsInOrder.java18 int fromIndex = 0;
21 fromIndex = s.indexOf(substring, fromIndex);
22 if (fromIndex == -1) {
/external/apache-xml/src/main/java/org/apache/xml/utils/
H A DXMLStringDefault.java418 * no smaller than <code>fromIndex</code>, then the index of the first
422 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)
425 * position <code>fromIndex</code>, then <code>-1</code> is returned.
427 * There is no restriction on the value of <code>fromIndex</code>. If it
434 * @param fromIndex the index to start the search from.
437 * than or equal to <code>fromIndex</code>, or <code>-1</code>
440 public int indexOf(int ch, int fromIndex) argument
442 return m_str.indexOf(ch, fromIndex);
471 * this.charAt(k) == ch) && (k <= fromIndex)
476 * @param fromIndex th
488 lastIndexOf(int ch, int fromIndex) argument
563 indexOf(String str, int fromIndex) argument
611 lastIndexOf(String str, int fromIndex) argument
[all...]
H A DXMLString.java352 * no smaller than <code>fromIndex</code>, then the index of the first
356 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)
359 * position <code>fromIndex</code>, then <code>-1</code> is returned.
361 * There is no restriction on the value of <code>fromIndex</code>. If it
368 * @param fromIndex the index to start the search from.
371 * than or equal to <code>fromIndex</code>, or <code>-1</code>
374 public abstract int indexOf(int ch, int fromIndex); argument
399 * this.charAt(k) == ch) && (k <= fromIndex)
404 * @param fromIndex the index to start the search from. There is no
405 * restriction on the value of <code>fromIndex</cod
416 lastIndexOf(int ch, int fromIndex) argument
482 indexOf(String str, int fromIndex) argument
524 lastIndexOf(String str, int fromIndex) argument
[all...]
/external/guava/guava/src/com/google/common/collect/
H A DRegularImmutableSortedMap.java100 private ImmutableSortedMap<K, V> getSubMap(int fromIndex, int toIndex) { argument
101 if (fromIndex == 0 && toIndex == size()) {
103 } else if (fromIndex == toIndex) {
107 keySet.getSubSet(fromIndex, toIndex),
108 valueList.subList(fromIndex, toIndex));
H A DRegularImmutableList.java96 ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) { argument
98 array, offset + fromIndex, toIndex - fromIndex);
H A DSingletonImmutableList.java66 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) { argument
67 Preconditions.checkPositionIndexes(fromIndex, toIndex, 1);
68 return (fromIndex == toIndex) ? ImmutableList.<E>of() : this;
H A DForwardingList.java110 public List<E> subList(int fromIndex, int toIndex) { argument
111 return delegate().subList(fromIndex, toIndex);
214 @Beta protected List<E> standardSubList(int fromIndex, int toIndex) { argument
215 return Lists.subListImpl(this, fromIndex, toIndex);
H A DImmutableSortedAsList.java81 ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) { argument
83 super.subListUnchecked(fromIndex, toIndex), comparator())
H A DImmutableList.java375 * fromIndex}, inclusive, and {@code toIndex}, exclusive. (If {@code
376 * fromIndex} and {@code toIndex} are equal, the empty immutable list is
380 public ImmutableList<E> subList(int fromIndex, int toIndex) { argument
381 checkPositionIndexes(fromIndex, toIndex, size());
382 int length = toIndex - fromIndex;
387 return of(get(fromIndex));
389 return subListUnchecked(fromIndex, toIndex);
395 * toIndex - fromIndex > 1}, after index validation has already been
398 ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) { argument
399 return new SubList(fromIndex, toInde
423 subList(int fromIndex, int toIndex) argument
546 subList(int fromIndex, int toIndex) argument
[all...]
H A 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) { argument
834 subList(fromIndex, toIndex).clear();
849 @Override public List<T> subList(int fromIndex, int toIndex) { argument
850 checkPositionIndexes(fromIndex, toIndex, size());
852 reversePosition(toIndex), reversePosition(fromIndex)));
1008 final List<E> list, int fromIndex, int toIndex) {
1027 return wrapper.subList(fromIndex, toInde
721 subList( int fromIndex, int toIndex) argument
1007 subListImpl( final List<E> list, int fromIndex, int toIndex) argument
[all...]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
H A DListExtensions.cs206 public static IList subList( this IList list, int fromIndex, int toIndex ) argument
208 return new SubList( list, fromIndex, toIndex );
212 // .Skip( fromIndex )
213 // .Take( toIndex - fromIndex + 1 )
217 public static IList<T> subList<T>( this IList<T> list, int fromIndex, int toIndex ) argument
219 return new SubList<T>( list, fromIndex, toIndex );
222 // .Skip( fromIndex )
223 // .Take( toIndex - fromIndex + 1 )
227 public static IList<T> subList<T>( this List<T> list, int fromIndex, int toIndex ) argument
229 return new SubList<T>( list, fromIndex, toInde
[all...]
/external/okhttp/okio/okio/src/main/java/okio/
H A DBufferedSource.java211 * fromIndex}. This expands the buffer as necessary until {@code b} is found.
215 long indexOf(byte b, long fromIndex) throws IOException; argument
226 * fromIndex}. This expands the buffer as necessary until {@code bytes} is found. This reads an
230 long indexOf(ByteString bytes, long fromIndex) throws IOException; argument
242 * at or after {@code fromIndex}. This expands the buffer as necessary until
247 long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException; argument
H A DRealBufferedSource.java303 @Override public long indexOf(byte b, long fromIndex) throws IOException { argument
305 while (fromIndex >= buffer.size) {
309 while ((index = buffer.indexOf(b, fromIndex)) == -1) {
310 fromIndex = buffer.size;
320 @Override public long indexOf(ByteString bytes, long fromIndex) throws IOException { argument
323 fromIndex = indexOf(bytes.getByte(0), fromIndex);
324 if (fromIndex == -1) {
327 if (rangeEquals(fromIndex, bytes)) {
328 return fromIndex;
338 indexOfElement(ByteString targetBytes, long fromIndex) argument
[all...]
H A DBuffer.java1230 * Returns the index of {@code b} in this at or beyond {@code fromIndex}, or
1233 @Override public long indexOf(byte b, long fromIndex) { argument
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 { argument
1263 fromIndex
1278 indexOfElement(ByteString targetBytes, long fromIndex) argument
[all...]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DForwardingImmutableList.java49 public ImmutableList<E> subList(int fromIndex, int toIndex) { argument
50 return unsafeDelegateList(delegateList().subList(fromIndex, toIndex));
H A 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) { argument
800 subList(fromIndex, toIndex).clear();
815 @Override public List<T> subList(int fromIndex, int toIndex) { argument
816 checkPositionIndexes(fromIndex, toIndex, size());
818 reversePosition(toIndex), reversePosition(fromIndex)));
974 final List<E> list, int fromIndex, int toIndex) {
993 return wrapper.subList(fromIndex, toInde
687 subList( int fromIndex, int toIndex) argument
973 subListImpl( final List<E> list, int fromIndex, int toIndex) argument
[all...]
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
H A DTokenRewriteStream.as141 public function replaceRange(fromIndex:int, toIndex:int, text:Object, programName:String = DEFAULT_PROGRAM_NAME):void {
142 if ( fromIndex > toIndex || fromIndex<0 || toIndex<0 || toIndex >= tokens.length ) {
143 throw new Error("replace: range invalid: "+fromIndex+".."+toIndex+"(size="+tokens.length+")");
145 var op:RewriteOperation = new ReplaceOp(fromIndex, toIndex, text);
163 public function removeRange(fromIndex:int, toIndex:int, programName:String = DEFAULT_PROGRAM_NAME):void {
164 replaceRange(fromIndex, toIndex, null, programName);
484 public function ReplaceOp(fromIndex:int, toIndex:int, text:Object) {
485 super(fromIndex, text);
502 public function DeleteOp(fromIndex
[all...]
/external/apache-xml/src/main/java/org/apache/xpath/objects/
H A DXString.java658 * no smaller than <code>fromIndex</code>, then the index of the first
662 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)
665 * position <code>fromIndex</code>, then <code>-1</code> is returned.
667 * There is no restriction on the value of <code>fromIndex</code>. If it
674 * @param fromIndex the index to start the search from.
677 * than or equal to <code>fromIndex</code>, or <code>-1</code>
680 public int indexOf(int ch, int fromIndex) argument
682 return str().indexOf(ch, fromIndex);
711 * this.charAt(k) == ch) && (k <= fromIndex)
716 * @param fromIndex th
728 lastIndexOf(int ch, int fromIndex) argument
803 indexOf(String str, int fromIndex) argument
851 lastIndexOf(String str, int fromIndex) argument
[all...]
H A DXStringForFSB.java685 * no smaller than <code>fromIndex</code>, then the index of the first
689 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)
692 * position <code>fromIndex</code>, then <code>-1</code> is returned.
694 * There is no restriction on the value of <code>fromIndex</code>. If it
701 * @param fromIndex the index to start the search from.
704 * than or equal to <code>fromIndex</code>, or <code>-1</code>
707 public int indexOf(int ch, int fromIndex) argument
713 if (fromIndex < 0)
715 fromIndex = 0;
717 else if (fromIndex >
[all...]
/external/proguard/src/proguard/
H A DDataEntryWriterFactory.java40 * @param fromIndex the start index in the class path.
45 int fromIndex,
51 for (int index = toIndex - 1; index >= fromIndex; index--)
44 createDataEntryWriter(ClassPath classPath, int fromIndex, int toIndex) argument
H A DInputReader.java149 int fromIndex,
153 for (int index = fromIndex; index < toIndex; index++)
147 readInput(String messagePrefix, ClassPath classPath, int fromIndex, int toIndex, DataEntryReader reader) argument
/external/guava/guava/src/com/google/common/primitives/
H A DBytes.java333 @Override public List<Byte> subList(int fromIndex, int toIndex) { argument
335 checkPositionIndexes(fromIndex, toIndex, size);
336 if (fromIndex == toIndex) {
339 return new ByteArrayAsList(array, start + fromIndex, start + toIndex);
H A DBooleans.java419 @Override public List<Boolean> subList(int fromIndex, int toIndex) { argument
421 checkPositionIndexes(fromIndex, toIndex, size);
422 if (fromIndex == toIndex) {
425 return new BooleanArrayAsList(array, start + fromIndex, start + toIndex);
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
H A DPhoneNumberMatcher.java475 int fromIndex = 0;
479 fromIndex = normalizedCandidate.indexOf(countryCode) + countryCode.length();
484 // Fails if the substring of {@code normalizedCandidate} starting from {@code fromIndex}
486 fromIndex = normalizedCandidate.indexOf(formattedNumberGroups[i], fromIndex);
487 if (fromIndex < 0) {
490 // Moves {@code fromIndex} forward.
491 fromIndex += formattedNumberGroups[i].length();
492 if (i == 0 && fromIndex < normalizedCandidate.length()) {
499 && Character.isDigit(normalizedCandidate.charAt(fromIndex))) {
[all...]
/external/mockito/src/test/java/org/mockitousage/stubbing/
H A DStubbingWithDelegateTest.java42 public ArrayList<T> subList(int fromIndex, int toIndex) { argument
52 public Collection<T> subList(int fromIndex, int toIndex) { argument

Completed in 609 milliseconds

1234