Home
last modified time | relevance | path

Searched refs:strsrch (Results 1 – 13 of 13) sorted by relevance

/external/icu/icu4c/source/i18n/
Dusearch.cpp147 inline int32_t getCE(const UStringSearch *strsrch, uint32_t sourcece) in getCE() argument
152 sourcece &= strsrch->ceMask; in getCE()
154 if (strsrch->toShift) { in getCE()
160 if (strsrch->variableTop > sourcece) { in getCE()
161 if (strsrch->strength >= UCOL_QUATERNARY) { in getCE()
168 } else if (strsrch->strength >= UCOL_QUATERNARY && sourcece == UCOL_IGNORABLE) { in getCE()
290 inline uint16_t initializePatternCETable(UStringSearch *strsrch, in initializePatternCETable() argument
293 UPattern *pattern = &(strsrch->pattern); in initializePatternCETable()
297 UCollationElements *coleiter = strsrch->utilIter; in initializePatternCETable()
300 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternCETable()
[all …]
Dusrchimp.h210 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/
Dsrchtest.cpp254 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 …]
Dsrchtest.h44 UBool assertEqualWithStringSearch( StringSearch *strsrch,
/external/icu/icu4c/source/test/cintltst/
Dusrchtst.c336 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/android_icu4j/src/main/tests/android/icu/dev/test/search/
DSearchTest.java583 StringSearch strsrch; in assertCanonicalEqual() local
594strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertCanonicalEqual()
595 strsrch.setElementComparisonType(search.cmpType); in assertCanonicalEqual()
596 strsrch.setCanonical(true); in assertCanonicalEqual()
602 if (!assertEqualWithStringSearch(strsrch, search)) { in assertCanonicalEqual()
615 StringSearch strsrch; in assertEqual() local
625strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertEqual()
626 strsrch.setElementComparisonType(search.cmpType); in assertEqual()
632 if (!assertEqualWithStringSearch(strsrch, search)) { in assertEqual()
643 StringSearch strsrch; in assertEqualWithAttribute() local
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/search/
DSearchTest.java579 StringSearch strsrch; in assertCanonicalEqual() local
590strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertCanonicalEqual()
591 strsrch.setElementComparisonType(search.cmpType); in assertCanonicalEqual()
592 strsrch.setCanonical(true); in assertCanonicalEqual()
598 if (!assertEqualWithStringSearch(strsrch, search)) { in assertCanonicalEqual()
611 StringSearch strsrch; in assertEqual() local
621strsrch = new StringSearch(pattern, new StringCharacterIterator(text), (RuleBasedCollator)collator… in assertEqual()
622 strsrch.setElementComparisonType(search.cmpType); in assertEqual()
628 if (!assertEqualWithStringSearch(strsrch, search)) { in assertEqual()
639 StringSearch strsrch; in assertEqualWithAttribute() local
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dusearch.h381 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/
Dreadme.txt2 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 …]
DMakefile12 TARGET=strsrch
15 OBJECTS=strsrch.o
Dstrsrch.sln3 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "strsrch", "strsrch.vcxproj", "{E97790D1-7ABE-4…
/external/icu/icu4c/source/samples/
Dreadme.txt29 strsrch - demonstrates how to search for patterns in Unicode text using the usearch interface.
/external/icu/icu4c/source/samples/all/
Dall.sln27 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "strsrch", "..\strsrch\strsrch.vcxproj", "{E977…