/libcore/luni/src/main/java/java/util/regex/ |
H A D | MatchResult.java | 24 * the whole regular expression. The start, end, and contents of each group 84 int start(); method in interface:MatchResult 96 int start(int group); method in interface:MatchResult
|
H A D | MatchResultImpl.java | 35 * elements specifiy start and end of the zero group, the next two specify 54 return text.substring(start(), end()); 71 public int start() { method in class:MatchResultImpl 72 return start(0); 75 public int start(int group) { method in class:MatchResultImpl
|
H A D | Matcher.java | 42 * Holds the start of the region, or 0 if the matching should start at the 110 buffer.append(input.substring(appendPos, start())); 156 * find an occurrence of the {@link Pattern} in the string will start at the 169 * string will start at the beginning of the input. 183 * an occurrence of the Pattern in the string will start at the beginning of 189 * @param start 190 * the start of the region. 196 private Matcher reset(CharSequence input, int start, int end) { argument 201 if (start < 268 region(int start, int end) argument 384 find(int start) argument 449 public int start(int group) throws IllegalStateException { method in class:Matcher 499 public int start() { method in class:Matcher 678 setInputImpl(long addr, String s, int start, int end) argument [all...] |
/libcore/luni/src/main/java/libcore/internal/ |
H A D | StringPool.java | 28 private static boolean contentEquals(String s, char[] chars, int start, int length) { argument 33 if (chars[start + i] != s.charAt(i)) { 41 * Returns a string equal to {@code new String(array, start, length)}. 43 public String get(char[] array, int start, int length) { argument 46 for (int i = start; i < start + length; i++) { 56 if (pooled != null && contentEquals(pooled, array, start, length)) { 60 String result = new String(array, start, length);
|
/libcore/luni/src/main/java/java/text/ |
H A D | StringCharacterIterator.java | 27 int start, end, offset; field in class:StringCharacterIterator 39 start = offset = 0; 59 start = 0; 73 * @param start 80 * if {@code start < 0}, {@code start > end}, {@code location < 81 * start}, {@code location > end} or if {@code end} is greater 84 public StringCharacterIterator(String value, int start, int end, int location) { argument 86 if (start < 0 || end > string.length() || start > en [all...] |
H A D | AttributedString.java | 42 int start; field in class:AttributedString.Range 49 start = s; 158 return range.start >= begin && range.start < end 166 if (range.start >= begin && range.start < end) { 171 || (range.start >= begin && range.start < end); 210 if (offset >= range.start && offset < range.end) { 261 if (offset >= range.start 422 AttributedString(AttributedCharacterIterator iterator, int start, int end, Set<Attribute> attributes) argument 480 AttributedString(AttributedCharacterIterator iterator, int start, int end) argument 507 AttributedString(AttributedCharacterIterator iterator, int start, int end, AttributedCharacterIterator.Attribute[] attributes) argument 612 addAttribute(AttributedCharacterIterator.Attribute attribute, Object value, int start, int end) argument 706 addAttributes( Map<? extends AttributedCharacterIterator.Attribute, ?> attributes, int start, int end) argument 759 getIterator( AttributedCharacterIterator.Attribute[] attributes, int start, int end) argument [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | CharSequence.java | 48 * Returns a {@code CharSequence} from the {@code start} index (inclusive) 51 * @param start 52 * the start offset of the sub-sequence. It is inclusive, that 61 * if {@code start < 0}, {@code end < 0}, {@code start > end}, 62 * or if {@code start} or {@code end} are greater than the 65 public CharSequence subSequence(int start, int end); argument
|
H A D | AbstractStringBuilder.java | 151 final void append0(CharSequence s, int start, int end) { argument 155 if ((start | end) < 0 || start > end || end > s.length()) { 159 int length = end - start; 169 ((String) s)._getChars(start, end, value, count); 172 System.arraycopy(other.value, start, value, count, length); 175 for (int i = start; i < end; i++) { 215 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) { argument 216 throw new StringIndexOutOfBoundsException(count, start, end - start); 219 delete0(int start, int end) argument 304 getChars(int start, int end, char[] dst, int dstStart) argument 322 insert0(int index, char[] chars, int start, int length) argument 365 insert0(int index, CharSequence s, int start, int end) argument 405 replace0(int start, int end, String string) argument 591 substring(int start) argument 616 substring(int start, int end) argument 662 subSequence(int start, int end) argument 694 indexOf(String subString, int start) argument 762 lastIndexOf(String subString, int start) argument 872 codePointCount(int start, int end) argument [all...] |
H A D | StringBuffer.java | 266 * @param start 272 * if {@code length < 0} , {@code start < 0} or {@code start + 277 public synchronized StringBuffer append(char[] chars, int start, int length) { argument 278 append0(chars, start, length); 311 * @param start 312 * the inclusive start index. 317 * if {@code start} or {@code end} are negative, {@code start} 322 public synchronized StringBuffer append(CharSequence s, int start, in argument 376 delete(int start, int end) argument 418 getChars(int start, int end, char[] buffer, int idx) argument 423 indexOf(String subString, int start) argument 600 insert(int index, char[] chars, int start, int length) argument 649 insert(int index, CharSequence s, int start, int end) argument 656 lastIndexOf(String subString, int start) argument 681 replace(int start, int end, String string) argument 707 subSequence(int start, int end) argument 712 substring(int start) argument 717 substring(int start, int end) argument [all...] |
H A D | Math.java | 1049 * Returns the next double after {@code start} in the given {@code direction}. 1052 public static double nextAfter(double start, double direction) { argument 1053 if (start == 0 && direction == 0) { 1056 return nextafter(start, direction); 1060 * Returns the next float after {@code start} in the given {@code direction}. 1063 public static float nextAfter(float start, double direction) { argument 1064 if (Float.isNaN(start) || Double.isNaN(direction)) { 1067 if (start == 0 && direction == 0) { 1070 if ((start == Float.MIN_VALUE && direction < start) [all...] |
H A D | Appendable.java | 67 * to calling {@code append(csq.subSequence(start, end))}. 73 * @param start 81 * if {@code start < 0}, {@code end < 0}, {@code start > end} 86 Appendable append(CharSequence csq, int start, int end) throws IOException; argument
|
/libcore/luni/src/main/java/java/util/ |
H A D | SortedSet.java | 80 * {@code SortedSet} which contains elements greater or equal to the start 85 * @param start 86 * the start element. 89 * @return a subset where the elements are greater or equal to {@code start} 92 * when the class of the start or end element is inappropriate 95 * when the start or end element is null and this 98 * when the start element is greater than the end element. 100 public SortedSet<E> subSet(E start, E end); argument 104 * {@code SortedSet} which contains elements greater or equal to the start 108 * @param start 118 tailSet(E start) argument [all...] |
H A D | Arrays.java | 179 * @param startIndex the inclusive start index. 180 * @param endIndex the exclusive start index. 229 * @param startIndex the inclusive start index. 230 * @param endIndex the exclusive start index. 279 * @param startIndex the inclusive start index. 280 * @param endIndex the exclusive start index. 340 * @param startIndex the inclusive start index. 341 * @param endIndex the exclusive start index. 401 * @param startIndex the inclusive start index. 402 * @param endIndex the exclusive start inde 691 fill(byte[] array, int start, int end, byte value) argument 728 fill(short[] array, int start, int end, short value) argument 765 fill(char[] array, int start, int end, char value) argument 802 fill(int[] array, int start, int end, int value) argument 839 fill(long[] array, int start, int end, long value) argument 876 fill(float[] array, int start, int end, float value) argument 913 fill(double[] array, int start, int end, double value) argument 950 fill(boolean[] array, int start, int end, boolean value) argument 987 fill(Object[] array, int start, int end, Object value) argument 1720 sort(byte[] array, int start, int end) argument 1743 checkStartAndEnd(int len, int start, int end) argument 1777 sort(char[] array, int start, int end) argument 1808 sort(double[] array, int start, int end) argument 1839 sort(float[] array, int start, int end) argument 1867 sort(int[] array, int start, int end) argument 1895 sort(long[] array, int start, int end) argument 1923 sort(short[] array, int start, int end) argument 1987 sort(Object[] array, int start, int end) argument 2010 sort(T[] array, int start, int end, Comparator<? super T> comparator) argument 2644 copyOfRange(boolean[] original, int start, int end) argument 2674 copyOfRange(byte[] original, int start, int end) argument 2704 copyOfRange(char[] original, int start, int end) argument 2734 copyOfRange(double[] original, int start, int end) argument 2764 copyOfRange(float[] original, int start, int end) argument 2794 copyOfRange(int[] original, int start, int end) argument 2824 copyOfRange(long[] original, int start, int end) argument 2854 copyOfRange(short[] original, int start, int end) argument 2885 copyOfRange(T[] original, int start, int end) argument 2917 copyOfRange(U[] original, int start, int end, Class<? extends T[]> newType) argument [all...] |
H A D | AbstractList.java | 89 FullListIterator(int start) { argument 90 if (start >= 0 && start <= size()) { 91 pos = start - 1; 155 SubAbstractListRandomAccess(AbstractList<E> list, int start, int end) { argument 156 super(list, start, end); 173 private int start; field in class:AbstractList.SubAbstractList.SubAbstractListIterator 181 start = offset; 182 end = start + length; 196 return iterator.previousIndex() >= start; 236 SubAbstractList(AbstractList<E> list, int start, int end) argument 332 removeRange(int start, int end) argument 654 removeRange(int start, int end) argument 728 subList(int start, int end) argument [all...] |
/libcore/libart/src/main/java/java/lang/ |
H A D | String.java | 518 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) { argument 519 throw new StringIndexOutOfBoundsException(this, start, end - start); 640 * @param start 648 * if {@code length < 0, start < 0} or {@code start + length > 651 public static String copyValueOf(char[] data, int start, int length) { argument 652 return new String(data, start, length); 751 * @param start 762 * if {@code start < 767 getBytes(int start, int end, byte[] data, int index) argument 856 getChars(int start, int end, char[] buffer, int index) argument 871 _getChars(int start, int end, char[] buffer, int index) argument 922 indexOf(int c, int start) argument 929 fastIndexOf(int c, int start) argument 931 indexOfSupplementary(int c, int start) argument 997 indexOf(String subString, int start) argument 1079 lastIndexOf(int c, int start) argument 1099 lastIndexOfSupplementary(int c, int start) argument 1139 lastIndexOf(String subString, int start) argument 1195 regionMatches(int thisStart, String string, int start, int length) argument 1239 regionMatches(boolean ignoreCase, int thisStart, String string, int start, int length) argument 1392 startsWith(String prefix, int start) argument 1407 substring(int start) argument 1431 substring(int start, int end) argument 1571 valueOf(char[] data, int start, int length) argument 1826 subSequence(int start, int end) argument 1872 codePointCount(int start, int end) argument [all...] |
/libcore/libdvm/src/main/java/java/lang/ |
H A D | String.java | 587 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) { argument 588 throw new StringIndexOutOfBoundsException(this, start, end - start); 709 * @param start 717 * if {@code length < 0, start < 0} or {@code start + length > 720 public static String copyValueOf(char[] data, int start, int length) { argument 721 return new String(data, start, length); 786 * @param start 797 * if {@code start < 802 getBytes(int start, int end, byte[] data, int index) argument 891 getChars(int start, int end, char[] buffer, int index) argument 906 _getChars(int start, int end, char[] buffer, int index) argument 957 indexOf(int c, int start) argument 964 fastIndexOf(int c, int start) argument 966 indexOfSupplementary(int c, int start) argument 1032 indexOf(String subString, int start) argument 1114 lastIndexOf(int c, int start) argument 1134 lastIndexOfSupplementary(int c, int start) argument 1174 lastIndexOf(String subString, int start) argument 1230 regionMatches(int thisStart, String string, int start, int length) argument 1274 regionMatches(boolean ignoreCase, int thisStart, String string, int start, int length) argument 1427 startsWith(String prefix, int start) argument 1442 substring(int start) argument 1466 substring(int start, int end) argument 1606 valueOf(char[] data, int start, int length) argument 1861 subSequence(int start, int end) argument 1907 codePointCount(int start, int end) argument [all...] |
/libcore/luni/src/main/java/org/xml/sax/ |
H A D | DocumentHandler.java | 172 * @param start The start position in the array. 179 public abstract void characters (char ch[], int start, int length) argument 201 * @param start The start position in the array. 207 public abstract void ignorableWhitespace (char ch[], int start, int length) argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
H A D | Matcher2Test.java | 43 m.start(); 61 m.start(1); 93 assertEquals(0, m.start()); 95 assertEquals(0, m.start(1)); 97 assertEquals(4, m.start(2)); 101 m.start(3); 119 m.start(-1); 137 assertEquals(8, m.start()); 139 assertEquals(8, m.start(1)); 141 assertEquals(12, m.start( [all...] |
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
H A D | Matcher2Test.java | 41 m.start(); 59 m.start(1); 91 assertEquals(0, m.start()); 93 assertEquals(0, m.start(1)); 95 assertEquals(4, m.start(2)); 99 m.start(3); 117 m.start(-1); 135 assertEquals(8, m.start()); 137 assertEquals(8, m.start(1)); 139 assertEquals(12, m.start( [all...] |
/libcore/luni/src/main/java/java/nio/channels/ |
H A D | FileLock.java | 151 * @param start 157 public final boolean overlaps(long start, long length) { argument 159 final long newEnd = start + length - 1; 160 if (end < start || position > newEnd) {
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_Format.java | 81 * which stores start and end indexes and an attribute this range 87 int start = iterator.getRunStart(); 94 result.add(new FieldContainer(start, end, attribute, value)); 95 // System.out.println(start + " " + end + ": " + attribute + ", 97 // System.out.println("v.add(new FieldContainer(" + start +"," + 106 int start, end; field in class:Support_Format.FieldContainer 113 public FieldContainer(int start, int end, argument 115 this(start, end, attribute, attribute); 119 public FieldContainer(int start, int end, Attribute attribute, int value) { argument 120 this(start, en 124 FieldContainer(int start, int end, Attribute attribute, Object value) argument [all...] |
/libcore/luni/src/main/java/java/nio/ |
H A D | CharBuffer.java | 74 * The new buffer's position will be {@code start}, limit will be 75 * {@code start + charCount}, capacity will be the length of the array. 79 * @param start 80 * the start index, must not be negative and not greater than 84 * {@code array.length - start}. 87 * if either {@code start} or {@code charCount} is invalid. 89 public static CharBuffer wrap(char[] array, int start, int charCount) { argument 90 Arrays.checkOffsetAndCount(array.length, start, charCount); 92 buf.position = start; 93 buf.limit = start 130 wrap(CharSequence cs, int start, int end) argument 571 put(String str, int start, int end) argument 631 subSequence(int start, int end) argument 705 append(CharSequence csq, int start, int end) argument [all...] |
/libcore/luni/src/main/java/java/sql/ |
H A D | Blob.java | 88 * @param start 89 * the position within this {@code Blob} to start the search, 97 public long position(Blob pattern, long start) throws SQLException; argument 106 * @param start 107 * the position within this {@code Blob} to start the search, 115 public long position(byte[] pattern, long start) throws SQLException; argument 121 * the position within this {@code Blob} at which to start 136 * the position within this {@code Blob} at which to start 153 * the position within this {@code Blob} at which to start 159 * the offset into the byte array from which to start writin [all...] |
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | FileHandler.java | 88 * @param start 97 protected void parseURL(URL url, String spec, int start, int end) { argument 98 if (end < start) { 102 if (start < end) { 103 parseString = spec.substring(start, end).replace('\\', '/');
|
/libcore/json/src/main/java/org/json/ |
H A D | JSONTokener.java | 203 int start = pos; 210 return new String(in.substring(start, pos - 1)); 212 builder.append(in, start, pos - 1); 224 builder.append(in, start, pos - 1); 226 start = pos; 336 int start = pos; 340 return in.substring(start, pos); 343 return in.substring(start);
|