Home
last modified time | relevance | path

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

1234567

/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/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()
DSkPathOpsQuad.cpp185 bool SkDQuad::isLinear(int startIndex, int endIndex) const { in isLinear()
187 lineParameters.quadEndPoints(*this, startIndex, endIndex); in isLinear()
294 void SkDQuad::align(int endIndex, SkDPoint* dstPt) const { in align() argument
295 if (fPts[endIndex].fX == fPts[1].fX) { in align()
296 dstPt->fX = fPts[endIndex].fX; in align()
298 if (fPts[endIndex].fY == fPts[1].fY) { in align()
299 dstPt->fY = fPts[endIndex].fY; in align()
/external/skqp/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()
DSkPathOpsQuad.cpp185 bool SkDQuad::isLinear(int startIndex, int endIndex) const { in isLinear()
187 lineParameters.quadEndPoints(*this, startIndex, endIndex); in isLinear()
294 void SkDQuad::align(int endIndex, SkDPoint* dstPt) const { in align() argument
295 if (fPts[endIndex].fX == fPts[1].fX) { in align()
296 dstPt->fX = fPts[endIndex].fX; in align()
298 if (fPts[endIndex].fY == fPts[1].fY) { in align()
299 dstPt->fY = fPts[endIndex].fY; in align()
/external/icu/icu4c/source/test/cintltst/
Dunumberformattertst.c93 assertIntEquals("Field position should be correct", 15, ufpos.endIndex); in TestSkeletonFormatToFields()
114 actual.field = ufieldpositer_next(ufpositer, &actual.beginIndex, &actual.endIndex); in TestSkeletonFormatToFields()
127 if (expected.endIndex != actual.endIndex) { in TestSkeletonFormatToFields()
131 expected.endIndex, in TestSkeletonFormatToFields()
132 actual.endIndex); in TestSkeletonFormatToFields()
135 actual.field = ufieldpositer_next(ufpositer, &actual.beginIndex, &actual.endIndex); in TestSkeletonFormatToFields()
141 actual.endIndex = 0; in TestSkeletonFormatToFields()
146 assertIntEquals("Grouping separator end index", expected.endIndex, actual.endIndex); in TestSkeletonFormatToFields()
/external/proguard/src/proguard/
DWordReader.java188 int endIndex; in nextWord() local
212 endIndex = currentIndex++; in nextWord()
233 endIndex = currentIndex; in nextWord()
236 while (endIndex > startIndex && in nextWord()
237 Character.isWhitespace(currentLine.charAt(endIndex-1))) in nextWord()
239 endIndex--; in nextWord()
245 endIndex = ++currentIndex; in nextWord()
264 endIndex = currentIndex; in nextWord()
268 currentWord = currentLine.substring(startIndex, endIndex); in nextWord()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DSubList.cs16 public SubList( IList source, int startIndex, int endIndex ) in SubList() argument
20 if ( startIndex < 0 || endIndex < 0 ) in SubList()
22 if ( startIndex > endIndex || endIndex >= source.Count ) in SubList()
27 _endIndex = endIndex; in SubList()
177 public SubList( IList<T> source, int startIndex, int endIndex ) in SubList() argument
181 if ( startIndex < 0 || endIndex < 0 ) in SubList()
183 if ( startIndex > endIndex || endIndex >= source.Count ) in SubList()
188 _endIndex = endIndex; in SubList()
/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/icu/icu4j/tools/misc/src/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/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()
287 slice.limit(endIndex - buffer.position()); in slice()
DByteString.java258 public abstract ByteString substring(int beginIndex, int endIndex); in substring() argument
1208 static int checkRange(int startIndex, int endIndex, int size) { in checkRange() argument
1209 final int length = endIndex - startIndex; in checkRange()
1210 if ((startIndex | endIndex | length | (size - endIndex)) < 0) { in checkRange()
1214 if (endIndex < startIndex) { in checkRange()
1216 "Beginning index larger than ending index: " + startIndex + ", " + endIndex); in checkRange()
1219 throw new IndexOutOfBoundsException("End index: " + endIndex + " >= " + size); in checkRange()
1273 public final ByteString substring(int beginIndex, int endIndex) { in substring() argument
1274 final int length = checkRange(beginIndex, endIndex, size()); in substring()
/external/cldr/tools/java/org/unicode/cldr/icu/
DICUResourceWriter.java690 int endIndex = 0; in write() local
695 while (endIndex < strLen) { in write()
696 startIndex = endIndex; in write()
697 endIndex = startIndex + colLen; in write()
698 if (endIndex > strLen) { in write()
699 endIndex = strLen; in write()
707 … if (startIndex != (firstIndex - 1) && startIndex != firstIndex && firstIndex < endIndex) { in write()
709 endIndex = firstIndex; in write()
713 … while ((nextIndex = str.indexOf("&", firstIndex + 1)) != -1 && nextIndex < endIndex) { in write()
717 endIndex = nextIndex; in write()
[all …]
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DAudioFileOutput.java61 public boolean writeRingBufferData(double[] data, int startIndex, int endIndex) { in writeRingBufferData() argument
71 int sampleCount = endIndex - startIndex; in writeRingBufferData()
77 if (endIndex > startIndex) { in writeRingBufferData()
78 writeDataBuffer(data, startIndex, endIndex); in writeRingBufferData()
81 writeDataBuffer(data, 0, endIndex); in writeRingBufferData()
/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/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DSearchIterator.java152 int endIndex() { in endIndex() method in SearchIterator.Search
190 || position > search_.endIndex()) { in setIndex()
193 search_.beginIndex() + " and " + search_.endIndex()); in setIndex()
406 int endIdx = search_.endIndex(); in next()
455 index = search_.endIndex(); // m_search_->textLength in ICU4C in previous()
583 int endIdx = search_.endIndex(); in last()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DSearchIterator.java149 int endIndex() { in endIndex() method in SearchIterator.Search
185 || position > search_.endIndex()) { in setIndex()
188 search_.beginIndex() + " and " + search_.endIndex()); in setIndex()
391 int endIdx = search_.endIndex(); in next()
439 index = search_.endIndex(); // m_search_->textLength in ICU4C in previous()
561 int endIdx = search_.endIndex(); in last()
/external/guava/guava/src/com/google/common/escape/
DUnicodeEscaper.java224 int endIndex = destIndex + charsSkipped; in escapeSlow() local
225 if (dest.length < endIndex) { in escapeSlow()
226 dest = growBuffer(dest, destIndex, endIndex); in escapeSlow()
229 destIndex = endIndex; in escapeSlow()
/external/testng/src/main/java/org/testng/mustache/
DMustache.java44 int endIndex = findClosingIndex(template, ti, conditionalVariable); in run()
52 String subTemplate = template.substring(ti + variable.length() + 4, endIndex); in run()
62 String subTemplate = template.substring(ti + variable.length() + 4, endIndex); in run()
68 ti = endIndex + variable.length() + 4; in run()
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
DAllAllocationsRecorder.java50 int endIndex = 2;
59 endIndex = i;
67 new Allocation(desc, size, asList(stackTrace).subList(startIndex, endIndex + 1)));
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DCompositeReadableBufferTest.java171 for (int startIndex = 0, endIndex = 0; startIndex < value.length(); startIndex = endIndex) { in splitAndAdd()
172 endIndex = Math.min(value.length(), startIndex + partLength); in splitAndAdd()
173 String part = value.substring(startIndex, endIndex); in splitAndAdd()
/external/libtextclassifier/java/com/google/android/textclassifier/
DAnnotatorModel.java366 private final int endIndex; field in AnnotatorModel.AnnotatedSpan
369 AnnotatedSpan(int startIndex, int endIndex, ClassificationResult[] classification) { in AnnotatedSpan() argument
371 this.endIndex = endIndex; in AnnotatedSpan()
380 return endIndex; in getEndIndex()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DStringRange.java266 …private static void add(int endIndex, int startOffset, int[] starts, int[] ends, StringBuilder bui… in add() argument
267 int start = starts[endIndex+startOffset]; in add()
268 int end = ends[endIndex]; in add()
272 boolean last = endIndex == ends.length - 1; in add()
279 add(endIndex+1, startOffset, starts, ends, builder, output); in add()

1234567