Home
last modified time | relevance | path

Searched refs:endIndex (Results 1 – 25 of 371) sorted by relevance

12345678910>>...15

/external/okio/okio/src/commonMain/kotlin/okio/
DUtf8.kt77 fun String.utf8Size(beginIndex: Int = 0, endIndex: Int = length): Long { in <lambda>()
79 require(endIndex >= beginIndex) { "endIndex < beginIndex: $endIndex < $beginIndex" } in <lambda>()
80 require(endIndex <= length) { "endIndex > string.length: $endIndex > $length" } in <lambda>()
84 while (i < endIndex) { in <lambda>()
100 val low = if (i + 1 < endIndex) this[i + 1].code else 0 in <lambda>()
134 endIndex: Int, in processUtf8Bytes()
139 while (index < endIndex) { in processUtf8Bytes()
149 while (index < endIndex && this[index] < '\u0080') { in processUtf8Bytes()
178 endIndex <= index + 1 || in processUtf8Bytes()
209 endIndex: Int, in processUtf8CodePoints()
[all …]
/external/jsilver/src/com/google/streamhtmlparser/util/
DJavascriptTokenBuffer.java61 private int endIndex; field in JavascriptTokenBuffer
70 endIndex = 0; in JavascriptTokenBuffer()
83 endIndex = aJavascriptTokenBuffer.endIndex; in JavascriptTokenBuffer()
115 buffer[endIndex] = input; in appendChar()
116 endIndex = (endIndex + 1) % buffer.length; in appendChar()
117 if (endIndex == startIndex) { in appendChar()
118 startIndex = (endIndex + 1) % buffer.length; in appendChar()
129 if (startIndex == endIndex) { in popChar()
132 endIndex--; in popChar()
133 if (endIndex < 0) { in popChar()
[all …]
/external/apache-http/src/org/apache/http/util/
DCharArrayBuffer.java211 public int indexOf(int ch, int beginIndex, int endIndex) { in indexOf() argument
215 if (endIndex > this.len) { in indexOf()
216 endIndex = this.len; in indexOf()
218 if (beginIndex > endIndex) { in indexOf()
221 for (int i = beginIndex; i < endIndex; i++) { in indexOf()
233 public String substring(int beginIndex, int endIndex) { in substring() argument
237 if (endIndex > this.len) { in substring()
240 if (beginIndex > endIndex) { in substring()
243 return new String(this.buffer, beginIndex, endIndex - beginIndex); in substring()
246 public String substringTrimmed(int beginIndex, int endIndex) { in substringTrimmed() argument
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DCompositeFormat.java119 final int endIndex = startIndex + n; in parseNumber() local
120 if (endIndex < source.length()) { in parseNumber()
121 if (source.substring(startIndex, endIndex).compareTo(sb.toString()) == 0) { in parseNumber()
123 pos.setIndex(endIndex); in parseNumber()
144 final int endIndex = pos.getIndex(); in parseNumber() local
147 if (startIndex == endIndex) { in parseNumber()
174 final int endIndex = startIndex + expected.length(); in parseFixedstring() local
176 (endIndex > source.length()) || in parseFixedstring()
177 (source.substring(startIndex, endIndex).compareTo(expected) != 0)) { in parseFixedstring()
185 pos.setIndex(endIndex); in parseFixedstring()
/external/apache-commons-math/src/main/java/org/apache/commons/math3/util/
DCompositeFormat.java114 final int endIndex = startIndex + n; in parseNumber() local
115 if (endIndex < source.length() in parseNumber()
116 && source.substring(startIndex, endIndex).compareTo(sb.toString()) == 0) { in parseNumber()
118 pos.setIndex(endIndex); in parseNumber()
138 final int endIndex = pos.getIndex(); in parseNumber() local
141 if (startIndex == endIndex) { in parseNumber()
169 final int endIndex = startIndex + expected.length(); in parseFixedstring() local
171 || (endIndex > source.length()) in parseFixedstring()
172 || (source.substring(startIndex, endIndex).compareTo(expected) != 0)) { in parseFixedstring()
180 pos.setIndex(endIndex); in parseFixedstring()
/external/kotlinx.serialization/formats/protobuf/commonMain/src/kotlinx/serialization/protobuf/internal/
DStreams.kt9 internal class ByteArrayInput(private var array: ByteArray, private val endIndex: Int = array.size)… constant in kotlinx.serialization.protobuf.internal.ByteArrayInput
11 val availableBytes: Int get() = endIndex - position
22 return if (position < endIndex) array[position++].toInt() and 0xFF else -1 in read()
30 val copied = if (endIndex - position < length) endIndex - position else length in readExactNBytes()
31 …array.copyInto(destination = b, destinationOffset = 0, startIndex = position, endIndex = position … in readExactNBytes()
55 if (position == endIndex) { in readVarint32()
65 } else if (endIndex - position > 1) { in readVarint32()
77 if (position == endIndex) { in readVarint64()
88 } else if (endIndex - position > 1) { in readVarint64()
162 array.copyInto(newArray, startIndex = 0, endIndex = this.position) in toByteArray()
[all …]
/external/okio/okio/src/commonMain/kotlin/okio/internal/
DSegmentedByteString.kt82 endIndex: Int, in forEachSegment()
87 while (pos < endIndex) { in forEachSegment()
92 val byteCount = minOf(endIndex, segmentOffset + segmentSize) - pos in forEachSegment()
103 internal inline fun SegmentedByteString.commonSubstring(beginIndex: Int, endIndex: Int): ByteString… in commonSubstring()
104 val endIndex = resolveDefaultParameter(endIndex) in commonSubstring() constant
106 require(endIndex <= size) { "endIndex=$endIndex > length($size)" } in commonSubstring()
108 val subLen = endIndex - beginIndex in commonSubstring()
109 require(subLen >= 0) { "endIndex=$endIndex < beginIndex=$beginIndex" } in commonSubstring()
112 beginIndex == 0 && endIndex == size -> return this in commonSubstring()
113 beginIndex == endIndex -> return ByteString.EMPTY in commonSubstring()
[all …]
D-Utf8.kt27 fun ByteArray.commonToUtf8String(beginIndex: Int = 0, endIndex: Int = size): String { in <lambda>()
28 if (beginIndex < 0 || endIndex > size || beginIndex > endIndex) { in <lambda>()
29 throw ArrayIndexOutOfBoundsException("size=$size beginIndex=$beginIndex endIndex=$endIndex") in <lambda>()
31 val chars = CharArray(endIndex - beginIndex) in <lambda>()
34 processUtf16Chars(beginIndex, endIndex) { c -> in <lambda>()
/external/skia/src/pathops/
DSkLineParameters.h32 int endIndex = 1; in cubicEndPoints() local
33 cubicEndPoints(pts, 0, endIndex); in cubicEndPoints()
38 cubicEndPoints(pts, 0, ++endIndex); in cubicEndPoints()
39 SkASSERT(endIndex == 2); in cubicEndPoints()
44 cubicEndPoints(pts, 0, ++endIndex); // line in cubicEndPoints()
45 SkASSERT(endIndex == 3); in cubicEndPoints()
55 if (NotAlmostEqualUlps(pts[0].fY, pts[++endIndex].fY)) { in cubicEndPoints()
56 if (pts[0].fY > pts[endIndex].fY) { in cubicEndPoints()
61 if (endIndex == 3) { in cubicEndPoints()
64 SkASSERT(endIndex == 2); in cubicEndPoints()
/external/json-schema-validator/src/main/java/com/networknt/schema/resource/
DMetaSchemaMapper.java36 int endIndex = absoluteIRIString.length(); in map() local
37 if (absoluteIRIString.charAt(endIndex - 1) == ANCHOR) { in map()
38 endIndex = endIndex - 1; in map()
40 return AbsoluteIri.of(CLASSPATH_PREFIX + absoluteIRIString.substring(23, endIndex)); in map()
/external/antlr/tool/src/main/java/org/antlr/misc/
DUtils.java61 int endIndex = src.indexOf(replacee); in replace() local
62 while(endIndex != -1) { in replace()
63 result.append(src.substring(startIndex,endIndex)); in replace()
67 startIndex = endIndex + replacee.length(); in replace()
68 endIndex = src.indexOf(replacee,startIndex); in replace()
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/text/
DStrBuilder.java390 public char[] toCharArray(final int startIndex, int endIndex) { in toCharArray() argument
391 endIndex = validateRange(startIndex, endIndex); in toCharArray()
392 final int len = endIndex - startIndex; in toCharArray()
426 …public void getChars(final int startIndex, final int endIndex, final char[] destination, final int… in getChars() argument
430 if (endIndex < 0 || endIndex > length()) { in getChars()
431 throw new StringIndexOutOfBoundsException(endIndex); in getChars()
433 if (startIndex > endIndex) { in getChars()
436 System.arraycopy(buffer, startIndex, destination, destinationIndex, endIndex - startIndex); in getChars()
1794 private void deleteImpl(final int startIndex, final int endIndex, final int len) { in deleteImpl() argument
1795 System.arraycopy(buffer, endIndex, buffer, startIndex, size - endIndex); in deleteImpl()
[all …]
/external/accompanist/adaptive/src/main/java/com/google/accompanist/adaptive/
DRowColumnMeasurementHelper.kt48 val endIndex: Int, in <lambda>() constant in com.google.accompanist.adaptive.RowColumnMeasureHelperResult
92 endIndex: Int in <lambda>()
106 val subSize = endIndex - startIndex in <lambda>()
110 for (i in startIndex until endIndex) { in <lambda>()
159 var remainder = remainingToTarget - (startIndex until endIndex).sumOf { in <lambda>()
163 for (i in startIndex until endIndex) { in <lambda>()
203 for (i in startIndex until endIndex) { in <lambda>()
256 endIndex = endIndex, in <lambda>()
310 for (i in measureResult.startIndex until measureResult.endIndex) { in <lambda>()
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/
Dkeyframe-interpolations.js77 var endIndex = i + 1;
79 var endOffset = keyframes[endIndex].offset;
87 endIndex = startIndex;
94 startIndex = endIndex;
102 endOffset: keyframes[endIndex].offset,
107 keyframes[endIndex].value)
/external/icu/icu4j/tools/misc/src/main/java/com/ibm/icu/dev/tool/layout/
DClassTable.java182 int endIndex; in writeClassTable() local
184 for (endIndex = startIndex; endIndex < classTable.length; endIndex += 1) { in writeClassTable()
185 if (classTable[endIndex].getGlyphID() != nextID || in writeClassTable()
186 classTable[endIndex].getClassID() != classID) { in writeClassTable()
200 startIndex = endIndex; in writeClassTable()
/external/cronet/tot/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DNioByteString.java98 public ByteString substring(int beginIndex, int endIndex) { in substring() argument
100 ByteBuffer slice = slice(beginIndex, endIndex); in substring()
282 private ByteBuffer slice(int beginIndex, int endIndex) { in slice() argument
283 if (beginIndex < buffer.position() || endIndex > buffer.limit() || beginIndex > endIndex) { in slice()
285 String.format("Invalid indices [%d, %d]", beginIndex, endIndex)); in slice()
290 ((Buffer) slice).limit(endIndex - buffer.position()); in slice()
/external/cronet/stable/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DNioByteString.java98 public ByteString substring(int beginIndex, int endIndex) { in substring() argument
100 ByteBuffer slice = slice(beginIndex, endIndex); in substring()
282 private ByteBuffer slice(int beginIndex, int endIndex) { in slice() argument
283 if (beginIndex < buffer.position() || endIndex > buffer.limit() || beginIndex > endIndex) { in slice()
285 String.format("Invalid indices [%d, %d]", beginIndex, endIndex)); in slice()
290 ((Buffer) slice).limit(endIndex - buffer.position()); in slice()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DNioByteString.java98 public ByteString substring(int beginIndex, int endIndex) { in substring() argument
100 ByteBuffer slice = slice(beginIndex, endIndex); in substring()
282 private ByteBuffer slice(int beginIndex, int endIndex) { in slice() argument
283 if (beginIndex < buffer.position() || endIndex > buffer.limit() || beginIndex > endIndex) { in slice()
285 String.format("Invalid indices [%d, %d]", beginIndex, endIndex)); in slice()
290 ((Buffer) slice).limit(endIndex - buffer.position()); in slice()
/external/moshi/moshi-adapters/src/main/java/com/squareup/moshi/adapters/
DIso8601Utils.java223 private static int parseInt(String value, int beginIndex, int endIndex) in parseInt() argument
225 if (beginIndex < 0 || endIndex > value.length() || beginIndex > endIndex) { in parseInt()
232 if (i < endIndex) { in parseInt()
235 throw new NumberFormatException("Invalid number: " + value.substring(beginIndex, endIndex)); in parseInt()
239 while (i < endIndex) { in parseInt()
242 throw new NumberFormatException("Invalid number: " + value.substring(beginIndex, endIndex)); in parseInt()
/external/cronet/stable/third_party/icu/source/i18n/
Dufieldpositer.cpp44 int32_t *beginIndex, int32_t *endIndex) in ufieldpositer_next() argument
53 if (endIndex) { in ufieldpositer_next()
54 *endIndex = fp.getEndIndex(); in ufieldpositer_next()
/external/icu/icu4c/source/i18n/
Dufieldpositer.cpp44 int32_t *beginIndex, int32_t *endIndex) in ufieldpositer_next() argument
53 if (endIndex) { in ufieldpositer_next()
54 *endIndex = fp.getEndIndex(); in ufieldpositer_next()
/external/cronet/tot/third_party/icu/source/i18n/
Dufieldpositer.cpp44 int32_t *beginIndex, int32_t *endIndex) in ufieldpositer_next() argument
53 if (endIndex) { in ufieldpositer_next()
54 *endIndex = fp.getEndIndex(); in ufieldpositer_next()
/external/truth/core/src/main/java/com/google/common/truth/
DStackTraceCleaner.java96 int endIndex = 0; in clean() local
98 endIndex < stackFrames.length && !isJUnitIntrastructure(stackFrames[endIndex]); in clean()
99 endIndex++) { in clean()
107 if (stackIndex >= endIndex) { in clean()
108 endIndex = stackFrames.length; in clean()
111 for (; stackIndex < endIndex; stackIndex++) { in clean()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/icu/
DICUResourceWriter.java688 int endIndex = 0; in write() local
693 while (endIndex < strLen) { in write()
694 startIndex = endIndex; in write()
695 endIndex = startIndex + colLen; in write()
696 if (endIndex > strLen) { in write()
697 endIndex = strLen; in write()
707 && firstIndex < endIndex) { in write()
709 endIndex = firstIndex; in write()
714 && nextIndex < endIndex) { in write()
718 endIndex = nextIndex; in write()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/wasmJs/src/internal/
DCopyOnWriteList.kt22 array.copyInto(destination = update, endIndex = index) in add()
24 …copyInto(destination = update, destinationOffset = index + 1, startIndex = index, endIndex = n + 1) in add()
40 array.copyInto(destination = update, endIndex = index) in removeAt()
41 …ray.copyInto(destination = update, destinationOffset = index, startIndex = index + 1, endIndex = n) in removeAt()

12345678910>>...15