/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 != 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/icu4c/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 …]
|
/external/icu/libandroidicu/include/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 …]
|
/external/icu/libicu/cts_headers/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 …]
|
/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/libicu/cts_headers/ |
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/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…
|
/external/icu/icu4c/source/samples/ |
D | readme.txt | 32 strsrch - demonstrates how to search for patterns in Unicode text using the usearch interface.
|