Searched refs:pttrnLen (Results 1 - 4 of 4) sorted by relevance

/external/chromium/third_party/icu/source/test/perf/strsrchperf/
H A Dstrsrchperf.cpp41 pttrnLen = end - start;
42 UChar* temp = (UChar*)malloc(sizeof(UChar)*(pttrnLen));
43 for (int i = 0; i < pttrnLen; i++) {
60 pttrnLen = end - start;
61 UChar* temp = (UChar*)malloc(sizeof(UChar)*(pttrnLen));
62 for (int i = 0; i < pttrnLen; i++) {
69 UnicodeString patternString(pttrn, pttrnLen);
77 srch = usearch_open(pttrn, pttrnLen, src, srcLen, locale, NULL, &status);
121 StringSearchPerfFunction *func = new StringSearchPerfFunction(ICUForwardSearch, bms, src, srcLen, pttrn, pttrnLen);
123 StringSearchPerfFunction* func = new StringSearchPerfFunction(ICUForwardSearch, srch, src, srcLen, pttrn, pttrnLen);
[all...]
H A Dstrsrchperf.h20 typedef void (*StrSrchFn) (BoyerMooreSearch * bms, const UChar *src, int32_t srcLen, const UChar *pttrn, int32_t pttrnLen, UErrorCode *status);
22 typedef void (*StrSrchFn)(UStringSearch* srch, const UChar* src,int32_t srcLen, const UChar* pttrn, int32_t pttrnLen, UErrorCode* status);
31 int32_t pttrnLen; member in class:StringSearchPerfFunction
41 (*fn)(bms, src, srcLen, pttrn, pttrnLen, status);
43 (*fn)(srch, src, srcLen, pttrn, pttrnLen, status);
49 return (long)(srcLen/pttrnLen);
61 pttrnLen = patternLen;
70 pttrnLen = patternLen;
81 int32_t pttrnLen; member in class:StringSearchPerformanceTest
/external/icu4c/test/perf/strsrchperf/
H A Dstrsrchperf.cpp41 pttrnLen = end - start;
42 UChar* temp = (UChar*)malloc(sizeof(UChar)*(pttrnLen));
43 for (int i = 0; i < pttrnLen; i++) {
60 pttrnLen = end - start;
61 UChar* temp = (UChar*)malloc(sizeof(UChar)*(pttrnLen));
62 for (int i = 0; i < pttrnLen; i++) {
69 UnicodeString patternString(pttrn, pttrnLen);
77 srch = usearch_open(pttrn, pttrnLen, src, srcLen, locale, NULL, &status);
121 StringSearchPerfFunction *func = new StringSearchPerfFunction(ICUForwardSearch, bms, src, srcLen, pttrn, pttrnLen);
123 StringSearchPerfFunction* func = new StringSearchPerfFunction(ICUForwardSearch, srch, src, srcLen, pttrn, pttrnLen);
[all...]
H A Dstrsrchperf.h20 typedef void (*StrSrchFn) (BoyerMooreSearch * bms, const UChar *src, int32_t srcLen, const UChar *pttrn, int32_t pttrnLen, UErrorCode *status);
22 typedef void (*StrSrchFn)(UStringSearch* srch, const UChar* src,int32_t srcLen, const UChar* pttrn, int32_t pttrnLen, UErrorCode* status);
31 int32_t pttrnLen; member in class:StringSearchPerfFunction
41 (*fn)(bms, src, srcLen, pttrn, pttrnLen, status);
43 (*fn)(srch, src, srcLen, pttrn, pttrnLen, status);
49 return (long)(srcLen/pttrnLen);
61 pttrnLen = patternLen;
70 pttrnLen = patternLen;
81 int32_t pttrnLen; member in class:StringSearchPerformanceTest

Completed in 111 milliseconds