/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 668 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 | String.java | 582 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) { argument 583 throw new StringIndexOutOfBoundsException(this, start, end - start); 704 * @param start 712 * if {@code length < 0, start < 0} or {@code start + length > 715 public static String copyValueOf(char[] data, int start, int length) { argument 716 return new String(data, start, length); 781 * @param start 792 * if {@code start < 797 getBytes(int start, int end, byte[] data, int index) argument 886 getChars(int start, int end, char[] buffer, int index) argument 901 _getChars(int start, int end, char[] buffer, int index) argument 952 indexOf(int c, int start) argument 959 fastIndexOf(int c, int start) argument 961 indexOfSupplementary(int c, int start) argument 1027 indexOf(String subString, int start) argument 1107 lastIndexOf(int c, int start) argument 1127 lastIndexOfSupplementary(int c, int start) argument 1167 lastIndexOf(String subString, int start) argument 1223 regionMatches(int thisStart, String string, int start, int length) argument 1267 regionMatches(boolean ignoreCase, int thisStart, String string, int start, int length) argument 1416 startsWith(String prefix, int start) argument 1431 substring(int start) argument 1455 substring(int start, int end) argument 1595 valueOf(char[] data, int start, int length) argument 1850 subSequence(int start, int end) argument 1896 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 | 1037 * Returns the next double after {@code start} in the given {@code direction}. 1040 public static double nextAfter(double start, double direction) { argument 1041 if (start == 0 && direction == 0) { 1044 return nextafter(start, direction); 1048 * Returns the next float after {@code start} in the given {@code direction}. 1051 public static float nextAfter(float start, double direction) { argument 1052 if (Float.isNaN(start) || Double.isNaN(direction)) { 1055 if (start == 0 && direction == 0) { 1058 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
|
H A D | StringBuilder.java | 300 * @param start 306 * if {@code start} or {@code end} are negative, {@code start} 310 public StringBuilder append(CharSequence csq, int start, int end) { argument 311 append0(csq, start, end); 330 * Deletes a sequence of characters specified by {@code start} and {@code 333 * @param start 334 * the inclusive start index. 339 * if {@code start} is less than zero, greater than the current 342 public StringBuilder delete(int start, in argument 614 insert(int offset, CharSequence s, int start, int end) argument 636 replace(int start, int end, String string) argument [all...] |
/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 | 178 * @param startIndex the inclusive start index. 179 * @param endIndex the exclusive start index. 228 * @param startIndex the inclusive start index. 229 * @param endIndex the exclusive start index. 278 * @param startIndex the inclusive start index. 279 * @param endIndex the exclusive start index. 339 * @param startIndex the inclusive start index. 340 * @param endIndex the exclusive start index. 400 * @param startIndex the inclusive start index. 401 * @param endIndex the exclusive start inde 690 fill(byte[] array, int start, int end, byte value) argument 727 fill(short[] array, int start, int end, short value) argument 764 fill(char[] array, int start, int end, char value) argument 801 fill(int[] array, int start, int end, int value) argument 838 fill(long[] array, int start, int end, long value) argument 875 fill(float[] array, int start, int end, float value) argument 912 fill(double[] array, int start, int end, double value) argument 949 fill(boolean[] array, int start, int end, boolean value) argument 986 fill(Object[] array, int start, int end, Object value) argument 1719 sort(byte[] array, int start, int end) argument 1742 checkStartAndEnd(int len, int start, int end) argument 1776 sort(char[] array, int start, int end) argument 1807 sort(double[] array, int start, int end) argument 1838 sort(float[] array, int start, int end) argument 1866 sort(int[] array, int start, int end) argument 1894 sort(long[] array, int start, int end) argument 1922 sort(short[] array, int start, int end) argument 1996 sort(Object[] array, int start, int end) argument 2021 sort(T[] array, int start, int end, Comparator<? super T> comparator) argument 2659 copyOfRange(boolean[] original, int start, int end) argument 2689 copyOfRange(byte[] original, int start, int end) argument 2719 copyOfRange(char[] original, int start, int end) argument 2749 copyOfRange(double[] original, int start, int end) argument 2779 copyOfRange(float[] original, int start, int end) argument 2809 copyOfRange(int[] original, int start, int end) argument 2839 copyOfRange(long[] original, int start, int end) argument 2869 copyOfRange(short[] original, int start, int end) argument 2900 copyOfRange(T[] original, int start, int end) argument 2932 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...] |
H A D | TreeSet.java | 355 public NavigableSet<E> subSet(E start, boolean startInclusive, E end, argument 358 int compare = (c == null) ? ((Comparable<E>) start).compareTo(end) : c 359 .compare(start, end); 361 return new TreeSet<E>(backingMap.subMap(start, startInclusive, end, 392 public NavigableSet<E> tailSet(E start, boolean startInclusive) { argument 396 ((Comparable<E>) start).compareTo(start); 398 c.compare(start, start); 400 return new TreeSet<E>(backingMap.tailMap(start, startInclusiv 424 subSet(E start, E end) argument 468 tailSet(E start) 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/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 573 put(String str, int start, int end) argument 635 subSequence(int start, int end) argument 709 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);
|