Searched refs:start (Results 1 - 25 of 242) sorted by relevance

12345678910

/libcore/luni/src/main/java/java/util/regex/
H A DMatchResult.java76 int start(); method in interface:MatchResult
82 int start(int group); method in interface:MatchResult
H A DMatchResultImpl.java35 * elements specify 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 DMatcher.java42 * 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
337 find(int start) argument
602 public int start() { method in class:Matcher
611 public int start(int group) throws IllegalStateException { method in class:Matcher
625 setInputImpl(long addr, String s, int start, int end) argument
[all...]
/libcore/luni/src/main/java/libcore/internal/
H A DStringPool.java28 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 DStringCharacterIterator.java27 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 DAttributedString.java42 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 DCharSequence.java41 * Returns a {@code CharSequence} from the {@code start} index (inclusive)
44 * @param start
45 * the start offset of the sub-sequence. It is inclusive, that
54 * if {@code start < 0}, {@code end < 0}, {@code start > end},
55 * or if {@code start} or {@code end} are greater than the
58 public CharSequence subSequence(int start, int end); argument
H A DAbstractStringBuilder.java152 final void append0(CharSequence s, int start, int end) { argument
156 if ((start | end) < 0 || start > end || end > s.length()) {
160 int length = end - start;
170 ((String) s)._getChars(start, end, value, count);
173 System.arraycopy(other.value, start, value, count, length);
176 for (int i = start; i < end; i++) {
210 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) { argument
211 throw new StringIndexOutOfBoundsException(count, start, end - start);
214 delete0(int start, int end) argument
295 getChars(int start, int end, char[] dst, int dstStart) argument
313 insert0(int index, char[] chars, int start, int length) argument
356 insert0(int index, CharSequence s, int start, int end) argument
396 replace0(int start, int end, String string) argument
582 substring(int start) argument
607 substring(int start, int end) argument
653 subSequence(int start, int end) argument
685 indexOf(String subString, int start) argument
753 lastIndexOf(String subString, int start) argument
863 codePointCount(int start, int end) argument
[all...]
H A DStringBuffer.java266 * @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 DMath.java1049 * 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 DAppendable.java67 * 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 DSortedSet.java80 * {@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 DArrays.java179 * @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
1707 sort(byte[] array, int start, int end) argument
1730 checkStartAndEnd(int len, int start, int end) argument
1764 sort(char[] array, int start, int end) argument
1795 sort(double[] array, int start, int end) argument
1826 sort(float[] array, int start, int end) argument
1854 sort(int[] array, int start, int end) argument
1882 sort(long[] array, int start, int end) argument
1910 sort(short[] array, int start, int end) argument
1974 sort(Object[] array, int start, int end) argument
1997 sort(T[] array, int start, int end, Comparator<? super T> comparator) argument
2631 copyOfRange(boolean[] original, int start, int end) argument
2661 copyOfRange(byte[] original, int start, int end) argument
2691 copyOfRange(char[] original, int start, int end) argument
2721 copyOfRange(double[] original, int start, int end) argument
2751 copyOfRange(float[] original, int start, int end) argument
2781 copyOfRange(int[] original, int start, int end) argument
2811 copyOfRange(long[] original, int start, int end) argument
2841 copyOfRange(short[] original, int start, int end) argument
2872 copyOfRange(T[] original, int start, int end) argument
2904 copyOfRange(U[] original, int start, int end, Class<? extends T[]> newType) argument
[all...]
H A DAbstractList.java89 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 DString.java503 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) { argument
504 throw new StringIndexOutOfBoundsException(this, start, end - start);
615 * if {@code length < 0, start < 0} or {@code start + length >
618 public static String copyValueOf(char[] data, int start, int length) { argument
619 return new String(data, start, length);
706 * @param start
707 * the start offset in this string.
713 * the start offse
722 getBytes(int start, int end, byte[] data, int index) argument
810 getChars(int start, int end, char[] buffer, int index) argument
824 _getChars(int start, int end, char[] buffer, int index) argument
862 indexOf(int c, int start) argument
869 fastIndexOf(int c, int start) argument
871 indexOfSupplementary(int c, int start) argument
927 indexOf(String subString, int start) argument
1009 lastIndexOf(int c, int start) argument
1029 lastIndexOfSupplementary(int c, int start) argument
1060 lastIndexOf(String subString, int start) argument
1111 regionMatches(int thisStart, String string, int start, int length) argument
1154 regionMatches(boolean ignoreCase, int thisStart, String string, int start, int length) argument
1295 startsWith(String prefix, int start) argument
1306 substring(int start) argument
1325 substring(int start, int end) argument
1450 valueOf(char[] data, int start, int length) argument
1670 subSequence(int start, int end) argument
1716 codePointCount(int start, int end) argument
[all...]
/libcore/luni/src/main/java/org/xml/sax/
H A DDocumentHandler.java172 * @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 DMatcher2Test.java43 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 DMatcher2Test.java41 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DSupport_Format.java79 * which stores start and end indexes and an attribute this range has
84 int start = iterator.getRunStart();
91 result.add(new FieldContainer(start, end, attribute, value));
92 // System.out.println(start + " " + end + ": " + attribute + ",
94 // System.out.println("v.add(new FieldContainer(" + start +"," +
103 final int start; field in class:Support_Format.FieldContainer
109 public FieldContainer(int start, int end, Attribute attribute) { argument
110 this(start, end, attribute, attribute);
114 public FieldContainer(int start, int end, Attribute attribute, int value) { argument
115 this(start, en
119 FieldContainer(int start, int end, Attribute attribute, Object value) argument
[all...]
/libcore/luni/src/main/java/java/nio/channels/
H A DFileLock.java149 * @param start
155 public final boolean overlaps(long start, long length) { argument
157 final long newEnd = start + length - 1;
158 if (end < start || position > newEnd) {
/libcore/support/src/test/java/tests/support/
H A DSupport_Format.java81 * 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 DCharBuffer.java74 * 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
562 put(String str, int start, int end) argument
622 subSequence(int start, int end) argument
696 append(CharSequence csq, int start, int end) argument
[all...]
/libcore/luni/src/main/java/java/sql/
H A DBlob.java88 * @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 DFileHandler.java88 * @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 DJSONTokener.java203 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);

Completed in 1293 milliseconds

12345678910