Searched refs:end (Results 1 - 25 of 107) sorted by relevance

12345

/libcore/luni/src/main/java/java/text/
H A DStringCharacterIterator.java27 int start, end, offset; field in class:StringCharacterIterator
32 * end index is set to the length of the string.
40 end = string.length();
46 * to the beginning of the string, the end index is set to the length of the
60 end = string.length();
61 if (location < 0 || location > end) {
69 * with the begin, end and current index set to the specified values.
75 * @param end
80 * if {@code start < 0}, {@code start > end}, {@code location <
81 * start}, {@code location > end} o
84 StringCharacterIterator(String value, int start, int end, int location) argument
[all...]
H A DAttributedString.java44 int end; field in class:AttributedString.Range
50 end = e;
57 private int begin, end, offset; field in class:AttributedString.AttributedIterator
66 end = attrString.text.length();
72 int end) {
73 if (begin < 0 || end > attrString.text.length() || begin > end) {
77 this.end = end;
92 * begin, end, an
70 AttributedIterator(AttributedString attrString, AttributedCharacterIterator.Attribute[] attributes, int begin, int end) argument
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/util/regex/
H A DMatchResult.java24 * the whole regular expression. The start, end, and contents of each group
38 int end(); method in interface:MatchResult
50 int end(int group); method in interface:MatchResult
H A DMatchResultImpl.java35 * elements specifiy start and end of the zero group, the next two specify
45 public int end() { method in class:MatchResultImpl
46 return end(0);
49 public int end(int group) { method in class:MatchResultImpl
54 return text.substring(start(), end());
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DSSLSocketInputStream.java43 private int end; field in class:SSLSocketInputStream
48 // the flag indicating that the end of the (owner's) input stream
65 * Tells to the stream that the end of the income data has
81 return end - pos;
105 while (pos == end) {
142 if (BUFFER_SIZE - (end - pos) < length) {
154 if (end + length > BUFFER_SIZE) {
156 System.arraycopy(buffer, pos, buffer, 0, end-pos);
157 end -= pos;
160 System.arraycopy(src, 0, buffer, end, lengt
[all...]
/libcore/luni/src/main/java/java/lang/
H A DCharSequence.java49 * to the {@code end} index (exclusive) of this sequence.
55 * @param end
56 * the end offset of the sub-sequence. It is exclusive, that is,
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 DAbstractStringBuilder.java151 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);
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 final void delete0(int start, int end) { argument
304 getChars(int start, int end, char[] dst, int dstStart) argument
365 insert0(int index, CharSequence s, int start, int end) argument
405 replace0(int start, int end, String string) argument
616 substring(int start, int end) argument
662 subSequence(int start, int end) argument
872 codePointCount(int start, int end) argument
[all...]
H A DAppendable.java67 * to calling {@code append(csq.subSequence(start, end))}.
76 * @param end
81 * if {@code start < 0}, {@code end < 0}, {@code start > end}
82 * or {@code end} is greater than the length of {@code csq}.
86 Appendable append(CharSequence csq, int start, int end) throws IOException; argument
H A DStringToReal.java90 int end = Math.max(s.indexOf('E'), s.indexOf('e'));
91 if (end != -1) {
93 if (end + 1 == length) {
98 int exponentOffset = end + 1;
134 end = length;
156 result.e -= end - decimal - 1;
157 s = s.substring(start, decimal) + s.substring(decimal + 1, end);
159 s = s.substring(start, end);
166 end = length;
167 while (end >
[all...]
H A DStringBuffer.java102 * Adds the string representation of the specified boolean to the end of
118 * Adds the specified character to the end of this buffer.
131 * Adds the string representation of the specified double to the end of this
145 * Adds the string representation of the specified float to the end of this
159 * Adds the string representation of the specified integer to the end of
173 * Adds the string representation of the specified long to the end of this
187 * Adds the string representation of the specified object to the end of this
209 * Adds the specified string to the end of this buffer.
224 * Adds the specified StringBuffer to the end of this buffer.
248 * Adds the character array to the end o
322 append(CharSequence s, int start, int end) argument
376 delete(int start, int end) argument
418 getChars(int start, int end, char[] buffer, int idx) argument
649 insert(int index, CharSequence s, int start, int end) argument
681 replace(int start, int end, String string) argument
707 subSequence(int start, int end) argument
717 substring(int start, int end) argument
[all...]
H A DString.java524 int end = offset + count;
526 for (int i = offset; i < end; i++) {
582 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) { argument
583 throw new StringIndexOutOfBoundsException(this, start, end - start);
648 int end = offset + (count < string.count ? count : string.count);
651 while (o1 < end) {
765 int end = offset + count;
767 while (o1 < end) {
783 * @param end
792 * if {@code start < 0}, {@code end > lengt
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
1455 substring(int start, int end) argument
1850 subSequence(int start, int end) argument
1896 codePointCount(int start, int end) argument
[all...]
/libcore/luni/src/main/java/java/util/
H A DSortedSet.java52 * {@code SortedSet} which contains elements less than the end element. The
56 * @param end
57 * the end element.
58 * @return a subset where the elements are less than {@code end}.
60 * when the class of the end element is inappropriate for this
63 * when the end element is null and this {@code SortedSet} does
66 public SortedSet<E> headSet(E end); argument
81 * element but less than the end element. The returned {@code SortedSet} is
87 * @param end
88 * the end elemen
100 subSet(E start, E end) argument
[all...]
H A DAbstractList.java155 SubAbstractListRandomAccess(AbstractList<E> list, int start, int end) { argument
156 super(list, start, end);
175 private int end; field in class:AbstractList.SubAbstractList.SubAbstractListIterator
182 end = start + length;
188 end++;
192 return iterator.nextIndex() < end;
200 if (iterator.nextIndex() < end) {
228 end--;
236 SubAbstractList(AbstractList<E> list, int start, int end) { argument
240 size = end
332 removeRange(int start, int end) argument
654 removeRange(int start, int end) argument
728 subList(int start, int end) argument
[all...]
H A DArrays.java681 * @param end
686 * if {@code start > end}.
688 * if {@code start < 0} or {@code end > array.length}.
690 public static void fill(byte[] array, int start, int end, byte value) { argument
691 Arrays.checkStartAndEnd(array.length, start, end);
692 for (int i = start; i < end; i++) {
718 * @param end
723 * if {@code start > end}.
725 * if {@code start < 0} or {@code end > array.length}.
727 public static void fill(short[] array, int start, int end, shor 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 DTreeSet.java355 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,
374 public NavigableSet<E> headSet(E end, boolean endInclusive) { argument
378 ((Comparable<E>) end).compareTo(end);
380 c.compare(end, end);
382 return new TreeSet<E>(backingMap.headMap(end, endInclusiv
424 subSet(E start, E end) argument
445 headSet(E end) argument
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_Format.java37 String text, Format.Field field, int begin, int end) {
55 assertEquals("Test " + count + ": incorrect end index for field"
56 + field, end, pos.getEndIndex());
81 * which stores start and end indexes and an attribute this range
88 int end = iterator.getRunLimit();
94 result.add(new FieldContainer(start, end, attribute, value));
95 // System.out.println(start + " " + end + ": " + attribute + ",
98 // end +"," + attribute+ "," + value+ "));");
100 iterator.setIndex(end);
106 int start, end; field in class:Support_Format.FieldContainer
36 t_FormatWithField(int count, Format format, Object object, String text, Format.Field field, int begin, int end) argument
113 FieldContainer(int start, int end, AttributedCharacterIterator.Attribute attribute) argument
119 FieldContainer(int start, int end, Attribute attribute, int value) argument
124 FieldContainer(int start, int end, Attribute attribute, Object value) argument
[all...]
/libcore/luni/src/main/java/java/io/
H A DBufferedReader.java49 * mark pos end</pre>
51 * last readable character. When {@code pos == end}, the buffer is empty and
67 private int end; field in class:BufferedReader
120 * the buffer still contains data; ie. if {@code pos < end}.
122 * @return the number of bytes read into the buffer, or -1 if the end of the
126 // assert(pos == end);
134 end = result;
152 end -= mark;
159 end += count;
228 * @return the character read or -1 if the end o
[all...]
H A DStringReader.java114 * integer with the two higher-order bytes set to 0. Returns -1 if the end
117 * @return the character read or -1 if the end of the source string has been
136 * number of characters actually read or -1 if the end of the source string
146 * @return the number of characters read or -1 if the end of the reader has
165 int end = pos + len > this.count ? this.count : pos + len;
166 str.getChars(pos, end, buf, offset);
167 int read = end - pos;
168 pos = end;
214 * When the end of the source string has been reached, the input cannot be
239 charCount = maxSkip; // no rewinding if we're at the end
[all...]
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
H A DMatcher2Test.java47 m.end();
65 m.end(1);
92 assertEquals(8, m.end());
94 assertEquals(4, m.end(1));
96 assertEquals(8, m.end(2));
105 m.end(3);
123 m.end(-1);
136 assertEquals(16, m.end());
138 assertEquals(12, m.end(1));
140 assertEquals(16, m.end(
[all...]
/libcore/luni/src/main/java/javax/net/ssl/
H A DDistinguishedNameParser.java33 private int end; field in class:DistinguishedNameParser
53 return null; // reached the end of DN
66 throw new IllegalStateException("Unexpected end of DN: " + dn);
69 // mark the end of attribute type
70 end = pos;
79 throw new IllegalStateException("Unexpected end of DN: " + dn);
92 if ((end - beg > 4) && (chars[beg + 3] == '.')
99 return new String(chars, beg, end - beg);
106 end = beg;
110 throw new IllegalStateException("Unexpected end o
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DStrictLineReader.java32 * end of input is invalid and will be ignored, the caller may use {@code hasUnterminatedLine()}
38 * end-of-input reporting and a more restrictive definition of a line.
53 * Buffered data is stored in {@code buf}. As long as no exception occurs, 0 <= pos <= end
54 * and the data in the range [pos, end) is buffered for reading. At end of input, if there is
55 * an unterminated line, we set end == -1, otherwise end == pos. If the underlying
56 * {@code InputStream} throws an {@code IOException}, end may remain as either pos or -1.
60 private int end; field in class:StrictLineReader
145 * this end o
[all...]
H A DBase64.java138 int index = 0, end = in.length - in.length % 3;
139 for (int i = 0; i < end; i += 3) {
147 out[index++] = map[(in[end] & 0xff) >> 2];
148 out[index++] = map[(in[end] & 0x03) << 4];
153 out[index++] = map[(in[end] & 0xff) >> 2];
154 out[index++] = map[((in[end] & 0x03) << 4) | ((in[end+1] & 0xff) >> 4)];
155 out[index++] = map[((in[end+1] & 0x0f) << 2)];
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DDNParser.java48 private int end; field in class:DNParser
77 return null; // reached the end of DN
90 // unexpected end of DN
94 // mark the end of attribute type
95 end = pos;
104 // unexpected end of DN
118 if ((end - beg > 4) && (chars[beg + 3] == '.')
125 return new String(chars, beg, end - beg);
134 end = beg;
137 // unexpected end o
[all...]
/libcore/luni/src/main/java/libcore/net/url/
H A DFileHandler.java90 * @param end
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/luni/src/main/java/java/nio/
H A DCharBuffer.java115 * {@code end}, capacity will be the length of the char sequence. The new
123 * @param end
124 * the end index, must be no less than {@code start} and no
128 * if either {@code start} or {@code end} is invalid.
130 public static CharBuffer wrap(CharSequence cs, int start, int end) { argument
131 if (start < 0 || end < start || end > cs.length()) {
132 throw new IndexOutOfBoundsException("cs.length()=" + cs.length() + ", start=" + start + ", end=" + end);
136 result.limit = end;
570 put(String str, int start, int end) argument
629 subSequence(int start, int end) argument
703 append(CharSequence csq, int start, int end) argument
[all...]

Completed in 458 milliseconds

12345