/external/icu/icu4c/source/i18n/ |
D | usearch.cpp | 143 inline int32_t getCE(const UStringSearch *strsrch, uint32_t sourcece) in getCE() argument 148 sourcece &= strsrch->ceMask; in getCE() 150 if (strsrch->toShift) { in getCE() 156 if (strsrch->variableTop > sourcece) { in getCE() 157 if (strsrch->strength >= UCOL_QUATERNARY) { in getCE() 164 } else if (strsrch->strength >= UCOL_QUATERNARY && sourcece == UCOL_IGNORABLE) { in getCE() 286 inline uint16_t initializePatternCETable(UStringSearch *strsrch, in initializePatternCETable() argument 289 UPattern *pattern = &(strsrch->pattern); in initializePatternCETable() 293 UCollationElements *coleiter = strsrch->utilIter; in initializePatternCETable() 296 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternCETable() [all …]
|
D | usrchimp.h | 210 UBool usearch_handleNextExact(UStringSearch *strsrch, UErrorCode *status); 221 UBool usearch_handleNextCanonical(UStringSearch *strsrch, UErrorCode *status); 231 UBool usearch_handlePreviousExact(UStringSearch *strsrch, UErrorCode *status); 242 UBool usearch_handlePreviousCanonical(UStringSearch *strsrch,
|
/external/icu/icu4c/source/test/intltest/ |
D | srchtest.cpp | 254 UBool StringSearchTest::assertEqualWithStringSearch(StringSearch *strsrch, in assertEqualWithStringSearch() argument 263 strsrch->setAttribute(USEARCH_ELEMENT_COMPARISON, search->elemCompare, status); in assertEqualWithStringSearch() 269 if (strsrch->getMatchedStart() != USEARCH_DONE || in assertEqualWithStringSearch() 270 strsrch->getMatchedLength() != 0) { in assertEqualWithStringSearch() 277 strsrch->next(status); in assertEqualWithStringSearch() 278 if (matchindex != strsrch->getMatchedStart() || in assertEqualWithStringSearch() 279 matchlength != strsrch->getMatchedLength()) { in assertEqualWithStringSearch() 280 char *str = toCharString(strsrch->getText()); in assertEqualWithStringSearch() 282 str = toCharString(strsrch->getPattern()); in assertEqualWithStringSearch() 285 strsrch->getMatchedStart(), strsrch->getMatchedLength(), in assertEqualWithStringSearch() [all …]
|
D | srchtest.h | 44 UBool assertEqualWithStringSearch( StringSearch *strsrch,
|
/external/icu/icu4c/source/test/cintltst/ |
D | usrchtst.c | 336 static UBool assertEqualWithUStringSearch( UStringSearch *strsrch, in assertEqualWithUStringSearch() argument 348 usearch_setAttribute(strsrch, USEARCH_ELEMENT_COMPARISON, search.elemCompare, &status); in assertEqualWithUStringSearch() 354 if (usearch_getMatchedStart(strsrch) != USEARCH_DONE || in assertEqualWithUStringSearch() 355 usearch_getMatchedLength(strsrch) != 0) { in assertEqualWithUStringSearch() 361 usearch_next(strsrch, &status); in assertEqualWithUStringSearch() 362 if (matchindex != usearch_getMatchedStart(strsrch) || in assertEqualWithUStringSearch() 363 matchlength != (uint32_t)usearch_getMatchedLength(strsrch)) { in assertEqualWithUStringSearch() 364 char *str = toCharString(usearch_getText(strsrch, &textlength)); in assertEqualWithUStringSearch() 366 str = toCharString(usearch_getPattern(strsrch, &textlength)); in assertEqualWithUStringSearch() 369 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 | 570 StringSearch strsrch; in assertCanonicalEqual() local 581 …strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertCanonicalEqual() 582 strsrch.setElementComparisonType(search.cmpType); in assertCanonicalEqual() 583 strsrch.setCanonical(true); in assertCanonicalEqual() 589 if (!assertEqualWithStringSearch(strsrch, search)) { in assertCanonicalEqual() 602 StringSearch strsrch; in assertEqual() local 612 …strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertEqual() 613 strsrch.setElementComparisonType(search.cmpType); in assertEqual() 619 if (!assertEqualWithStringSearch(strsrch, search)) { in assertEqual() 630 StringSearch strsrch; in assertEqualWithAttribute() local [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | usearch.h | 381 U_STABLE void U_EXPORT2 usearch_setOffset(UStringSearch *strsrch, 393 U_STABLE int32_t U_EXPORT2 usearch_getOffset(const UStringSearch *strsrch); 406 U_STABLE void U_EXPORT2 usearch_setAttribute(UStringSearch *strsrch, 420 const UStringSearch *strsrch, 443 const UStringSearch *strsrch); 463 const UStringSearch *strsrch); 490 U_STABLE int32_t U_EXPORT2 usearch_getMatchedText(const UStringSearch *strsrch, 512 U_STABLE void U_EXPORT2 usearch_setBreakIterator(UStringSearch *strsrch, 528 const UStringSearch *strsrch); 545 U_STABLE void U_EXPORT2 usearch_setText( UStringSearch *strsrch, [all …]
|
/external/icu/icu4c/source/samples/strsrch/ |
D | readme.txt | 2 strsrch: a sample program which finds the occurrences of a pattern string in a source string, using… 9 strsrch.c Main source file 10 strsrch.sln Windows MSVC workspace. Double-click this to get started. 11 strsrch.vcproj Windows MSVC project file 13 To Build strsrch on Windows 15 2. In MSVC, open the workspace file icu\samples\strsrch\strsrch.sln 24 3. cd into the strsrch directory, e.g. 25 cd c:\icu\source\samples\strsrch\debug 27 strsrch [options*] -source source_string -pattern pattern_string 30 1. Build ICU. strsrch is built automatically by default unless samples are turned off. [all …]
|
D | Makefile | 12 TARGET=strsrch 15 OBJECTS=strsrch.o
|
D | strsrch.sln | 3 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "strsrch", "strsrch.vcxproj", "{E97790D1-7ABE-4…
|
/external/icu/icu4c/source/samples/ |
D | readme.txt | 29 strsrch - demonstrates how to search for patterns in Unicode text using the usearch interface.
|
/external/icu/icu4c/source/samples/all/ |
D | all.sln | 27 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "strsrch", "..\strsrch\strsrch.vcxproj", "{E977…
|