/third_party/icu/icu4c/source/i18n/ |
D | usearch.cpp | 126 inline int32_t getCE(const UStringSearch *strsrch, uint32_t sourcece) in getCE() argument 131 sourcece &= strsrch->ceMask; in getCE() 133 if (strsrch->toShift) { in getCE() 139 if (strsrch->variableTop > sourcece) { in getCE() 140 if (strsrch->strength >= UCOL_QUATERNARY) { in getCE() 147 } else if (strsrch->strength >= UCOL_QUATERNARY && sourcece == UCOL_IGNORABLE) { in getCE() 268 inline void initializePatternCETable(UStringSearch *strsrch, UErrorCode *status) in initializePatternCETable() argument 270 UPattern *pattern = &(strsrch->pattern); in initializePatternCETable() 274 UCollationElements *coleiter = strsrch->utilIter; in initializePatternCETable() 277 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternCETable() [all …]
|
D | usrchimp.h | 206 UBool usearch_handleNextExact(UStringSearch *strsrch, UErrorCode *status); 217 UBool usearch_handleNextCanonical(UStringSearch *strsrch, UErrorCode *status); 227 UBool usearch_handlePreviousExact(UStringSearch *strsrch, UErrorCode *status); 238 UBool usearch_handlePreviousCanonical(UStringSearch *strsrch,
|
/third_party/node/deps/icu-small/source/i18n/ |
D | usearch.cpp | 126 inline int32_t getCE(const UStringSearch *strsrch, uint32_t sourcece) in getCE() argument 131 sourcece &= strsrch->ceMask; in getCE() 133 if (strsrch->toShift) { in getCE() 139 if (strsrch->variableTop > sourcece) { in getCE() 140 if (strsrch->strength >= UCOL_QUATERNARY) { in getCE() 147 } else if (strsrch->strength >= UCOL_QUATERNARY && sourcece == UCOL_IGNORABLE) { in getCE() 268 inline void initializePatternCETable(UStringSearch *strsrch, UErrorCode *status) in initializePatternCETable() argument 270 UPattern *pattern = &(strsrch->pattern); in initializePatternCETable() 274 UCollationElements *coleiter = strsrch->utilIter; in initializePatternCETable() 277 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternCETable() [all …]
|
D | usrchimp.h | 206 UBool usearch_handleNextExact(UStringSearch *strsrch, UErrorCode *status); 217 UBool usearch_handleNextCanonical(UStringSearch *strsrch, UErrorCode *status); 227 UBool usearch_handlePreviousExact(UStringSearch *strsrch, UErrorCode *status); 238 UBool usearch_handlePreviousCanonical(UStringSearch *strsrch,
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | usearch.cpp | 149 inline int32_t getCE(const UStringSearch *strsrch, uint32_t sourcece) in getCE() argument 154 sourcece &= strsrch->ceMask; in getCE() 156 if (strsrch->toShift) { in getCE() 162 if (strsrch->variableTop > sourcece) { in getCE() 163 if (strsrch->strength >= UCOL_QUATERNARY) { in getCE() 170 } else if (strsrch->strength >= UCOL_QUATERNARY && sourcece == UCOL_IGNORABLE) { in getCE() 292 inline uint16_t initializePatternCETable(UStringSearch *strsrch, in initializePatternCETable() argument 295 UPattern *pattern = &(strsrch->pattern); in initializePatternCETable() 299 UCollationElements *coleiter = strsrch->utilIter; in initializePatternCETable() 302 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternCETable() [all …]
|
D | usrchimp.h | 212 UBool usearch_handleNextExact(UStringSearch *strsrch, UErrorCode *status); 223 UBool usearch_handleNextCanonical(UStringSearch *strsrch, UErrorCode *status); 233 UBool usearch_handlePreviousExact(UStringSearch *strsrch, UErrorCode *status); 244 UBool usearch_handlePreviousCanonical(UStringSearch *strsrch,
|
/third_party/icu/icu4c/source/test/intltest/ |
D | srchtest.cpp | 257 UBool StringSearchTest::assertEqualWithStringSearch(StringSearch *strsrch, in assertEqualWithStringSearch() argument 266 strsrch->setAttribute(USEARCH_ELEMENT_COMPARISON, search->elemCompare, status); in assertEqualWithStringSearch() 272 if (strsrch->getMatchedStart() != USEARCH_DONE || in assertEqualWithStringSearch() 273 strsrch->getMatchedLength() != 0) { in assertEqualWithStringSearch() 280 strsrch->next(status); in assertEqualWithStringSearch() 281 if (matchindex != strsrch->getMatchedStart() || in assertEqualWithStringSearch() 282 matchlength != strsrch->getMatchedLength()) { in assertEqualWithStringSearch() 283 char *str = toCharString(strsrch->getText()); in assertEqualWithStringSearch() 285 str = toCharString(strsrch->getPattern()); in assertEqualWithStringSearch() 288 strsrch->getMatchedStart(), strsrch->getMatchedLength(), in assertEqualWithStringSearch() [all …]
|
D | srchtest.h | 46 UBool assertEqualWithStringSearch( StringSearch *strsrch,
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | usrchtst.c | 349 static UBool assertEqualWithUStringSearch( UStringSearch *strsrch, in assertEqualWithUStringSearch() argument 361 usearch_setAttribute(strsrch, USEARCH_ELEMENT_COMPARISON, search.elemCompare, &status); in assertEqualWithUStringSearch() 367 if (usearch_getMatchedStart(strsrch) != USEARCH_DONE || in assertEqualWithUStringSearch() 368 usearch_getMatchedLength(strsrch) != 0) { in assertEqualWithUStringSearch() 374 usearch_next(strsrch, &status); in assertEqualWithUStringSearch() 375 if (matchindex != usearch_getMatchedStart(strsrch) || in assertEqualWithUStringSearch() 376 matchlength != usearch_getMatchedLength(strsrch)) { in assertEqualWithUStringSearch() 377 char *str = toCharString(usearch_getText(strsrch, &textlength)); in assertEqualWithUStringSearch() 379 str = toCharString(usearch_getPattern(strsrch, &textlength)); in assertEqualWithUStringSearch() 382 usearch_getMatchedStart(strsrch), usearch_getMatchedLength(strsrch), in assertEqualWithUStringSearch() [all …]
|
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/search/ |
D | SearchTest.java | 585 StringSearch strsrch; in assertCanonicalEqual() local 596 …strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertCanonicalEqual() 597 strsrch.setElementComparisonType(search.cmpType); in assertCanonicalEqual() 598 strsrch.setCanonical(true); in assertCanonicalEqual() 604 if (!assertEqualWithStringSearch(strsrch, search)) { in assertCanonicalEqual() 617 StringSearch strsrch; in assertEqual() local 627 …strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertEqual() 628 strsrch.setElementComparisonType(search.cmpType); in assertEqual() 634 if (!assertEqualWithStringSearch(strsrch, search)) { in assertEqual() 645 StringSearch strsrch; in assertEqualWithAttribute() local [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/search/ |
D | SearchTest.java | 588 StringSearch strsrch; in assertCanonicalEqual() local 599 …strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertCanonicalEqual() 600 strsrch.setElementComparisonType(search.cmpType); in assertCanonicalEqual() 601 strsrch.setCanonical(true); in assertCanonicalEqual() 607 if (!assertEqualWithStringSearch(strsrch, search)) { in assertCanonicalEqual() 620 StringSearch strsrch; in assertEqual() local 630 …strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertEqual() 631 strsrch.setElementComparisonType(search.cmpType); in assertEqual() 637 if (!assertEqualWithStringSearch(strsrch, search)) { in assertEqual() 648 StringSearch strsrch; in assertEqualWithAttribute() local [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/unicode/ |
D | usearch.h | 398 U_CAPI void U_EXPORT2 usearch_setOffset(UStringSearch *strsrch, 410 U_CAPI int32_t U_EXPORT2 usearch_getOffset(const UStringSearch *strsrch); 423 U_CAPI void U_EXPORT2 usearch_setAttribute(UStringSearch *strsrch, 437 const UStringSearch *strsrch, 460 const UStringSearch *strsrch); 480 const UStringSearch *strsrch); 507 U_CAPI int32_t U_EXPORT2 usearch_getMatchedText(const UStringSearch *strsrch, 529 U_CAPI void U_EXPORT2 usearch_setBreakIterator(UStringSearch *strsrch, 545 const UStringSearch *strsrch); 566 U_CAPI void U_EXPORT2 usearch_setText( UStringSearch *strsrch, [all …]
|
/third_party/node/deps/icu-small/source/i18n/unicode/ |
D | usearch.h | 399 U_CAPI void U_EXPORT2 usearch_setOffset(UStringSearch *strsrch, 411 U_CAPI int32_t U_EXPORT2 usearch_getOffset(const UStringSearch *strsrch); 424 U_CAPI void U_EXPORT2 usearch_setAttribute(UStringSearch *strsrch, 438 const UStringSearch *strsrch, 461 const UStringSearch *strsrch); 481 const UStringSearch *strsrch); 508 U_CAPI int32_t U_EXPORT2 usearch_getMatchedText(const UStringSearch *strsrch, 530 U_CAPI void U_EXPORT2 usearch_setBreakIterator(UStringSearch *strsrch, 546 const UStringSearch *strsrch); 567 U_CAPI void U_EXPORT2 usearch_setText( UStringSearch *strsrch, [all …]
|
/third_party/icu/icu4c/source/i18n/unicode/ |
D | usearch.h | 399 U_CAPI void U_EXPORT2 usearch_setOffset(UStringSearch *strsrch, 411 U_CAPI int32_t U_EXPORT2 usearch_getOffset(const UStringSearch *strsrch); 424 U_CAPI void U_EXPORT2 usearch_setAttribute(UStringSearch *strsrch, 438 const UStringSearch *strsrch, 461 const UStringSearch *strsrch); 481 const UStringSearch *strsrch); 508 U_CAPI int32_t U_EXPORT2 usearch_getMatchedText(const UStringSearch *strsrch, 530 U_CAPI void U_EXPORT2 usearch_setBreakIterator(UStringSearch *strsrch, 546 const UStringSearch *strsrch); 567 U_CAPI void U_EXPORT2 usearch_setText( UStringSearch *strsrch, [all …]
|
/third_party/skia/third_party/externals/icu/source/samples/strsrch/ |
D | readme.txt | 5 strsrch: a sample program which finds the occurrences of a pattern string in a source string, using… 12 strsrch.c Main source file 13 strsrch.sln Windows MSVC workspace. Double-click this to get started. 14 strsrch.vcproj Windows MSVC project file 16 To Build strsrch on Windows 18 2. In MSVC, open the workspace file icu\samples\strsrch\strsrch.sln 27 3. cd into the strsrch directory, e.g. 28 cd c:\icu\source\samples\strsrch\debug 30 strsrch [options*] -source source_string -pattern pattern_string 33 1. Build ICU. strsrch is built automatically by default unless samples are turned off. [all …]
|
D | Makefile | 15 TARGET=strsrch 18 OBJECTS=strsrch.o
|
/third_party/icu/icu4c/source/samples/strsrch/ |
D | readme.txt | 5 strsrch: a sample program which finds the occurrences of a pattern string in a source string, using… 12 strsrch.c Main source file 13 strsrch.sln Windows MSVC workspace. Double-click this to get started. 14 strsrch.vcproj Windows MSVC project file 16 To Build strsrch on Windows 18 2. In MSVC, open the workspace file icu\samples\strsrch\strsrch.sln 27 3. cd into the strsrch directory, e.g. 28 cd c:\icu\source\samples\strsrch\debug 30 strsrch [options*] -source source_string -pattern pattern_string 33 1. Build ICU. strsrch is built automatically by default unless samples are turned off. [all …]
|
D | Makefile | 15 TARGET=strsrch 18 OBJECTS=strsrch.o
|
D | strsrch.sln | 3 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "strsrch", "strsrch.vcxproj", "{E97790D1-7ABE-4…
|
/third_party/icu/icu4c/source/samples/all/ |
D | samplecheck.bat | 59 set SAMPLE_STRSRCH=%ICU_SAMPLESDIR%\strsrch\%ICU_ARCH%\%ICU_DBRL%\strsrch.exe 159 @set THT=strsrch
|
D | all.sln | 25 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "strsrch", "..\strsrch\strsrch.vcxproj", "{E977…
|
/third_party/skia/third_party/externals/icu/source/samples/all/ |
D | samplecheck.bat | 59 set SAMPLE_STRSRCH=%ICU_SAMPLESDIR%\strsrch\%ICU_ARCH%\%ICU_DBRL%\strsrch.exe 159 @set THT=strsrch
|
/third_party/icu/icu4c/source/samples/ |
D | Makefile.in | 26 ALLSUBDIRS = cal citer coll csdet date datecal ufortune uresb datefmt msgfmt numfmt props strsrch t…
|
D | readme.txt | 42 strsrch - demonstrates how to search for patterns in Unicode text using the usearch interface.
|
/third_party/skia/third_party/externals/icu/source/samples/ |
D | readme.txt | 32 strsrch - demonstrates how to search for patterns in Unicode text using the usearch interface.
|