Home
last modified time | relevance | path

Searched refs:beginIndex (Results 1 – 25 of 64) sorted by relevance

123

/external/apache-http/src/org/apache/http/util/
DCharArrayBuffer.java211 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/icu/icu4c/source/test/cintltst/
Dunumberformattertst.c101 assertIntEquals("Field position should be correct", 14, ufpos.beginIndex); in TestSkeletonFormatToFields()
124 actual.field = ufieldpositer_next(ufpositer, &actual.beginIndex, &actual.endIndex); in TestSkeletonFormatToFields()
130 if (expected.beginIndex != actual.beginIndex) { in TestSkeletonFormatToFields()
134 expected.beginIndex, in TestSkeletonFormatToFields()
135 actual.beginIndex); in TestSkeletonFormatToFields()
145 actual.field = ufieldpositer_next(ufpositer, &actual.beginIndex, &actual.endIndex); in TestSkeletonFormatToFields()
150 actual.beginIndex = 0; in TestSkeletonFormatToFields()
155 … assertIntEquals("Grouping separator begin index", expected.beginIndex, actual.beginIndex); in TestSkeletonFormatToFields()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DNioByteString.java97 public ByteString substring(int beginIndex, int endIndex) { in substring() argument
99 ByteBuffer slice = slice(beginIndex, endIndex); in substring()
281 private ByteBuffer slice(int beginIndex, int endIndex) { in slice() argument
282 if (beginIndex < buffer.position() || endIndex > buffer.limit() || beginIndex > endIndex) { in slice()
284 String.format("Invalid indices [%d, %d]", beginIndex, endIndex)); in slice()
288 slice.position(beginIndex - buffer.position()); in slice()
/external/icu/icu4c/source/i18n/
Dufieldpositer.cpp44 int32_t *beginIndex, int32_t *endIndex) in ufieldpositer_next() argument
50 if (beginIndex) { in ufieldpositer_next()
51 *beginIndex = fp.getBeginIndex(); in ufieldpositer_next()
Dscientificnumberformatter.cpp40 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/
DSearchIterator.java145 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/
DSearchIterator.java142 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/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DByteString.java249 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()
DRealBufferedSink.java62 @Override public BufferedSink writeUtf8(String string, int beginIndex, int endIndex) in writeUtf8() argument
65 buffer.writeUtf8(string, beginIndex, endIndex); in writeUtf8()
81 @Override public BufferedSink writeString(String string, int beginIndex, int endIndex, in writeString() argument
84 buffer.writeString(string, beginIndex, endIndex, charset); in writeString()
DBufferedSink.java62 BufferedSink writeUtf8(String string, int beginIndex, int endIndex) throws IOException; in writeUtf8() argument
74 BufferedSink writeString(String string, int beginIndex, int endIndex, Charset charset) in writeString() argument
DSegmentedByteString.java117 @Override public ByteString substring(int beginIndex) { in substring() argument
118 return toByteString().substring(beginIndex); in substring()
121 @Override public ByteString substring(int beginIndex, int endIndex) { in substring() argument
122 return toByteString().substring(beginIndex, endIndex); in substring()
DBuffer.java798 @Override public Buffer writeUtf8(String string, int beginIndex, int endIndex) {
800 if (beginIndex < 0) throw new IllegalAccessError("beginIndex < 0: " + beginIndex);
801 if (endIndex < beginIndex) {
802 throw new IllegalArgumentException("endIndex < beginIndex: " + endIndex + " < " + beginIndex);
810 for (int i = beginIndex; i < endIndex;) {
915 public Buffer writeString(String string, int beginIndex, int endIndex, Charset charset) {
917 if (beginIndex < 0) throw new IllegalAccessError("beginIndex < 0: " + beginIndex);
918 if (endIndex < beginIndex) {
919 throw new IllegalArgumentException("endIndex < beginIndex: " + endIndex + " < " + beginIndex);
927 byte[] data = string.substring(beginIndex, endIndex).getBytes(charset);
/external/okhttp/okio/okio/src/main/java/okio/
DByteString.java247 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()
DRealBufferedSink.java61 @Override public BufferedSink writeUtf8(String string, int beginIndex, int endIndex) in writeUtf8() argument
64 buffer.writeUtf8(string, beginIndex, endIndex); in writeUtf8()
80 @Override public BufferedSink writeString(String string, int beginIndex, int endIndex, in writeString() argument
83 buffer.writeString(string, beginIndex, endIndex, charset); in writeString()
DBufferedSink.java60 BufferedSink writeUtf8(String string, int beginIndex, int endIndex) throws IOException; in writeUtf8() argument
72 BufferedSink writeString(String string, int beginIndex, int endIndex, Charset charset) in writeString() argument
DSegmentedByteString.java116 @Override public ByteString substring(int beginIndex) { in substring() argument
117 return toByteString().substring(beginIndex); in substring()
120 @Override public ByteString substring(int beginIndex, int endIndex) { in substring() argument
121 return toByteString().substring(beginIndex, endIndex); in substring()
DBuffer.java796 @Override public Buffer writeUtf8(String string, int beginIndex, int endIndex) {
798 if (beginIndex < 0) throw new IllegalAccessError("beginIndex < 0: " + beginIndex);
799 if (endIndex < beginIndex) {
800 throw new IllegalArgumentException("endIndex < beginIndex: " + endIndex + " < " + beginIndex);
808 for (int i = beginIndex; i < endIndex;) {
913 public Buffer writeString(String string, int beginIndex, int endIndex, Charset charset) {
915 if (beginIndex < 0) throw new IllegalAccessError("beginIndex < 0: " + beginIndex);
916 if (endIndex < beginIndex) {
917 throw new IllegalArgumentException("endIndex < beginIndex: " + endIndex + " < " + beginIndex);
925 byte[] data = string.substring(beginIndex, endIndex).getBytes(charset);
/external/apache-http/android/src/android/net/http/
DHeaders.java478 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/v8/src/builtins/
Dtyped-array-subarray.tq26 // 8. If relativeBegin < 0, let beginIndex be max((srcLength +
27 // relativeBegin), 0); else let beginIndex be min(relativeBegin,
41 // 11. Let newLength be max(endIndex - beginIndex, 0).
52 // 15. Let beginByteOffset be srcByteOffset + beginIndex × elementSize.
/external/apache-xml/src/main/java/org/apache/xml/utils/
DXMLStringDefault.java633 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()
DXMLString.java543 public abstract XMLString substring(int beginIndex); in substring() argument
561 public abstract XMLString substring(int beginIndex, int endIndex); in substring() argument
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXStringForFSB.java752 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()
/external/icu/icu4c/source/test/intltest/
Dformattedvaluetest.cpp178 converted[i].beginIndex = expectedFieldPositions[i].beginIndex; in checkFormattedValue()
227 int32_t expectedStart = expectedFieldPositions[i].beginIndex; in checkMixedFormattedValue()
253 int32_t expectedStart = expectedFieldPositions[i].beginIndex; in checkMixedFormattedValue()
287 int32_t expectedStart = expectedFieldPositions[i].beginIndex; in checkMixedFormattedValue()
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securemessage/
DCryptoOps.java447 static byte[] subarray(byte[] in, int beginIndex, int endIndex) { in subarray() argument
451 int length = endIndex - beginIndex; in subarray()
453 || (beginIndex < 0) in subarray()
455 || (beginIndex >= in.length) in subarray()
461 System.arraycopy(in, beginIndex, result, 0, length); in subarray()
/external/apache-http/src/org/apache/http/impl/auth/
DAuthSchemeBase.java106 int beginIndex = pos; in processChallenge() local
111 String s = buffer.substring(beginIndex, endIndex); in processChallenge()

123