/libcore/luni/src/main/java/java/text/ |
H A D | StringCharacterIterator.java | 27 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 D | AttributedString.java | 44 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 D | MatchResult.java | 24 * 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 D | MatchResultImpl.java | 35 * 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 D | SSLSocketInputStream.java | 43 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 D | CharSequence.java | 49 * 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 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); 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 D | Appendable.java | 67 * 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 D | StringToReal.java | 90 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 D | StringBuffer.java | 102 * 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 D | StringBuilder.java | 302 * @param end 306 * if {@code start} or {@code end} are negative, {@code start} 307 * is greater than {@code end} or {@code end} is greater than 310 public StringBuilder append(CharSequence csq, int start, int end) { argument 311 append0(csq, start, end); 331 * end}. Shifts any remaining characters to the left. 335 * @param end 336 * the exclusive end index. 340 * length or greater than {@code end} 342 delete(int start, int end) argument 614 insert(int offset, CharSequence s, int start, int end) argument 636 replace(int start, int end, String str) argument [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | SortedSet.java | 52 * {@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 D | AbstractList.java | 155 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 D | Arrays.java | 681 * @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 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, 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 D | Support_Format.java | 37 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 D | BufferedReader.java | 49 * 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 D | StringReader.java | 114 * 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 D | Matcher2Test.java | 47 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/org/apache/harmony/security/x509/ |
H A D | DNParser.java | 48 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/io/ |
H A D | Base64.java | 138 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/libcore/net/url/ |
H A D | FileHandler.java | 90 * @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 D | CharBuffer.java | 115 * {@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...] |
/libcore/luni/src/main/java/java/nio/channels/ |
H A D | FileLock.java | 158 final long end = position + size - 1; 160 if (end < start || position > newEnd) { 189 * to an end user.
|
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | Charsets.java | 68 int end = offset + length; 70 for (int i = offset; i < end; ++i) {
|