Home
last modified time | relevance | path

Searched refs:utext_getNativeIndex (Results 1 – 14 of 14) sorted by relevance

/external/icu/icu4c/source/common/
Ddictbe.cpp58 int32_t start = (int32_t)utext_getNativeIndex(text); in findBreaks()
63 while((current = (int32_t)utext_getNativeIndex(text)) < endPos && fSet.contains(c)) { in findBreaks()
136 int32_t start = (int32_t)utext_getNativeIndex(text); in candidates()
232 if (utext_getNativeIndex(text) >= rangeEnd) { in divideUpDictionaryRange()
247 while (U_SUCCESS(status) && (current = (int32_t)utext_getNativeIndex(text)) < rangeEnd) { in divideUpDictionaryRange()
263 if ((int32_t)utext_getNativeIndex(text) >= rangeEnd) { in divideUpDictionaryRange()
276 if ((int32_t)utext_getNativeIndex(text) >= rangeEnd) { in divideUpDictionaryRange()
306 …if ((int32_t)utext_getNativeIndex(text) < rangeEnd && cpWordLength < THAI_ROOT_COMBINE_THRESHOLD)… in divideUpDictionaryRange()
318 int32_t pcIndex = (int32_t)utext_getNativeIndex(text); in divideUpDictionaryRange()
320 int32_t pcSize = (int32_t)utext_getNativeIndex(text) - pcIndex; in divideUpDictionaryRange()
[all …]
Ddictionarydata.cpp50 int32_t startingTextIndex = (int32_t)utext_getNativeIndex(text); in matches()
56 int32_t lengthMatched = (int32_t)utext_getNativeIndex(text) - startingTextIndex; in matches()
117 int32_t startingTextIndex = (int32_t)utext_getNativeIndex(text); in matches()
123 int32_t lengthMatched = (int32_t)utext_getNativeIndex(text) - startingTextIndex; in matches()
Drbbi.cpp506 int64_t pos = utext_getNativeIndex(fText); in refreshInputText()
513 if (utext_getNativeIndex(fText) != pos) { in refreshInputText()
615 startPos = (int32_t)utext_getNativeIndex(fText); in following()
637 int32_t adjustedOffset = utext_getNativeIndex(fText); in preceding()
664 int32_t adjustedOffset = utext_getNativeIndex(fText); in isBoundary()
857 RBBIDebugPrintf(" %4ld ", utext_getNativeIndex(fText)); in handleNext()
933 result = (int32_t)utext_getNativeIndex(fText); in handleNext()
1031 RBBIDebugPrintf(" %4d ", (int32_t)utext_getNativeIndex(fText)); in handlePrevious()
Dfilteredbrk.cpp283 bestPosn = utext_getNativeIndex(fText.getAlias()); in breakExceptionAt()
292 bestPosn = utext_getNativeIndex(fText.getAlias()); in breakExceptionAt()
Dbrkeng.cpp90 while((int32_t)utext_getNativeIndex(text) < endPos && fHandled[breakType]->contains(c)) { in findBreaks()
Dutext.cpp99 utext_getNativeIndex(const UText *ut) { in utext_getNativeIndex() function
451 if (utext_getNativeIndex(a) != utext_getNativeIndex(b)) { in utext_equals()
2765 int64_t ix = utext_getNativeIndex((UText *)src); in charIterTextClone()
/external/icu/icu4c/source/test/intltest/
Dutxttest.cpp457 uti = utext_getNativeIndex(targetUT); in TestCopyMove()
466 uti = utext_getNativeIndex(targetUT); in TestCopyMove()
534 uti = utext_getNativeIndex(targetUT); in TestReplace()
540 uti = utext_getNativeIndex(targetUT); in TestReplace()
610 foundIndex = utext_getNativeIndex(ut); in TestAccessNoClone()
645 foundIndex = utext_getNativeIndex(ut); in TestAccessNoClone()
651 len = utext_getNativeIndex(ut); in TestAccessNoClone()
658 foundIndex = utext_getNativeIndex(ut); in TestAccessNoClone()
671 foundIndex = utext_getNativeIndex(ut); in TestAccessNoClone()
679 foundIndex = utext_getNativeIndex(ut); in TestAccessNoClone()
[all …]
Dregextst.cpp124 int64_t oldIndex = utext_getNativeIndex(text); in utextToPrintable()
2019 REGEX_ASSERT(utext_getNativeIndex(result) == 0); in API_Match_UTF8()
2026 REGEX_ASSERT(utext_getNativeIndex(result) == 2); in API_Match_UTF8()
2034 REGEX_ASSERT(utext_getNativeIndex(result) == 2); in API_Match_UTF8()
2042 REGEX_ASSERT(utext_getNativeIndex(result) == 4); in API_Match_UTF8()
2050 REGEX_ASSERT(utext_getNativeIndex(result) == 4); in API_Match_UTF8()
2058 REGEX_ASSERT(utext_getNativeIndex(result) == 8); in API_Match_UTF8()
2066 REGEX_ASSERT(utext_getNativeIndex(result) == 8); in API_Match_UTF8()
5049 REGEX_ASSERT(utext_getNativeIndex(actual) == 6); in PreAllocatedUTextCAPI()
5058 REGEX_ASSERT(utext_getNativeIndex(actual) == 9); // position of " interior " in PreAllocatedUTextCAPI()
[all …]
Drbbitst.cpp275 for (int j = 0; j < utext_nativeLength(tstr); j=utext_getNativeIndex(tstr)) { in printStringBreaks()
849 while (textMap->size() < utext_getNativeIndex(textToBreak)) { in setUTF8()
1067 int32_t j = utext_getNativeIndex(t->textToBreak) - 1; in executeTest()
/external/icu/icu4c/source/test/cintltst/
Dutexttst.c152 i = utext_getNativeIndex(uta); in TestAPI()
158 i = utext_getNativeIndex(uta); in TestAPI()
163 i = utext_getNativeIndex(uta); in TestAPI()
168 i = utext_getNativeIndex(uta); in TestAPI()
Dreapits.c1784 … TEST_ASSERT(utext_getNativeIndex(actual) == 6); /* index of "abc " within "noise abc ..." */ in TestUTextAPI()
1796 …TEST_ASSERT(9 == utext_getNativeIndex(actual)); /* index of " interior " within "noise abc inte… in TestUTextAPI()
/external/icu/icu4c/source/common/unicode/
Dutext.h566 utext_getNativeIndex(const UText *ut);
Durename.h1674 #define utext_getNativeIndex U_ICU_ENTRY_POINT_RENAME(utext_getNativeIndex) macro
/external/icu/icu4c/source/i18n/
Drematch.cpp1931 int64_t pos = utext_getNativeIndex(fInputText); in refreshInputText()
1940 pos = utext_getNativeIndex(fAltInputText); in refreshInputText()
3703 if (utext_getNativeIndex(fAltInputText) >= groupEndIdx) { in MatchAt()
3707 if (utext_getNativeIndex(fInputText) >= fActiveLimit) { in MatchAt()
3752 … if (!captureGroupItr.inExpansion() && utext_getNativeIndex(fAltInputText) >= groupEndIdx) { in MatchAt()
3756 … if (!inputItr.inExpansion() && utext_getNativeIndex(fInputText) >= fActiveLimit) { in MatchAt()