/external/okio/okio/src/commonMain/kotlin/okio/ |
D | Utf8.kt | 77 fun String.utf8Size(beginIndex: Int = 0, endIndex: Int = length): Long { in <lambda>() 78 require(beginIndex >= 0) { "beginIndex < 0: $beginIndex" } in <lambda>() 79 require(endIndex >= beginIndex) { "endIndex < beginIndex: $endIndex < $beginIndex" } in <lambda>() 83 var i = beginIndex in <lambda>() 133 beginIndex: Int, in processUtf8Bytes() 138 var index = beginIndex in processUtf8Bytes() 208 beginIndex: Int, in processUtf8CodePoints() 212 var index = beginIndex in processUtf8CodePoints() 255 beginIndex: Int, in processUtf16Chars() 259 var index = beginIndex in processUtf16Chars() [all …]
|
/external/apache-http/src/org/apache/http/util/ |
D | CharArrayBuffer.java | 211 public int indexOf(int ch, int beginIndex, int endIndex) { in indexOf() argument 212 if (beginIndex < 0) { in indexOf() 213 beginIndex = 0; 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 234 if (beginIndex < 0) { 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/okio/okio/src/commonMain/kotlin/okio/internal/ |
D | SegmentedByteString.kt | 77 beginIndex: Int, in forEachSegment() 81 var s = segment(beginIndex) in forEachSegment() 82 var pos = beginIndex in forEachSegment() 99 internal inline fun SegmentedByteString.commonSubstring(beginIndex: Int, endIndex: Int): ByteString… in commonSubstring() 100 require(beginIndex >= 0) { "beginIndex=$beginIndex < 0" } in commonSubstring() 103 val subLen = endIndex - beginIndex in commonSubstring() 104 require(subLen >= 0) { "endIndex=$endIndex < beginIndex=$beginIndex" } in commonSubstring() 107 beginIndex == 0 && endIndex == size -> return this in commonSubstring() 108 beginIndex == endIndex -> return ByteString.EMPTY in commonSubstring() 111 val beginSegment = segment(beginIndex) // First segment to include in commonSubstring() [all …]
|
D | -Utf8.kt | 27 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/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | NioByteString.java | 98 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() 289 ((Buffer) slice).position(beginIndex - buffer.position()); in slice()
|
/external/cronet/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | NioByteString.java | 98 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() 289 ((Buffer) slice).position(beginIndex - buffer.position()); in slice()
|
/external/icu/icu4c/source/test/cintltst/ |
D | unumberformattertst.c | 116 assertIntEquals("Field position should be correct", 14, ufpos.beginIndex); in TestSkeletonFormatToFields() 139 actual.field = ufieldpositer_next(ufpositer, &actual.beginIndex, &actual.endIndex); in TestSkeletonFormatToFields() 145 if (expected.beginIndex != actual.beginIndex) { in TestSkeletonFormatToFields() 149 expected.beginIndex, in TestSkeletonFormatToFields() 150 actual.beginIndex); in TestSkeletonFormatToFields() 160 actual.field = ufieldpositer_next(ufpositer, &actual.beginIndex, &actual.endIndex); in TestSkeletonFormatToFields() 165 actual.beginIndex = 0; in TestSkeletonFormatToFields() 170 … assertIntEquals("Grouping separator begin index", expected.beginIndex, actual.beginIndex); in TestSkeletonFormatToFields()
|
D | ulistfmttest.c | 292 int32_t beginIndex, endIndex; in TestUList21871_A() local 293 ucfpos_getIndexes(fpos, &beginIndex, &endIndex, &status); in TestUList21871_A() 295 assertIntEquals("TEST beginIndex", 0, beginIndex); in TestUList21871_A() 340 int32_t beginIndex, endIndex; in TestUList21871_B() local 341 ucfpos_getIndexes(fpos, &beginIndex, &endIndex, &status); in TestUList21871_B() 343 assertIntEquals("TEST beginIndex", 5, beginIndex); in TestUList21871_B()
|
/external/cronet/third_party/icu/source/test/cintltst/ |
D | unumberformattertst.c | 116 assertIntEquals("Field position should be correct", 14, ufpos.beginIndex); in TestSkeletonFormatToFields() 139 actual.field = ufieldpositer_next(ufpositer, &actual.beginIndex, &actual.endIndex); in TestSkeletonFormatToFields() 145 if (expected.beginIndex != actual.beginIndex) { in TestSkeletonFormatToFields() 149 expected.beginIndex, in TestSkeletonFormatToFields() 150 actual.beginIndex); in TestSkeletonFormatToFields() 160 actual.field = ufieldpositer_next(ufpositer, &actual.beginIndex, &actual.endIndex); in TestSkeletonFormatToFields() 165 actual.beginIndex = 0; in TestSkeletonFormatToFields() 170 … assertIntEquals("Grouping separator begin index", expected.beginIndex, actual.beginIndex); in TestSkeletonFormatToFields()
|
D | ulistfmttest.c | 292 int32_t beginIndex, endIndex; in TestUList21871_A() local 293 ucfpos_getIndexes(fpos, &beginIndex, &endIndex, &status); in TestUList21871_A() 295 assertIntEquals("TEST beginIndex", 0, beginIndex); in TestUList21871_A() 340 int32_t beginIndex, endIndex; in TestUList21871_B() local 341 ucfpos_getIndexes(fpos, &beginIndex, &endIndex, &status); in TestUList21871_B() 343 assertIntEquals("TEST beginIndex", 5, beginIndex); in TestUList21871_B()
|
/external/icu/icu4c/source/i18n/ |
D | ufieldpositer.cpp | 44 int32_t *beginIndex, int32_t *endIndex) in ufieldpositer_next() argument 50 if (beginIndex) { in ufieldpositer_next() 51 *beginIndex = fp.getBeginIndex(); in ufieldpositer_next()
|
D | scientificnumberformatter.cpp | 40 int32_t beginIndex, in copyAsSuperscript() argument 47 for (int32_t i = beginIndex; i < endIndex;) { in copyAsSuperscript() 152 int32_t beginIndex = fp.getBeginIndex(); in format() local 154 UChar32 aChar = original.char32At(beginIndex); in format() 159 beginIndex - copyFromOffset); in format() 165 beginIndex - copyFromOffset); in format()
|
/external/cronet/third_party/icu/source/i18n/ |
D | ufieldpositer.cpp | 44 int32_t *beginIndex, int32_t *endIndex) in ufieldpositer_next() argument 50 if (beginIndex) { in ufieldpositer_next() 51 *beginIndex = fp.getBeginIndex(); in ufieldpositer_next()
|
D | scientificnumberformatter.cpp | 40 int32_t beginIndex, in copyAsSuperscript() argument 47 for (int32_t i = beginIndex; i < endIndex;) { in copyAsSuperscript() 152 int32_t beginIndex = fp.getBeginIndex(); in format() local 154 UChar32 aChar = original.char32At(beginIndex); in format() 159 beginIndex - copyFromOffset); in format() 165 beginIndex - copyFromOffset); in format()
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | SearchIterator.java | 145 int beginIndex() { in beginIndex() method in SearchIterator.Search 189 if (position < search_.beginIndex() in setIndex() 193 search_.beginIndex() + " and " + search_.endIndex()); in setIndex() 475 int startIdx = search_.beginIndex(); in previous() 520 setIndex(search_.beginIndex()); in reset() 543 int startIdx = search_.beginIndex(); in first()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | SearchIterator.java | 142 int beginIndex() { in beginIndex() method in SearchIterator.Search 184 if (position < search_.beginIndex() in setIndex() 188 search_.beginIndex() + " and " + search_.endIndex()); in setIndex() 459 int startIdx = search_.beginIndex(); in previous() 501 setIndex(search_.beginIndex()); in reset() 523 int startIdx = search_.beginIndex(); in first()
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | ByteString.java | 247 public ByteString substring(int beginIndex) { in substring() argument 248 return substring(beginIndex, data.length); in substring() 256 public ByteString substring(int beginIndex, int endIndex) { in substring() argument 257 if (beginIndex < 0) throw new IllegalArgumentException("beginIndex < 0"); in substring() 262 int subLen = endIndex - beginIndex; in substring() 265 if ((beginIndex == 0) && (endIndex == data.length)) { in substring() 270 System.arraycopy(data, beginIndex, copy, 0, subLen); in substring()
|
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/ |
D | ByteString.java | 249 public ByteString substring(int beginIndex) { in substring() argument 250 return substring(beginIndex, data.length); in substring() 258 public ByteString substring(int beginIndex, int endIndex) { in substring() argument 259 if (beginIndex < 0) throw new IllegalArgumentException("beginIndex < 0"); in substring() 264 int subLen = endIndex - beginIndex; in substring() 267 if ((beginIndex == 0) && (endIndex == data.length)) { in substring() 272 System.arraycopy(data, beginIndex, copy, 0, subLen); in substring()
|
/external/apache-http/android/src/android/net/http/ |
D | Headers.java | 478 int beginIndex, final String str) { in containsIgnoreCaseTrimmed() argument 481 while (beginIndex < len && HTTP.isWhitespace(chars[beginIndex])) { in containsIgnoreCaseTrimmed() 482 beginIndex++; in containsIgnoreCaseTrimmed() 485 boolean ok = len >= (beginIndex + size); in containsIgnoreCaseTrimmed() 487 char a = chars[beginIndex + j]; in containsIgnoreCaseTrimmed() 505 int beginIndex = 0; in setLowercaseIndexOf() local 509 for (int i = beginIndex; i < endIndex; i++) { in setLowercaseIndexOf()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/ |
D | ISO8601Utils.java | 284 …private static int parseInt(String value, int beginIndex, int endIndex) throws NumberFormatExcepti… in parseInt() argument 285 if (beginIndex < 0 || endIndex > value.length() || beginIndex > endIndex) { in parseInt() 289 int i = beginIndex; in parseInt() 295 … throw new NumberFormatException("Invalid number: " + value.substring(beginIndex, endIndex)); in parseInt() 302 … throw new NumberFormatException("Invalid number: " + value.substring(beginIndex, endIndex)); in parseInt()
|
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
D | XMLStringDefault.java | 633 public XMLString substring(int beginIndex) in substring() argument 635 return new XMLStringDefault(m_str.substring(beginIndex)); in substring() 654 public XMLString substring(int beginIndex, int endIndex) in substring() argument 656 return new XMLStringDefault(m_str.substring(beginIndex, endIndex)); in substring()
|
/external/gson/gson/src/main/java/com/google/gson/internal/bind/util/ |
D | ISO8601Utils.java | 305 …private static int parseInt(String value, int beginIndex, int endIndex) throws NumberFormatExcepti… 306 if (beginIndex < 0 || endIndex > value.length() || beginIndex > endIndex) { 310 int i = beginIndex; 316 … throw new NumberFormatException("Invalid number: " + value.substring(beginIndex, endIndex)); 323 … throw new NumberFormatException("Invalid number: " + value.substring(beginIndex, endIndex));
|
/external/okio/okio/src/jvmMain/kotlin/okio/ |
D | RealBufferedSink.kt | 59 override fun writeUtf8(string: String, beginIndex: Int, endIndex: Int) = in buffer() 60 commonWriteUtf8(string, beginIndex, endIndex) in buffer() 72 beginIndex: Int, in writeString() 77 buffer.writeString(string, beginIndex, endIndex, charset) in writeString()
|
D | -DeprecatedUtf8.kt | 39 fun size(string: String, beginIndex: Int, endIndex: Int) = string.utf8Size(beginIndex, endIndex)
|
/external/apache-xml/src/main/java/org/apache/xpath/objects/ |
D | XStringForFSB.java | 752 public XMLString substring(int beginIndex) in substring() argument 755 int len = m_length - beginIndex; in substring() 761 int start = m_start + beginIndex; in substring() 783 public XMLString substring(int beginIndex, int endIndex) in substring() argument 786 int len = endIndex - beginIndex; in substring() 795 int start = m_start + beginIndex; in substring()
|