/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/android_icu4j/src/main/tests/android/icu/dev/test/search/ |
D | SearchTest.java | 582 StringSearch strsrch; in assertCanonicalEqual() local 593 …strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertCanonicalEqual() 594 strsrch.setElementComparisonType(search.cmpType); in assertCanonicalEqual() 595 strsrch.setCanonical(true); in assertCanonicalEqual() 601 if (!assertEqualWithStringSearch(strsrch, search)) { in assertCanonicalEqual() 614 StringSearch strsrch; in assertEqual() local 624 …strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertEqual() 625 strsrch.setElementComparisonType(search.cmpType); in assertEqual() 631 if (!assertEqualWithStringSearch(strsrch, search)) { in assertEqual() 642 StringSearch strsrch; in assertEqualWithAttribute() local [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/search/ |
D | SearchTest.java | 581 StringSearch strsrch; in assertCanonicalEqual() local 592 …strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertCanonicalEqual() 593 strsrch.setElementComparisonType(search.cmpType); in assertCanonicalEqual() 594 strsrch.setCanonical(true); in assertCanonicalEqual() 600 if (!assertEqualWithStringSearch(strsrch, search)) { in assertCanonicalEqual() 613 StringSearch strsrch; in assertEqual() local 623 …strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertEqual() 624 strsrch.setElementComparisonType(search.cmpType); in assertEqual() 630 if (!assertEqualWithStringSearch(strsrch, search)) { in assertEqual() 641 StringSearch strsrch; in assertEqualWithAttribute() local [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | usearch.h | 387 U_STABLE void U_EXPORT2 usearch_setOffset(UStringSearch *strsrch, 399 U_STABLE int32_t U_EXPORT2 usearch_getOffset(const UStringSearch *strsrch); 412 U_STABLE void U_EXPORT2 usearch_setAttribute(UStringSearch *strsrch, 426 const UStringSearch *strsrch, 449 const UStringSearch *strsrch); 469 const UStringSearch *strsrch); 496 U_STABLE int32_t U_EXPORT2 usearch_getMatchedText(const UStringSearch *strsrch, 518 U_STABLE void U_EXPORT2 usearch_setBreakIterator(UStringSearch *strsrch, 534 const UStringSearch *strsrch); 551 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/icu4c/source/samples/ |
D | readme.txt | 32 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…
|