/external/icu/icu4c/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,
|
/external/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,
|
/external/icu/icu4c/source/test/cintltst/ |
D | usrchtst.c | 338 static UBool assertEqualWithUStringSearch( UStringSearch *strsrch, in assertEqualWithUStringSearch() argument 350 usearch_setAttribute(strsrch, USEARCH_ELEMENT_COMPARISON, search.elemCompare, &status); in assertEqualWithUStringSearch() 356 if (usearch_getMatchedStart(strsrch) != USEARCH_DONE || in assertEqualWithUStringSearch() 357 usearch_getMatchedLength(strsrch) != 0) { in assertEqualWithUStringSearch() 363 usearch_next(strsrch, &status); in assertEqualWithUStringSearch() 364 if (matchindex != usearch_getMatchedStart(strsrch) || in assertEqualWithUStringSearch() 365 matchlength != (uint32_t)usearch_getMatchedLength(strsrch)) { in assertEqualWithUStringSearch() 366 char *str = toCharString(usearch_getText(strsrch, &textlength)); in assertEqualWithUStringSearch() 368 str = toCharString(usearch_getPattern(strsrch, &textlength)); in assertEqualWithUStringSearch() 371 usearch_getMatchedStart(strsrch), usearch_getMatchedLength(strsrch), in assertEqualWithUStringSearch() [all …]
|
/external/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 …]
|
/external/icu/android_icu4j/src/main/tests/android/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 …]
|
/external/icu/libandroidicu/include/unicode/ |
D | usearch.h | 386 U_STABLE void U_EXPORT2 usearch_setOffset(UStringSearch *strsrch, 398 U_STABLE int32_t U_EXPORT2 usearch_getOffset(const UStringSearch *strsrch); 411 U_STABLE void U_EXPORT2 usearch_setAttribute(UStringSearch *strsrch, 425 const UStringSearch *strsrch, 448 const UStringSearch *strsrch); 468 const UStringSearch *strsrch); 495 U_STABLE int32_t U_EXPORT2 usearch_getMatchedText(const UStringSearch *strsrch, 517 U_STABLE void U_EXPORT2 usearch_setBreakIterator(UStringSearch *strsrch, 533 const UStringSearch *strsrch); 550 U_STABLE void U_EXPORT2 usearch_setText( UStringSearch *strsrch, [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | usearch.h | 386 U_STABLE void U_EXPORT2 usearch_setOffset(UStringSearch *strsrch, 398 U_STABLE int32_t U_EXPORT2 usearch_getOffset(const UStringSearch *strsrch); 411 U_STABLE void U_EXPORT2 usearch_setAttribute(UStringSearch *strsrch, 425 const UStringSearch *strsrch, 448 const UStringSearch *strsrch); 468 const UStringSearch *strsrch); 495 U_STABLE int32_t U_EXPORT2 usearch_getMatchedText(const UStringSearch *strsrch, 517 U_STABLE void U_EXPORT2 usearch_setBreakIterator(UStringSearch *strsrch, 533 const UStringSearch *strsrch); 550 U_STABLE void U_EXPORT2 usearch_setText( UStringSearch *strsrch, [all …]
|
/external/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…
|
/external/icu/libandroidicu/static_shim/ |
D | shim.cpp | 2490 int32_t usearch_first_android(UStringSearch * strsrch, UErrorCode * status) { in usearch_first_android() argument 2491 return usearch_first(strsrch, status); in usearch_first_android() 2493 int32_t usearch_following_android(UStringSearch * strsrch, int32_t position, UErrorCode * status) { in usearch_following_android() argument 2494 return usearch_following(strsrch, position, status); in usearch_following_android() 2496 USearchAttributeValue usearch_getAttribute_android(const UStringSearch * strsrch, USearchAttribute … in usearch_getAttribute_android() argument 2497 return usearch_getAttribute(strsrch, attribute); in usearch_getAttribute_android() 2499 const UBreakIterator * usearch_getBreakIterator_android(const UStringSearch * strsrch) { in usearch_getBreakIterator_android() argument 2500 return usearch_getBreakIterator(strsrch); in usearch_getBreakIterator_android() 2502 UCollator * usearch_getCollator_android(const UStringSearch * strsrch) { in usearch_getCollator_android() argument 2503 return usearch_getCollator(strsrch); in usearch_getCollator_android() [all …]
|
/external/icu/icu4c/source/samples/all/ |
D | samplecheck.bat | 55 set SAMPLE_STRSRCH=%ICU_SAMPLESDIR%\strsrch\%ICU_ARCH%\%ICU_DBRL%\strsrch.exe 155 @set THT=strsrch
|
D | all.sln | 25 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "strsrch", "..\strsrch\strsrch.vcxproj", "{E977…
|
/external/icu/icu4c/source/samples/ |
D | readme.txt | 32 strsrch - demonstrates how to search for patterns in Unicode text using the usearch interface.
|