Home
last modified time | relevance | path

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

/external/icu/icu4c/source/i18n/
Dusearch.cpp149 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 …]
Dusrchimp.h212 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/
Dsrchtest.cpp257 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 …]
Dsrchtest.h46 UBool assertEqualWithStringSearch( StringSearch *strsrch,
/external/icu/icu4c/source/test/cintltst/
Dusrchtst.c338 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/
DSearchTest.java582 StringSearch strsrch; in assertCanonicalEqual() local
593strsrch = 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
624strsrch = 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/
DSearchTest.java581 StringSearch strsrch; in assertCanonicalEqual() local
592strsrch = 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
623strsrch = 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/
Dusearch.h387 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/
Dreadme.txt5 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 …]
DMakefile15 TARGET=strsrch
18 OBJECTS=strsrch.o
Dstrsrch.sln3 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "strsrch", "strsrch.vcxproj", "{E97790D1-7ABE-4…
/external/icu/icu4c/source/samples/
Dreadme.txt32 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…