Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 124) sorted by relevance

12345

/libcore/luni/src/main/java/java/text/
DStringCharacterIterator.java27 int start, end, offset; field in StringCharacterIterator
40 end = string.length(); in StringCharacterIterator()
60 end = string.length(); in StringCharacterIterator()
61 if (location < 0 || location > end) { in StringCharacterIterator()
84 public StringCharacterIterator(String value, int start, int end, int location) { in StringCharacterIterator() argument
86 if (start < 0 || end > string.length() || start > end in StringCharacterIterator()
87 || location < start || location > end) { in StringCharacterIterator()
91 this.end = end; in StringCharacterIterator()
118 if (offset == end) { in current()
142 return string.equals(it.string) && start == it.start && end == it.end in equals()
[all …]
DAttributedString.java44 int end; field in AttributedString.Range
50 end = e; in Range()
57 private int begin, end, offset; field in AttributedString.AttributedIterator
66 end = attrString.text.length(); in AttributedIterator()
72 int end) { in AttributedIterator() argument
73 if (begin < 0 || end > attrString.text.length() || begin > end) { in AttributedIterator()
77 this.end = end; in AttributedIterator()
113 if (offset == end) { in current()
120 if (begin == end) { in first()
142 return end; in getEndIndex()
[all …]
/libcore/luni/src/main/java/java/lang/
DAbstractStringBuilder.java152 final void append0(CharSequence s, int start, int end) { in append0() argument
156 if ((start | end) < 0 || start > end || end > s.length()) { in append0()
160 int length = end - start; in append0()
170 ((String) s)._getChars(start, end, value, count); in append0()
176 for (int i = start; i < end; i++) { in append0()
210 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) { in startEndAndLength() argument
211 throw new StringIndexOutOfBoundsException(count, start, end - start); in startEndAndLength()
214 final void delete0(int start, int end) { in delete0() argument
218 if (end > count) { in delete0()
219 end = count; in delete0()
[all …]
DStringToReal.java90 int end = Math.max(s.indexOf('E'), s.indexOf('e')); in initialParse() local
91 if (end != -1) { in initialParse()
93 if (end + 1 == length) { in initialParse()
98 int exponentOffset = end + 1; in initialParse()
137 end = length; in initialParse()
156 for (int i = start; i < end; i++) { in initialParse()
168 result.e -= end - decimal - 1; in initialParse()
169 s = s.substring(start, decimal) + s.substring(decimal + 1, end); in initialParse()
171 s = s.substring(start, end); in initialParse()
185 end = length; in initialParse()
[all …]
DStringBuffer.java322 public synchronized StringBuffer append(CharSequence s, int start, int end) { in append() argument
323 append0(s, start, end); in append()
376 public synchronized StringBuffer delete(int start, int end) { in delete() argument
377 delete0(start, end); in delete()
418 public synchronized void getChars(int start, int end, char[] buffer, int idx) { in getChars() argument
419 super.getChars(start, end, buffer, idx); in getChars()
650 int start, int end) { in insert() argument
651 insert0(index, s, start, end); in insert()
681 public synchronized StringBuffer replace(int start, int end, String string) { in replace() argument
682 replace0(start, end, string); in replace()
[all …]
DStringBuilder.java310 public StringBuilder append(CharSequence csq, int start, int end) { in append() argument
311 append0(csq, start, end); in append()
342 public StringBuilder delete(int start, int end) { in delete() argument
343 delete0(start, end); in delete()
614 public StringBuilder insert(int offset, CharSequence s, int start, int end) { in insert() argument
615 insert0(offset, s, start, end); in insert()
636 public StringBuilder replace(int start, int end, String string) { in replace() argument
637 replace0(start, end, string); in replace()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSupport_Format.java38 String text, Format.Field field, int begin, int end) { in t_FormatWithField() argument
52 if (begin != pos.getBeginIndex() || end != pos.getEndIndex()) { in t_FormatWithField()
53 assertEquals(field + " " + begin + ".." + end, in t_FormatWithField()
85 int end = iterator.getRunLimit(); in findFields() local
91 result.add(new FieldContainer(start, end, attribute, value)); in findFields()
97 iterator.setIndex(end); in findFields()
104 final int end; field in Support_Format.FieldContainer
109 public FieldContainer(int start, int end, Attribute attribute) { in FieldContainer() argument
110 this(start, end, attribute, attribute); in FieldContainer()
114 public FieldContainer(int start, int end, Attribute attribute, int value) { in FieldContainer() argument
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_Format.java37 String text, Format.Field field, int begin, int end) { in t_FormatWithField() argument
56 + field, end, pos.getEndIndex()); in t_FormatWithField()
88 int end = iterator.getRunLimit(); in findFields() local
94 result.add(new FieldContainer(start, end, attribute, value)); in findFields()
100 iterator.setIndex(end); in findFields()
106 int start, end; field in Support_Format.FieldContainer
113 public FieldContainer(int start, int end, in FieldContainer() argument
115 this(start, end, attribute, attribute); in FieldContainer()
119 public FieldContainer(int start, int end, Attribute attribute, int value) { in FieldContainer() argument
120 this(start, end, attribute, new Integer(value)); in FieldContainer()
[all …]
/libcore/luni/src/main/java/java/io/
DBufferedReader.java67 private int end; field in BufferedReader
149 end = result; in fillBuf()
167 end -= mark; in fillBuf()
174 end += count; in fillBuf()
263 if (pos < end || fillBuf() != -1) { in readChar()
297 int available = end - pos; in read()
351 if ((pos != end || fillBuf() != -1) && buf[pos] == '\n') { in chompNewline()
382 for (int i = pos; i < end; ++i) { in readLine()
393 StringBuilder result = new StringBuilder(end - pos + 80); in readLine()
394 result.append(buf, pos, end - pos); in readLine()
[all …]
/libcore/luni/src/main/java/javax/net/ssl/
DDistinguishedNameParser.java36 private int end; field in DistinguishedNameParser
76 end = pos; in nextAT()
98 if ((end - beg > 4) && (chars[beg + 3] == '.') in nextAT()
105 return new String(chars, beg, end - beg); in nextAT()
112 end = beg; in quotedAV()
124 chars[end] = getEscaped(); in quotedAV()
127 chars[end] = chars[pos]; in quotedAV()
130 end++; in quotedAV()
138 return new String(chars, beg, end - beg); in quotedAV()
156 end = pos; in hexAV()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DMatcher2Test.java47 m.end(); in testErrorConditions()
65 m.end(1); in testErrorConditions()
92 assertEquals(8, m.end()); in testErrorConditions2()
94 assertEquals(4, m.end(1)); in testErrorConditions2()
96 assertEquals(8, m.end(2)); in testErrorConditions2()
105 m.end(3); in testErrorConditions2()
123 m.end(-1); in testErrorConditions2()
136 assertEquals(16, m.end()); in testErrorConditions2()
138 assertEquals(12, m.end(1)); in testErrorConditions2()
140 assertEquals(16, m.end(2)); in testErrorConditions2()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DMatcher2Test.java49 m.end(); in testErrorConditions()
67 m.end(1); in testErrorConditions()
94 assertEquals(8, m.end()); in testErrorConditions2()
96 assertEquals(4, m.end(1)); in testErrorConditions2()
98 assertEquals(8, m.end(2)); in testErrorConditions2()
107 m.end(3); in testErrorConditions2()
125 m.end(-1); in testErrorConditions2()
138 assertEquals(16, m.end()); in testErrorConditions2()
140 assertEquals(12, m.end(1)); in testErrorConditions2()
142 assertEquals(16, m.end(2)); in testErrorConditions2()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DDNParser.java48 private int end; field in DNParser
95 end = pos; in nextAT()
118 if ((end - beg > 4) && (chars[beg + 3] == '.') in nextAT()
125 return new String(chars, beg, end - beg); in nextAT()
134 end = beg; in quotedAV()
146 chars[end] = getEscaped(); in quotedAV()
149 chars[end] = chars[pos]; in quotedAV()
152 end++; in quotedAV()
160 return new String(chars, beg, end - beg); in quotedAV()
179 end = pos; in hexAV()
[all …]
/libcore/luni/src/main/java/java/util/
DArrays.java691 public static void fill(byte[] array, int start, int end, byte value) { in fill() argument
692 Arrays.checkStartAndEnd(array.length, start, end); in fill()
693 for (int i = start; i < end; i++) { in fill()
728 public static void fill(short[] array, int start, int end, short value) { in fill() argument
729 Arrays.checkStartAndEnd(array.length, start, end); in fill()
730 for (int i = start; i < end; i++) { in fill()
765 public static void fill(char[] array, int start, int end, char value) { in fill() argument
766 Arrays.checkStartAndEnd(array.length, start, end); in fill()
767 for (int i = start; i < end; i++) { in fill()
802 public static void fill(int[] array, int start, int end, int value) { in fill() argument
[all …]
DAbstractList.java155 SubAbstractListRandomAccess(AbstractList<E> list, int start, int end) { in SubAbstractListRandomAccess() argument
156 super(list, start, end); in SubAbstractListRandomAccess()
175 private int end; field in AbstractList.SubAbstractList.SubAbstractListIterator
182 end = start + length; in SubAbstractListIterator()
188 end++; in add()
192 return iterator.nextIndex() < end; in hasNext()
200 if (iterator.nextIndex() < end) { in next()
228 end--; in remove()
236 SubAbstractList(AbstractList<E> list, int start, int end) { in SubAbstractList() argument
240 size = end - start; in SubAbstractList()
[all …]
DTreeSet.java355 public NavigableSet<E> subSet(E start, boolean startInclusive, E end, in subSet() argument
358 int compare = (c == null) ? ((Comparable<E>) start).compareTo(end) : c in subSet()
359 .compare(start, end); in subSet()
361 return new TreeSet<E>(backingMap.subMap(start, startInclusive, end, in subSet()
374 public NavigableSet<E> headSet(E end, boolean endInclusive) { in headSet() argument
378 ((Comparable<E>) end).compareTo(end); in headSet()
380 c.compare(end, end); in headSet()
382 return new TreeSet<E>(backingMap.headMap(end, endInclusive)); in headSet()
424 public SortedSet<E> subSet(E start, E end) { in subSet() argument
425 return subSet(start, true, end, false); in subSet()
[all …]
/libcore/libart/src/main/java/java/lang/
DString.java462 int end = offset + count; in String() local
464 for (int i = offset; i < end; i++) { in String()
503 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) { in startEndAndLength() argument
504 throw new StringIndexOutOfBoundsException(this, start, end - start); in startEndAndLength()
561 int end = offset + (count < string.count ? count : string.count); in compareToIgnoreCase() local
564 while (o1 < end) { in compareToIgnoreCase()
661 for (int end = offset1 + count; offset1 < end; ) { in equals()
690 int end = offset + count; in equalsIgnoreCase() local
692 while (o1 < end) { in equalsIgnoreCase()
722 public void getBytes(int start, int end, byte[] data, int index) { in getBytes() argument
[all …]
/libcore/luni/src/main/java/libcore/io/
DStrictLineReader.java60 private int end; field in StrictLineReader
160 if (pos >= end) { in readLine()
164 for (int i = pos; i != end; ++i) { in readLine()
174 ByteArrayOutputStream out = new ByteArrayOutputStream(end - pos + 80) { in readLine()
183 out.write(buf, pos, end - pos); in readLine()
185 end = -1; in readLine()
188 for (int i = pos; i != end; ++i) { in readLine()
224 return end == -1; in hasUnterminatedLine()
240 end = result; in fillBuf()
DBase64.java138 int index = 0, end = in.length - in.length % 3; in encode() local
139 for (int i = 0; i < end; i += 3) { in encode()
147 out[index++] = map[(in[end] & 0xff) >> 2]; in encode()
148 out[index++] = map[(in[end] & 0x03) << 4]; in encode()
153 out[index++] = map[(in[end] & 0xff) >> 2]; in encode()
154 out[index++] = map[((in[end] & 0x03) << 4) | ((in[end+1] & 0xff) >> 4)]; in encode()
155 out[index++] = map[((in[end+1] & 0x0f) << 2)]; in encode()
/libcore/luni/src/main/java/java/nio/
DCharBuffer.java130 public static CharBuffer wrap(CharSequence cs, int start, int end) { in wrap() argument
131 if (start < 0 || end < start || end > cs.length()) { in wrap()
132 … new IndexOutOfBoundsException("cs.length()=" + cs.length() + ", start=" + start + ", end=" + end); in wrap()
136 result.limit = end; in wrap()
562 public CharBuffer put(String str, int start, int end) { in put() argument
566 if (start < 0 || end < start || end > str.length()) { in put()
568 ", start=" + start + ", end=" + end); in put()
570 if (end - start > remaining()) { in put()
573 for (int i = start; i < end; i++) { in put()
622 public abstract CharBuffer subSequence(int start, int end); in subSequence() argument
[all …]
/libcore/luni/src/main/java/java/util/regex/
DMatchResultImpl.java45 public int end() { in end() method in MatchResultImpl
46 return end(0); in end()
49 public int end(int group) { in end() method in MatchResultImpl
54 return text.substring(start(), end()); in group()
DMatcher.java112 appendPos = end(); in appendReplacement()
196 private Matcher reset(CharSequence input, int start, int end) { in reset() argument
201 if (start < 0 || end < 0 || start > input.length() || end > input.length() || start > end) { in reset()
207 this.regionEnd = end; in reset()
268 public Matcher region(int start, int end) { in region() argument
269 return reset(input, start, end); in region()
549 public int end() { in end() method in Matcher
550 return end(0); in end()
558 public int end(int group) { in end() method in Matcher
625 private static native void setInputImpl(long addr, String s, int start, int end); in setInputImpl() argument
DSplitter.java70 int end; in fastSplit() local
71 while (separatorCount + 1 != limit && (end = input.indexOf(ch, begin)) != -1) { in fastSplit()
73 begin = end + 1; in fastSplit()
95 end = input.indexOf(ch, begin); in fastSplit()
96 result[i] = input.substring(begin, end); in fastSplit()
97 begin = end + 1; in fastSplit()
122 begin = matcher.end(); in split()
/libcore/luni/src/main/java/libcore/net/url/
DFileHandler.java97 protected void parseURL(URL url, String spec, int start, int end) { in parseURL() argument
98 if (end < start) { in parseURL()
102 if (start < end) { in parseURL()
103 parseString = spec.substring(start, end).replace('\\', '/'); in parseURL()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DDeflaterTest.java83 defl.end(); in test_deflate$B()
101 infl.end(); in test_deflate$B()
127 defl.end(); in test_deflate$BII()
145 infl.end(); in test_deflate$BII()
166 defl.end(); in test_deflate$BII()
182 defl.end(); in test_end()
222 defl.end(); in test_finish()
236 infl.end(); in test_finish()
255 defl.end(); in test_finished()
274 defl.end(); in test_getAdler()
[all …]

12345