/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 | 32 int end(); method in interface:MatchResult 38 int end(int group); method in interface:MatchResult
|
H A D | MatchResultImpl.java | 35 * elements specify 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());
|
H A D | Splitter.java | 70 int end; 71 while (separatorCount + 1 != limit && (end = input.indexOf(ch, begin)) != -1) { 73 begin = end + 1; 95 end = input.indexOf(ch, begin); 96 result[i] = input.substring(begin, end); 97 begin = end + 1; 122 begin = matcher.end();
|
/libcore/luni/src/main/java/java/lang/ |
H A D | CharSequence.java | 42 * to the {@code end} index (exclusive) of this sequence. 48 * @param end 49 * the end offset of the sub-sequence. It is exclusive, that is, 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 D | AbstractStringBuilder.java | 152 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); 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 final void delete0(int start, int end) { argument 295 getChars(int start, int end, char[] dst, int dstStart) argument 356 insert0(int index, CharSequence s, int start, int end) argument 396 replace0(int start, int end, String string) argument 607 substring(int start, int end) argument 653 subSequence(int start, int end) argument 863 codePointCount(int start, int end) argument [all...] |
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; 137 end = length; 156 for (int i = start; i < end; i++) { 168 result.e -= end - decimal - 1; 169 s = s.substring(start, decimal) + s.substring(decimal + 1, end); 171 s = s.substring(start, end); 185 end [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
|
/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 | 682 * @param end 687 * if {@code start > end}. 689 * if {@code start < 0} or {@code end > array.length}. 691 public static void fill(byte[] array, int start, int end, byte value) { argument 692 Arrays.checkStartAndEnd(array.length, start, end); 693 for (int i = start; i < end; i++) { 719 * @param end 724 * if {@code start > end}. 726 * if {@code start < 0} or {@code end > array.length}. 728 public static void fill(short[] array, int start, int end, shor 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...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | Support_Format.java | 38 String text, Format.Field field, int begin, int end) { 52 if (begin != pos.getBeginIndex() || end != pos.getEndIndex()) { 53 assertEquals(field + " " + begin + ".." + end, 79 * which stores start and end indexes and an attribute this range has 85 int end = iterator.getRunLimit(); 91 result.add(new FieldContainer(start, end, attribute, value)); 92 // System.out.println(start + " " + end + ": " + attribute + ", 95 // end +"," + attribute+ "," + value+ "));"); 97 iterator.setIndex(end); 104 final int end; field in class:Support_Format.FieldContainer 37 t_FormatWithField(int count, Format format, Object object, String text, Format.Field field, int begin, int end) argument 109 FieldContainer(int start, int end, Attribute attribute) argument 114 FieldContainer(int start, int end, Attribute attribute, int value) argument 119 FieldContainer(int start, int end, Attribute attribute, Object value) 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/javax/net/ssl/ |
H A D | DistinguishedNameParser.java | 36 private int end; field in class:DistinguishedNameParser 59 return null; // reached the end of DN 72 throw new IllegalStateException("Unexpected end of DN: " + dn); 75 // mark the end of attribute type 76 end = pos; 85 throw new IllegalStateException("Unexpected end of DN: " + dn); 98 if ((end - beg > 4) && (chars[beg + 3] == '.') 105 return new String(chars, beg, end - beg); 112 end = beg; 116 throw new IllegalStateException("Unexpected end o [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
H A D | Matcher2Test.java | 49 m.end(); 67 m.end(1); 94 assertEquals(8, m.end()); 96 assertEquals(4, m.end(1)); 98 assertEquals(8, m.end(2)); 107 m.end(3); 125 m.end(-1); 138 assertEquals(16, m.end()); 140 assertEquals(12, m.end(1)); 142 assertEquals(16, m.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/libcore/io/ |
H A D | StrictLineReader.java | 32 * 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 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/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 135 * the buffer still contains data; ie. if {@code pos < end}. 137 * @return the number of chars read into the buffer, or -1 if the end of the 141 // assert(pos == end); 149 end = result; 167 end -= mark; 174 end += count; 244 * @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 155 int end = pos + count > this.count ? this.count : pos + count; 156 str.getChars(pos, end, buffer, offset); 157 int read = end - pos; 158 pos = end; 204 * When the end of the source string has been reached, the input cannot be 229 charCount = maxSkip; // no rewinding if we're at the end
|
/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/java/nio/charset/ |
H A D | Charsets.java | 49 int end = offset + length; 51 for (int i = offset; i < end; ++i) {
|
/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/libart/src/main/java/java/lang/ |
H A D | String.java | 462 int end = offset + count; 464 for (int i = offset; i < end; i++) { 503 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) { argument 504 throw new StringIndexOutOfBoundsException(this, start, end - start); 561 int end = offset + (count < string.count ? count : string.count); 564 while (o1 < end) { 661 for (int end = offset1 + count; offset1 < end; ) { 690 int end = offset + count; 692 while (o1 < end) { 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 1325 substring(int start, int end) argument 1670 subSequence(int start, int end) argument 1716 codePointCount(int start, int end) argument [all...] |