Home
last modified time | relevance | path

Searched refs:beginIndex (Results 1 – 25 of 62) 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.c92 assertIntEquals("Field position should be correct", 14, ufpos.beginIndex); in TestSkeletonFormatToFields()
114 actual.field = ufieldpositer_next(ufpositer, &actual.beginIndex, &actual.endIndex); in TestSkeletonFormatToFields()
120 if (expected.beginIndex != actual.beginIndex) { in TestSkeletonFormatToFields()
124 expected.beginIndex, in TestSkeletonFormatToFields()
125 actual.beginIndex); in TestSkeletonFormatToFields()
135 actual.field = ufieldpositer_next(ufpositer, &actual.beginIndex, &actual.endIndex); in TestSkeletonFormatToFields()
140 actual.beginIndex = 0; in TestSkeletonFormatToFields()
145 … assertIntEquals("Grouping separator begin index", expected.beginIndex, actual.beginIndex); in TestSkeletonFormatToFields()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DNioByteString.java95 public ByteString substring(int beginIndex, int endIndex) { in substring() argument
97 ByteBuffer slice = slice(beginIndex, endIndex); in substring()
279 private ByteBuffer slice(int beginIndex, int endIndex) { in slice() argument
280 if (beginIndex < buffer.position() || endIndex > buffer.limit() || beginIndex > endIndex) { in slice()
282 String.format("Invalid indices [%d, %d]", beginIndex, endIndex)); in slice()
286 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()
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);
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
/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()
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);
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
/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/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()
DXString.java873 public XMLString substring(int beginIndex) in substring() argument
875 return new XString(str().substring(beginIndex)); in substring()
894 public XMLString substring(int beginIndex, int endIndex) in substring() argument
896 return new XString(str().substring(beginIndex, endIndex)); in substring()
/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/swiftshader/third_party/LLVM/lib/CodeGen/
DRegAllocLinearScan.cpp605 processActiveIntervals(cur->beginIndex()); in linearScan()
606 processInactiveIntervals(cur->beginIndex()); in linearScan()
959 return A->beginIndex() < B->beginIndex(); in operator ()()
985 SlotIndex StartPosition = cur->beginIndex(); in assignRegOrStackSlotAtInterval()
1253 SlotIndex ReloadIdx = ReloadLi->beginIndex(); in assignRegOrStackSlotAtInterval()
1260 assert(LastReload->beginIndex() < ReloadIdx); in assignRegOrStackSlotAtInterval()
1296 SlotIndex earliestStart = spillIs[0]->beginIndex(); in assignRegOrStackSlotAtInterval()
1308 if (sli->beginIndex() < earliestStart) in assignRegOrStackSlotAtInterval()
1309 earliestStart = sli->beginIndex(); in assignRegOrStackSlotAtInterval()
1317 SlotIndex SI = added[i]->beginIndex(); in assignRegOrStackSlotAtInterval()
[all …]
/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