Home
last modified time | relevance | path

Searched refs:begin (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/main/java/java/util/regex/
DSplitter.java69 int begin = 0; in fastSplit() local
71 while (separatorCount + 1 != limit && (end = input.indexOf(ch, begin)) != -1) { in fastSplit()
73 begin = end + 1; in fastSplit()
76 if (limit == 0 && begin == lastPartEnd) { in fastSplit()
84 --begin; in fastSplit()
85 } while (input.charAt(begin - 1) == ch); in fastSplit()
87 separatorCount -= input.length() - begin; in fastSplit()
88 lastPartEnd = begin; in fastSplit()
93 begin = 0; in fastSplit()
95 end = input.indexOf(ch, begin); in fastSplit()
[all …]
/libcore/luni/src/main/java/java/text/
DAttributedString.java57 private int begin, end, offset; field in AttributedString.AttributedIterator
65 begin = 0; in AttributedIterator()
71 AttributedCharacterIterator.Attribute[] attributes, int begin, in AttributedIterator() argument
73 if (begin < 0 || end > attrString.text.length() || begin > end) { in AttributedIterator()
76 this.begin = begin; in AttributedIterator()
78 offset = begin; in AttributedIterator()
120 if (begin == end) { in first()
123 offset = begin; in first()
133 return begin; in getBeginIndex()
158 return range.start >= begin && range.start < end in inRange()
[all …]
DMessageFormat.java558 int begin = buffer.length(); in formatImpl() local
566 handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields); in formatImpl()
577 … handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields); in formatImpl()
586 handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields); in formatImpl()
587 handleFormat(format, arg, begin, fields); in formatImpl()
590 handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields); in formatImpl()
591 handleFormat(format, arg, begin, fields); in formatImpl()
606 private void handleArgumentField(int begin, int end, int argIndex, in handleArgumentField() argument
609 fields.add(new FieldContainer(begin, end, Field.ARGUMENT, Integer.valueOf(argIndex))); in handleArgumentField()
614 position.setBeginIndex(begin); in handleArgumentField()
[all …]
DBidi.java117 int begin = paragraph.getBeginIndex(); in Bidi() local
119 int length = end - begin; in Bidi()
143 - begin + 1) { in Bidi()
/libcore/luni/src/main/java/java/math/
DBigDecimal.java266 int begin = offset; // first index to be copied in BigDecimal() local
284 begin++; in BigDecimal()
299 unscaledBuffer.append(in, begin, offset - begin); in BigDecimal()
300 bufLength += offset - begin; in BigDecimal()
305 begin = offset; in BigDecimal()
316 scale = offset - begin; in BigDecimal()
318 unscaledBuffer.append(in, begin, scale); in BigDecimal()
326 begin = offset; in BigDecimal()
330 begin++; in BigDecimal()
334 scaleString = String.valueOf(in, begin, last + 1 - begin); in BigDecimal()
[all …]
/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()
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DGeneralName.java370 int begin = uri.indexOf("://")+3; in isAcceptable() local
371 int end = uri.indexOf('/', begin); in isAcceptable()
373 ? uri.substring(begin) in isAcceptable()
374 : uri.substring(begin, end); in isAcceptable()
376 begin = uri.indexOf("://")+3; in isAcceptable()
377 end = uri.indexOf('/', begin); in isAcceptable()
379 ? uri.substring(begin) in isAcceptable()
380 : uri.substring(begin, end); in isAcceptable()
/libcore/support/src/test/java/tests/support/
DSupport_Format.java37 String text, Format.Field field, int begin, int end) { in t_FormatWithField() argument
54 + field, begin, pos.getBeginIndex()); in t_FormatWithField()
/libcore/luni/src/main/java/java/nio/channels/spi/
DAbstractInterruptibleChannel.java91 protected final void begin() { in begin() method in AbstractInterruptibleChannel
DAbstractSelector.java114 protected final void begin() { in begin() method in AbstractSelector
/libcore/luni/src/main/java/java/nio/
DDatagramChannelImpl.java152 begin(); in connect()
225 begin(); in receive()
305 begin(); in send()
376 begin(); in readImpl()
437 begin(); in writeImpl()
DFileChannelImpl.java165 begin(); in lock()
304 begin(); in readImpl()
337 begin(); in transferIoVec()
426 begin(); in transferTo()
495 begin(); in writeImpl()
DSocketChannelImpl.java194 begin(); in connect()
274 begin(); in finishConnect()
340 begin(); in readImpl()
401 begin(); in writeImpl()
DServerSocketChannelImpl.java70 begin(); in accept()
DSelectorImpl.java181 begin(); in selectInternal()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DMockAbstractSelector.java54 super.begin(); in superBegin()
DAbstractInterruptibleChannelTest.java127 super.begin(); in superBegin()
/libcore/luni/src/main/java/java/nio/channels/
DChannels.java305 begin(); in read()
347 begin(); in write()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArrayListTest.java965 public void removeRange(int begin, int end) { in removeRange() argument
966 super.removeRange(begin, end); in removeRange()