Home
last modified time | relevance | path

Searched refs:sIndex (Results 1 - 25 of 35) sorted by relevance

12

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DCodePointMap.java203 protected int sIndex; field in CodePointMap.StringIterator
222 protected StringIterator(CharSequence s, int sIndex) { in StringIterator() argument
224 this.sIndex = sIndex; in StringIterator()
233 * @param sIndex string index where the iteration will start
236 public void reset(CharSequence s, int sIndex) { in reset() argument
238 this.sIndex = sIndex; in reset()
253 if (sIndex >= s.length()) { in next()
256 c = Character.codePointAt(s, sIndex); in next()
448 stringIterator(CharSequence s, int sIndex) stringIterator() argument
[all...]
H A DCodePointTrie.java816 public final StringIterator stringIterator(CharSequence s, int sIndex) { in stringIterator() argument
817 return new FastStringIterator(s, sIndex); in stringIterator()
821 private FastStringIterator(CharSequence s, int sIndex) { in FastStringIterator() argument
822 super(s, sIndex); in FastStringIterator()
827 if (sIndex >= s.length()) { in next()
830 char lead = s.charAt(sIndex++); in next()
837 if (UTF16Plus.isSurrogateLead(lead) && sIndex < s.length() && in next()
838 Character.isLowSurrogate(trail = s.charAt(sIndex))) { in next()
839 ++sIndex; in next()
852 if (sIndex < in previous()
933 stringIterator(CharSequence s, int sIndex) stringIterator() argument
938 SmallStringIterator(CharSequence s, int sIndex) SmallStringIterator() argument
[all...]
H A DBytesTrie.java314 * @param sIndex The start index of the byte sequence in s.
319 public Result next(byte[] s, int sIndex, int sLimit) { in next() argument
320 if(sIndex>=sLimit) { in next()
334 if(sIndex==sLimit) { in next()
341 inByte=s[sIndex++]; in next()
361 if(sIndex==sLimit) { in next()
369 inByte=s[sIndex++]; in next()
H A DCharsTrie.java276 * @param sIndex The start index of the string in s.
281 public Result next(CharSequence s, int sIndex, int sLimit) { in next() argument
282 if(sIndex>=sLimit) { in next()
296 if(sIndex==sLimit) { in next()
303 inUnit=s.charAt(sIndex++); in next()
323 if(sIndex==sLimit) { in next()
331 inUnit=s.charAt(sIndex++); in next()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DCodePointMap.java191 protected int sIndex; field in CodePointMap.StringIterator
210 protected StringIterator(CharSequence s, int sIndex) { in StringIterator() argument
212 this.sIndex = sIndex; in StringIterator()
221 * @param sIndex string index where the iteration will start
223 public void reset(CharSequence s, int sIndex) { in reset() argument
225 this.sIndex = sIndex; in reset()
239 if (sIndex >= s.length()) { in next()
242 c = Character.codePointAt(s, sIndex); in next()
423 stringIterator(CharSequence s, int sIndex) stringIterator() argument
[all...]
H A DCodePointTrie.java797 public final StringIterator stringIterator(CharSequence s, int sIndex) { in stringIterator() argument
798 return new FastStringIterator(s, sIndex); in stringIterator()
802 private FastStringIterator(CharSequence s, int sIndex) { in FastStringIterator() argument
803 super(s, sIndex); in FastStringIterator()
808 if (sIndex >= s.length()) { in next()
811 char lead = s.charAt(sIndex++); in next()
818 if (UTF16Plus.isSurrogateLead(lead) && sIndex < s.length() && in next()
819 Character.isLowSurrogate(trail = s.charAt(sIndex))) { in next()
820 ++sIndex; in next()
833 if (sIndex < in previous()
911 stringIterator(CharSequence s, int sIndex) stringIterator() argument
916 SmallStringIterator(CharSequence s, int sIndex) SmallStringIterator() argument
[all...]
H A DBytesTrie.java295 * @param sIndex The start index of the byte sequence in s.
299 public Result next(byte[] s, int sIndex, int sLimit) { in next() argument
300 if(sIndex>=sLimit) { in next()
314 if(sIndex==sLimit) { in next()
321 inByte=s[sIndex++]; in next()
341 if(sIndex==sLimit) { in next()
349 inByte=s[sIndex++]; in next()
H A DCharsTrie.java262 * @param sIndex The start index of the string in s.
266 public Result next(CharSequence s, int sIndex, int sLimit) { in next() argument
267 if(sIndex>=sLimit) { in next()
281 if(sIndex==sLimit) { in next()
288 inUnit=s.charAt(sIndex++); in next()
308 if(sIndex==sLimit) { in next()
316 inUnit=s.charAt(sIndex++); in next()
/third_party/skia/third_party/externals/angle2/src/compiler/preprocessor/
H A DInput.cpp38 ASSERT(mReadLoc.cIndex < mLength[mReadLoc.sIndex]);
40 if (mReadLoc.cIndex == mLength[mReadLoc.sIndex])
42 ++mReadLoc.sIndex;
45 if (mReadLoc.sIndex >= mCount)
49 return mString[mReadLoc.sIndex] + mReadLoc.cIndex;
57 if (mReadLoc.sIndex < mCount && maxSize > 0)
59 const char *c = mString[mReadLoc.sIndex] + mReadLoc.cIndex;
99 while ((nRead < maxRead) && (mReadLoc.sIndex < mCount))
101 size_t size = mLength[mReadLoc.sIndex] - mReadLoc.cIndex;
108 if (*(mString[mReadLoc.sIndex]
[all...]
H A DInput.h35 size_t sIndex; // String index; member
38 Location() : sIndex(0), cIndex(0) {} in Location()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/preprocessor/
H A DInput.cpp46 assert(mReadLoc.cIndex < mLength[mReadLoc.sIndex]);
48 if (mReadLoc.cIndex == mLength[mReadLoc.sIndex])
50 ++mReadLoc.sIndex;
53 if (mReadLoc.sIndex >= mCount)
57 return mString[mReadLoc.sIndex] + mReadLoc.cIndex;
65 if (mReadLoc.sIndex < mCount && maxSize > 0)
67 const char *c = mString[mReadLoc.sIndex] + mReadLoc.cIndex;
107 while ((nRead < maxRead) && (mReadLoc.sIndex < mCount))
109 size_t size = mLength[mReadLoc.sIndex] - mReadLoc.cIndex;
116 if (*(mString[mReadLoc.sIndex]
[all...]
H A DInput.h41 size_t sIndex; // String index; member
44 Location() : sIndex(0), cIndex(0) {} in Location()
/third_party/skia/src/pathops/
H A DSkPathWriter.cpp333 int sIndex = sLink[rIndex]; in assemble() local
334 SkASSERT(sIndex != SK_MaxS32); in assemble()
337 if (sIndex < 0) { in assemble()
338 eIndex = sLink[~sIndex]; in assemble()
339 sLink[~sIndex] = SK_MaxS32; in assemble()
341 eIndex = eLink[sIndex]; in assemble()
342 eLink[sIndex] = SK_MaxS32; in assemble()
346 SkDebugf("%s sIndex=%c%d eIndex=%c%d\n", __FUNCTION__, sIndex < 0 ? 's' : 'e', in assemble()
347 sIndex < in assemble()
[all...]
H A DSkOpAngle.cpp543 int sIndex = -1; in endsIntersect() local
573 sIndex = index; in endsIntersect()
619 sIndex = index; in endsIntersect()
623 const SkDCurve& curve = sIndex ? rh->fPart.fCurve : this->fPart.fCurve; in endsIntersect()
624 const SkOpSegment& segment = sIndex ? *rh->segment() : *this->segment(); in endsIntersect()
625 double tStart = sIndex ? rh->fStart->t() : fStart->t(); in endsIntersect()
631 return sRayLonger ^ (sIndex == 0) ^ (septDir < 0); in endsIntersect()
/third_party/icu/icu4c/source/i18n/
H A Dcollationfastlatin.cpp814 const uint8_t *s8, int32_t &sIndex, int32_t sLength) { in lookupUTF8()
817 int32_t i2 = sIndex + 1; in lookupUTF8()
819 uint8_t t1 = s8[sIndex]; in lookupUTF8()
821 sIndex += 2; in lookupUTF8()
837 const uint8_t *s8, int32_t &sIndex) { in lookupUTF8Unsafe()
842 return table[((c - 0xc2) << 6) + s8[sIndex++]]; // 0080..017F in lookupUTF8Unsafe()
844 uint8_t t2 = s8[sIndex + 1]; in lookupUTF8Unsafe()
845 sIndex += 2; in lookupUTF8Unsafe()
857 const UChar *s16, const uint8_t *s8, int32_t &sIndex, int32_t &sLength) { in nextPair()
865 sLength = sIndex in nextPair()
813 lookupUTF8(const uint16_t *table, UChar32 c, const uint8_t *s8, int32_t &sIndex, int32_t sLength) lookupUTF8() argument
836 lookupUTF8Unsafe(const uint16_t *table, UChar32 c, const uint8_t *s8, int32_t &sIndex) lookupUTF8Unsafe() argument
856 nextPair(const uint16_t *table, UChar32 c, uint32_t ce, const UChar *s16, const uint8_t *s8, int32_t &sIndex, int32_t &sLength) nextPair() argument
[all...]
H A Dcollationfastlatin.h224 const uint8_t *s8, int32_t &sIndex, int32_t sLength);
226 const uint8_t *s8, int32_t &sIndex);
229 const UChar *s16, const uint8_t *s8, int32_t &sIndex, int32_t &sLength);
/third_party/node/deps/icu-small/source/i18n/
H A Dcollationfastlatin.cpp814 const uint8_t *s8, int32_t &sIndex, int32_t sLength) { in lookupUTF8()
817 int32_t i2 = sIndex + 1; in lookupUTF8()
819 uint8_t t1 = s8[sIndex]; in lookupUTF8()
821 sIndex += 2; in lookupUTF8()
837 const uint8_t *s8, int32_t &sIndex) { in lookupUTF8Unsafe()
842 return table[((c - 0xc2) << 6) + s8[sIndex++]]; // 0080..017F in lookupUTF8Unsafe()
844 uint8_t t2 = s8[sIndex + 1]; in lookupUTF8Unsafe()
845 sIndex += 2; in lookupUTF8Unsafe()
857 const char16_t *s16, const uint8_t *s8, int32_t &sIndex, int32_t &sLength) { in nextPair()
865 sLength = sIndex in nextPair()
813 lookupUTF8(const uint16_t *table, UChar32 c, const uint8_t *s8, int32_t &sIndex, int32_t sLength) lookupUTF8() argument
836 lookupUTF8Unsafe(const uint16_t *table, UChar32 c, const uint8_t *s8, int32_t &sIndex) lookupUTF8Unsafe() argument
856 nextPair(const uint16_t *table, UChar32 c, uint32_t ce, const char16_t *s16, const uint8_t *s8, int32_t &sIndex, int32_t &sLength) nextPair() argument
[all...]
H A Dcollationfastlatin.h224 const uint8_t *s8, int32_t &sIndex, int32_t sLength);
226 const uint8_t *s8, int32_t &sIndex);
229 const char16_t *s16, const uint8_t *s8, int32_t &sIndex, int32_t &sLength);
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dcollationfastlatin.cpp814 const uint8_t *s8, int32_t &sIndex, int32_t sLength) { in lookupUTF8()
817 int32_t i2 = sIndex + 1; in lookupUTF8()
819 uint8_t t1 = s8[sIndex]; in lookupUTF8()
821 sIndex += 2; in lookupUTF8()
837 const uint8_t *s8, int32_t &sIndex) { in lookupUTF8Unsafe()
842 return table[((c - 0xc2) << 6) + s8[sIndex++]]; // 0080..017F in lookupUTF8Unsafe()
844 uint8_t t2 = s8[sIndex + 1]; in lookupUTF8Unsafe()
845 sIndex += 2; in lookupUTF8Unsafe()
857 const UChar *s16, const uint8_t *s8, int32_t &sIndex, int32_t &sLength) { in nextPair()
865 sLength = sIndex in nextPair()
813 lookupUTF8(const uint16_t *table, UChar32 c, const uint8_t *s8, int32_t &sIndex, int32_t sLength) lookupUTF8() argument
836 lookupUTF8Unsafe(const uint16_t *table, UChar32 c, const uint8_t *s8, int32_t &sIndex) lookupUTF8Unsafe() argument
856 nextPair(const uint16_t *table, UChar32 c, uint32_t ce, const UChar *s16, const uint8_t *s8, int32_t &sIndex, int32_t &sLength) nextPair() argument
[all...]
H A Dcollationfastlatin.h224 const uint8_t *s8, int32_t &sIndex, int32_t sLength);
226 const uint8_t *s8, int32_t &sIndex);
229 const UChar *s16, const uint8_t *s8, int32_t &sIndex, int32_t &sLength);
/third_party/skia/tests/
H A DPathOpsAngleIdeas.cpp526 int sIndex = (int) (smallestTs[1] < 1); in testQuadAngles()
527 REPORTER_ASSERT(reporter, smallestTs[sIndex ^ 1] == 1); in testQuadAngles()
528 double t = smallestTs[sIndex]; in testQuadAngles()
529 const SkDQuad& q = *quads[sIndex]; in testQuadAngles()
531 SkDVector end = rays[sIndex][1] - origin; in testQuadAngles()
537 SkDebugf("rayDist>endDist:%d sIndex==0:%d vDir[sIndex]<0:%d midXray<0:%d\n", in testQuadAngles()
538 rayDist > endDist, sIndex == 0, vDir[sIndex] < 0, midXray < 0); in testQuadAngles()
541 == SkScalarSignAsInt(SkDoubleToScalar(vDir[sIndex]))); in testQuadAngles()
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
H A DCodePointTrieTest.java350 int i, sIndex, countValues; in testTrieUTF16()
378 sIndex = 0; in testTrieUTF16()
380 while (sIndex < s.length()) { in testTrieUTF16()
381 c2 = s.codePointAt(sIndex); in testTrieUTF16()
382 sIndex += Character.charCount(c2); in testTrieUTF16()
403 sIndex = s.length(); in testTrieUTF16()
405 while (sIndex > 0) { in testTrieUTF16()
407 c2 = s.codePointBefore(sIndex); in testTrieUTF16()
408 sIndex -= Character.charCount(c2); in testTrieUTF16()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DCodePointTrieTest.java347 int i, sIndex, countValues; in testTrieUTF16()
375 sIndex = 0; in testTrieUTF16()
377 while (sIndex < s.length()) { in testTrieUTF16()
378 c2 = s.codePointAt(sIndex); in testTrieUTF16()
379 sIndex += Character.charCount(c2); in testTrieUTF16()
400 sIndex = s.length(); in testTrieUTF16()
402 while (sIndex > 0) { in testTrieUTF16()
404 c2 = s.codePointBefore(sIndex); in testTrieUTF16()
405 sIndex -= Character.charCount(c2); in testTrieUTF16()
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
H A DCollationFastLatin.java682 * Java returns a negative result (use the '~' operator) if sIndex is to be incremented.
683 * C++ modifies sIndex.
685 private static long nextPair(char[] table, int c, int ce, CharSequence s16, int sIndex) { in nextPair() argument
696 if(sIndex != s16.length()) { in nextPair()
699 int nextIndex = sIndex; in nextPair()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/
H A DCollationFastLatin.java686 * Java returns a negative result (use the '~' operator) if sIndex is to be incremented.
687 * C++ modifies sIndex.
689 private static long nextPair(char[] table, int c, int ce, CharSequence s16, int sIndex) { in nextPair() argument
700 if(sIndex != s16.length()) { in nextPair()
703 int nextIndex = sIndex; in nextPair()

Completed in 27 milliseconds

12