Home
last modified time | relevance | path

Searched refs:startPos (Results 1 – 25 of 167) sorted by relevance

1234567

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/
DUTF16Test.java1040 for (int startPos = 0; startPos != -1 && startPos < test1.length();) in TestIndexOf()
1042 startPos = UTF16.indexOf(test1, test2, startPos); in TestIndexOf()
1043 if (startPos >= 0) { in TestIndexOf()
1045 startPos += 4; in TestIndexOf()
1054 for (int startPos = 10; startPos != -1 && startPos < test1.length();) in TestIndexOf()
1056 startPos = UTF16.indexOf(test1, test2, startPos); in TestIndexOf()
1057 if (startPos >= 0) { in TestIndexOf()
1059 startPos += 4; in TestIndexOf()
1068 for (int startPos = 0; in TestIndexOf()
1069 startPos != -1 && startPos < test3.length();) { in TestIndexOf()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUTF16Test.java1037 for (int startPos = 0; startPos != -1 && startPos < test1.length();) in TestIndexOf()
1039 startPos = UTF16.indexOf(test1, test2, startPos); in TestIndexOf()
1040 if (startPos >= 0) { in TestIndexOf()
1042 startPos += 4; in TestIndexOf()
1051 for (int startPos = 10; startPos != -1 && startPos < test1.length();) in TestIndexOf()
1053 startPos = UTF16.indexOf(test1, test2, startPos); in TestIndexOf()
1054 if (startPos >= 0) { in TestIndexOf()
1056 startPos += 4; in TestIndexOf()
1065 for (int startPos = 0; in TestIndexOf()
1066 startPos != -1 && startPos < test3.length();) { in TestIndexOf()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dustrtest.cpp720 int32_t startPos = 0; in TestSearching() local
722 startPos != -1 && startPos < test1.length(); in TestSearching()
723 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
728 for ( occurrences = 0, startPos = 10; in TestSearching()
729 startPos != -1 && startPos < test1.length(); in TestSearching()
730 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
737 for ( occurrences = 0, startPos = 5; in TestSearching()
738 startPos != -1 && startPos < test1.length(); in TestSearching()
739 …(startPos = test1.indexOf(test2, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos +=… in TestSearching()
746 for ( startPos=0, occurrences=0; in TestSearching()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/common/
Drbbi_cache.cpp124 void RuleBasedBreakIterator::DictionaryCache::populateDictionary(int32_t startPos, int32_t endPos, in populateDictionary() argument
126 if ((endPos - startPos) <= 1) { in populateDictionary()
134 int32_t rangeStart = startPos; in populateDictionary()
183 if (startPos < fBreaks.elementAti(0)) { in populateDictionary()
188 fBreaks.insertElementAt(startPos, 0, status); in populateDictionary()
237 void RuleBasedBreakIterator::BreakCache::following(int32_t startPos, UErrorCode &status) { in following() argument
241 if (startPos == fTextIdx || seek(startPos) || populateNear(startPos, status)) { in following()
254 void RuleBasedBreakIterator::BreakCache::preceding(int32_t startPos, UErrorCode &status) { in preceding() argument
258 if (startPos == fTextIdx || seek(startPos) || populateNear(startPos, status)) { in preceding()
259 if (startPos == fTextIdx) { in preceding()
[all …]
/third_party/node/deps/icu-small/source/common/
Drbbi_cache.cpp120 void RuleBasedBreakIterator::DictionaryCache::populateDictionary(int32_t startPos, int32_t endPos, in populateDictionary() argument
122 if ((endPos - startPos) <= 1) { in populateDictionary()
130 int32_t rangeStart = startPos; in populateDictionary()
181 if (startPos < fBreaks.elementAti(0)) { in populateDictionary()
186 fBreaks.insertElementAt(startPos, 0, status); in populateDictionary()
235 void RuleBasedBreakIterator::BreakCache::following(int32_t startPos, UErrorCode &status) { in following() argument
239 if (startPos == fTextIdx || seek(startPos) || populateNear(startPos, status)) { in following()
252 void RuleBasedBreakIterator::BreakCache::preceding(int32_t startPos, UErrorCode &status) { in preceding() argument
256 if (startPos == fTextIdx || seek(startPos) || populateNear(startPos, status)) { in preceding()
257 if (startPos == fTextIdx) { in preceding()
[all …]
Dlstmbe.cpp476 virtual void vectorize(UText *text, int32_t startPos, int32_t endPos,
509 virtual void vectorize(UText *text, int32_t startPos, int32_t endPos,
519 UText *text, int32_t startPos, int32_t endPos, in vectorize() argument
522 if (offsets.ensureCapacity(endPos - startPos, status) && in vectorize()
523 indices.ensureCapacity(endPos - startPos, status)) { in vectorize()
525 utext_setNativeIndex(text, startPos); in vectorize()
548 virtual void vectorize(UText *text, int32_t startPos, int32_t endPos,
560 UText *text, int32_t startPos, int32_t endPos, in vectorize() argument
564 if (!offsets.ensureCapacity(endPos - startPos, status) || in vectorize()
565 !indices.ensureCapacity(endPos - startPos, status)) { in vectorize()
[all …]
/third_party/icu/icu4c/source/common/
Drbbi_cache.cpp120 void RuleBasedBreakIterator::DictionaryCache::populateDictionary(int32_t startPos, int32_t endPos, in populateDictionary() argument
122 if ((endPos - startPos) <= 1) { in populateDictionary()
130 int32_t rangeStart = startPos; in populateDictionary()
181 if (startPos < fBreaks.elementAti(0)) { in populateDictionary()
186 fBreaks.insertElementAt(startPos, 0, status); in populateDictionary()
235 void RuleBasedBreakIterator::BreakCache::following(int32_t startPos, UErrorCode &status) { in following() argument
239 if (startPos == fTextIdx || seek(startPos) || populateNear(startPos, status)) { in following()
252 void RuleBasedBreakIterator::BreakCache::preceding(int32_t startPos, UErrorCode &status) { in preceding() argument
256 if (startPos == fTextIdx || seek(startPos) || populateNear(startPos, status)) { in preceding()
257 if (startPos == fTextIdx) { in preceding()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Drbbi_cache.cpp120 void RuleBasedBreakIterator::DictionaryCache::populateDictionary(int32_t startPos, int32_t endPos, in populateDictionary() argument
122 if ((endPos - startPos) <= 1) { in populateDictionary()
130 int32_t rangeStart = startPos; in populateDictionary()
181 if (startPos < fBreaks.elementAti(0)) { in populateDictionary()
186 fBreaks.insertElementAt(startPos, 0, status); in populateDictionary()
235 void RuleBasedBreakIterator::BreakCache::following(int32_t startPos, UErrorCode &status) { in following() argument
239 if (startPos == fTextIdx || seek(startPos) || populateNear(startPos, status)) { in following()
252 void RuleBasedBreakIterator::BreakCache::preceding(int32_t startPos, UErrorCode &status) { in preceding() argument
256 if (startPos == fTextIdx || seek(startPos) || populateNear(startPos, status)) { in preceding()
257 if (startPos == fTextIdx) { in preceding()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DCjkBreakEngine.java85 public int divideUpDictionaryRange(CharacterIterator inText, int startPos, int endPos, in divideUpDictionaryRange() argument
87 if (startPos >= endPos) { in divideUpDictionaryRange()
91 inText.setIndex(startPos); in divideUpDictionaryRange()
93 int inputLength = endPos - startPos; in divideUpDictionaryRange()
96 inText.setIndex(startPos); in divideUpDictionaryRange()
224 if (foundBreaks.size() == 0 || foundBreaks.peek() < startPos) { in divideUpDictionaryRange()
230 int pos = charPositions[t_boundary[i]] + startPos; in divideUpDictionaryRange()
231 if (!(foundBreaks.contains(pos) || pos == startPos)) { in divideUpDictionaryRange()
232 foundBreaks.push(charPositions[t_boundary[i]] + startPos); in divideUpDictionaryRange()
DRuleBasedBreakIterator.java436 public int following(int startPos) { in following() argument
439 if (startPos < fText.getBeginIndex()) { in following()
445 startPos = CISetIndex32(fText, startPos); in following()
446 fBreakCache.following(startPos); in following()
1175 void populateDictionary(int startPos, int endPos, in populateDictionary() argument
1177 if ((endPos - startPos) <= 1) { in populateDictionary()
1185 int rangeStart = startPos; in populateDictionary()
1231 if (startPos < fBreaks.elementAt(0)) { in populateDictionary()
1236 fBreaks.offer(startPos); in populateDictionary()
1359 void following(int startPos) { in following() argument
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCjkBreakEngine.java84 public int divideUpDictionaryRange(CharacterIterator inText, int startPos, int endPos, in divideUpDictionaryRange() argument
86 if (startPos >= endPos) { in divideUpDictionaryRange()
90 inText.setIndex(startPos); in divideUpDictionaryRange()
92 int inputLength = endPos - startPos; in divideUpDictionaryRange()
95 inText.setIndex(startPos); in divideUpDictionaryRange()
223 if (foundBreaks.size() == 0 || foundBreaks.peek() < startPos) { in divideUpDictionaryRange()
229 int pos = charPositions[t_boundary[i]] + startPos; in divideUpDictionaryRange()
230 if (!(foundBreaks.contains(pos) || pos == startPos)) { in divideUpDictionaryRange()
231 foundBreaks.push(charPositions[t_boundary[i]] + startPos); in divideUpDictionaryRange()
DRuleBasedBreakIterator.java456 public int following(int startPos) { in following() argument
459 if (startPos < fText.getBeginIndex()) { in following()
465 startPos = CISetIndex32(fText, startPos); in following()
466 fBreakCache.following(startPos); in following()
1148 void populateDictionary(int startPos, int endPos, in populateDictionary() argument
1150 if ((endPos - startPos) <= 1) { in populateDictionary()
1158 int rangeStart = startPos; in populateDictionary()
1205 if (startPos < fBreaks.elementAt(0)) { in populateDictionary()
1210 fBreaks.offer(startPos); in populateDictionary()
1333 void following(int startPos) { in following() argument
[all …]
/third_party/icu/icu4c/source/i18n/
Drematch.cpp644 int64_t startPos = fMatchEnd; in find() local
645 if (startPos==0) { in find()
646 startPos = fActiveStart; in find()
656 if (startPos >= fActiveLimit) { in find()
661 UTEXT_SETNATIVEINDEX(fInputText, startPos); in find()
663 startPos = UTEXT_GETNATIVEINDEX(fInputText); in find()
683 if (startPos > testStartLimit) { in find()
695 U_ASSERT(startPos >= 0); in find()
702 MatchAt(startPos, FALSE, status); in find()
709 if (startPos >= testStartLimit) { in find()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Drematch.cpp644 int64_t startPos = fMatchEnd; in find() local
645 if (startPos==0) { in find()
646 startPos = fActiveStart; in find()
656 if (startPos >= fActiveLimit) { in find()
661 UTEXT_SETNATIVEINDEX(fInputText, startPos); in find()
663 startPos = UTEXT_GETNATIVEINDEX(fInputText); in find()
683 if (startPos > testStartLimit) { in find()
695 U_ASSERT(startPos >= 0); in find()
702 MatchAt(startPos, FALSE, status); in find()
709 if (startPos >= testStartLimit) { in find()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Drematch.cpp644 int64_t startPos = fMatchEnd; in find() local
645 if (startPos==0) { in find()
646 startPos = fActiveStart; in find()
656 if (startPos >= fActiveLimit) { in find()
661 UTEXT_SETNATIVEINDEX(fInputText, startPos); in find()
663 startPos = UTEXT_GETNATIVEINDEX(fInputText); in find()
683 if (startPos > testStartLimit) { in find()
695 U_ASSERT(startPos >= 0); in find()
702 MatchAt(startPos, FALSE, status); in find()
709 if (startPos >= testStartLimit) { in find()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Drematch.cpp642 int64_t startPos = fMatchEnd; in find() local
643 if (startPos==0) { in find()
644 startPos = fActiveStart; in find()
654 if (startPos >= fActiveLimit) { in find()
659 UTEXT_SETNATIVEINDEX(fInputText, startPos); in find()
661 startPos = UTEXT_GETNATIVEINDEX(fInputText); in find()
681 if (startPos > testStartLimit) { in find()
693 U_ASSERT(startPos >= 0); in find()
700 MatchAt(startPos, FALSE, status); in find()
707 if (startPos >= testStartLimit) { in find()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_query/
DvktRayQueryBuiltinTests.cpp1915 tcu::UVec2 startPos = tcu::UVec2(0, 0); in initAccelerationStructures() local
1936 const deUint32 n = width * startPos.y() + startPos.x(); in initAccelerationStructures()
1938 const float x0 = float(startPos.x() + 0) / float(width); in initAccelerationStructures()
1939 const float y0 = float(startPos.y() + 0) / float(height); in initAccelerationStructures()
1940 const float x1 = float(startPos.x() + 1) / float(width); in initAccelerationStructures()
1941 const float y1 = float(startPos.y() + 1) / float(height); in initAccelerationStructures()
1958 startPos.y() = m / width; in initAccelerationStructures()
1959 startPos.x() = m % width; in initAccelerationStructures()
2072 tcu::UVec2 startPos = tcu::UVec2(0, 0); in initAccelerationStructures() local
2095 const deUint32 n = width * startPos.y() + startPos.x(); in initAccelerationStructures()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_query/
DvktRayQueryBuiltinTests.cpp1915 tcu::UVec2 startPos = tcu::UVec2(0, 0); in initAccelerationStructures() local
1936 const deUint32 n = width * startPos.y() + startPos.x(); in initAccelerationStructures()
1938 const float x0 = float(startPos.x() + 0) / float(width); in initAccelerationStructures()
1939 const float y0 = float(startPos.y() + 0) / float(height); in initAccelerationStructures()
1940 const float x1 = float(startPos.x() + 1) / float(width); in initAccelerationStructures()
1941 const float y1 = float(startPos.y() + 1) / float(height); in initAccelerationStructures()
1958 startPos.y() = m / width; in initAccelerationStructures()
1959 startPos.x() = m % width; in initAccelerationStructures()
2072 tcu::UVec2 startPos = tcu::UVec2(0, 0); in initAccelerationStructures() local
2095 const deUint32 n = width * startPos.y() + startPos.x(); in initAccelerationStructures()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_tracing/
DvktRayTracingBuiltinTests.cpp220 tcu::UVec2& startPos);
1262 tcu::UVec2& startPos) in initBottomAccelerationStructure() argument
1294 const deUint32 n = m_data.width * startPos.y() + startPos.x(); in initBottomAccelerationStructure()
1295 const float x0 = float(startPos.x() + 0) / float(m_data.width); in initBottomAccelerationStructure()
1296 const float y0 = float(startPos.y() + 0) / float(m_data.height); in initBottomAccelerationStructure()
1297 const float x1 = float(startPos.x() + 1) / float(m_data.width); in initBottomAccelerationStructure()
1298 const float y1 = float(startPos.y() + 1) / float(m_data.height); in initBottomAccelerationStructure()
1316 startPos.y() = m / m_data.width; in initBottomAccelerationStructure()
1317 startPos.x() = m % m_data.width; in initBottomAccelerationStructure()
1345 const deUint32 n = m_data.width * startPos.y() + startPos.x(); in initBottomAccelerationStructure()
[all …]
DvktRayTracingBuildTests.cpp155 tcu::UVec2& startPos,
313 tcu::UVec2& startPos, in initBottomAccelerationStructure() argument
328 const deUint32 n = m_data.width * startPos.y() + startPos.x(); in initBottomAccelerationStructure()
329 const float x0 = float(startPos.x() + 0) / float(m_data.width); in initBottomAccelerationStructure()
330 const float y0 = float(startPos.y() + 0) / float(m_data.height); in initBottomAccelerationStructure()
331 const float x1 = float(startPos.x() + 1) / float(m_data.width); in initBottomAccelerationStructure()
332 const float y1 = float(startPos.y() + 1) / float(m_data.height); in initBottomAccelerationStructure()
351 startPos.y() = m / m_data.width; in initBottomAccelerationStructure()
352 startPos.x() = m % m_data.width; in initBottomAccelerationStructure()
363 tcu::UVec2 startPos {}; in initBottomAccelerationStructures() local
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/
DvktRayTracingBuiltinTests.cpp220 tcu::UVec2& startPos);
1262 tcu::UVec2& startPos) in initBottomAccelerationStructure() argument
1294 const deUint32 n = m_data.width * startPos.y() + startPos.x(); in initBottomAccelerationStructure()
1295 const float x0 = float(startPos.x() + 0) / float(m_data.width); in initBottomAccelerationStructure()
1296 const float y0 = float(startPos.y() + 0) / float(m_data.height); in initBottomAccelerationStructure()
1297 const float x1 = float(startPos.x() + 1) / float(m_data.width); in initBottomAccelerationStructure()
1298 const float y1 = float(startPos.y() + 1) / float(m_data.height); in initBottomAccelerationStructure()
1316 startPos.y() = m / m_data.width; in initBottomAccelerationStructure()
1317 startPos.x() = m % m_data.width; in initBottomAccelerationStructure()
1345 const deUint32 n = m_data.width * startPos.y() + startPos.x(); in initBottomAccelerationStructure()
[all …]
DvktRayTracingBuildTests.cpp155 tcu::UVec2& startPos,
313 tcu::UVec2& startPos, in initBottomAccelerationStructure() argument
328 const deUint32 n = m_data.width * startPos.y() + startPos.x(); in initBottomAccelerationStructure()
329 const float x0 = float(startPos.x() + 0) / float(m_data.width); in initBottomAccelerationStructure()
330 const float y0 = float(startPos.y() + 0) / float(m_data.height); in initBottomAccelerationStructure()
331 const float x1 = float(startPos.x() + 1) / float(m_data.width); in initBottomAccelerationStructure()
332 const float y1 = float(startPos.y() + 1) / float(m_data.height); in initBottomAccelerationStructure()
351 startPos.y() = m / m_data.width; in initBottomAccelerationStructure()
352 startPos.x() = m % m_data.width; in initBottomAccelerationStructure()
363 tcu::UVec2 startPos {}; in initBottomAccelerationStructures() local
[all …]
DvktRayTracingMemGuaranteeTests.cpp152 tcu::UVec2& startPos);
561 tcu::UVec2& startPos) in initBottomAccelerationStructure() argument
579 const deUint32 n = m_data.width * startPos.y() + startPos.x(); in initBottomAccelerationStructure()
580 const float x0 = float(startPos.x() + 0) / float(m_data.width); in initBottomAccelerationStructure()
581 const float y0 = float(startPos.y() + 0) / float(m_data.height); in initBottomAccelerationStructure()
582 const float x1 = float(startPos.x() + 1) / float(m_data.width); in initBottomAccelerationStructure()
583 const float y1 = float(startPos.y() + 1) / float(m_data.height); in initBottomAccelerationStructure()
589 startPos.y() = m / m_data.width; in initBottomAccelerationStructure()
590 startPos.x() = m % m_data.width; in initBottomAccelerationStructure()
603 tcu::UVec2 startPos; in initBottomAccelerationStructures() local
[all …]
/third_party/node/deps/cjs-module-lexer/
Dlexer.js117 const startPos = pos;
118 if (tryParseRequire(Import) && keywordStart(startPos))
119 tryBacktrackAddStarExportBinding(startPos - 1);
124 const startPos = pos;
129 if (tryParseRequire(Import) && keywordStart(startPos)) {
130 tryBacktrackAddStarExportBinding(startPos - 1);
881 const startPos = pos;
886 _exports.add(decode(source.slice(startPos, endPos)));
897 const startPos = pos;
905 _exports.add(decode(source.slice(startPos, endPos)));
[all …]
/third_party/typescript/src/services/formatting/
DformattingScanner.ts28 …getFormattingScanner<T>(text: string, languageVariant: LanguageVariant, startPos: number, endPos: …
32 scanner.setTextPos(startPos);
61 const isStarted = scanner.getStartPos() !== startPos;
274 const startPos = lastTokenInfo ? lastTokenInfo.token.pos : scanner.getStartPos(); constant
275 return startPos < endPos && current !== SyntaxKind.EndOfFileToken && !isTrivia(current);

1234567