/external/chromium_org/third_party/icu/source/test/intltest/ |
H A D | numrgts.cpp | 495 * A space as a group separator for localized pattern causes 649 errln("df->applyPattern with illegal pattern didn't fail"); 660 errln("df->applyPattern with illegal pattern didn't fail"); 834 * Rewrote this test not to depend on the actual pattern. Pattern should 835 * never contain the monetary separator! Decimal separator in pattern is 1228 * Tests illegal pattern exception. 1243 logln("Inconsistent negative pattern is fine."); 1252 errln("An exception was thrown for any inconsistent negative pattern."); 1283 errln(UnicodeString("Bug 4099404 failed applying illegal pattern \"000.0#0\"")); 1285 logln("Bug 4099404 pattern \"000. 1662 UnicodeString pattern = numPat.getString(status); local 2904 static const UChar pattern[] = { 0x23,0x23,0x23,0x23,0x2E,0x23,0x23,0x23,0x23,0 }; // "####.####" local [all...] |
H A D | plurfmts.cpp | 201 // ======= Test PluralRules pattern syntax. 202 logln("Testing PluralRules pattern syntax."); 213 errln("ERROR: PluralFormat failed to detect syntax error with pattern: "+checkSyntaxtData[i]); 219 // ======= Test applying various pattern 225 UnicodeString message=UnicodeString("ERROR: PluralFormat tests various pattern ..."); 238 errln("ERROR: PluralFormat failed to apply pattern- "+patternTestData[i]); 263 message = UNICODE_STRING_SIMPLE("Error set locale: pattern is not reset!"); 265 // Check that pattern gets deleted. 529 dataerrln("Failed to apply pattern to fr locale - %s", u_errorName(status)); 570 dataerrln("Failed to apply pattern 630 PluralFormat pf(Locale::getEnglish(), UPLURAL_TYPE_ORDINAL, pattern, errorCode); local [all...] |
H A D | regextst.cpp | 350 // REGEX_TESTLM("pattern", "input text", lookingAt expected, matches expected); 353 // The input text is unescaped. The pattern is not. 361 const UnicodeString pattern(pat, -1, US_INV); 422 UText pattern = UTEXT_INITIALIZER; local 432 regextst_openUTF8FromInvariant(&pattern, pat, -1, &status); 433 REPattern = RegexPattern::compile(&pattern, 0, pe, status); 494 utext_close(&pattern); 507 // REGEX_ERR("pattern", expected error line, column, expected status); 514 UnicodeString pattern(pat); 521 // Compile the caller's pattern 725 UText pattern = UTEXT_INITIALIZER; local 2827 UText pattern = UTEXT_INITIALIZER; local 2858 UText pattern = UTEXT_INITIALIZER; local 3277 regex_find(const UnicodeString &pattern, const UnicodeString &flags, const UnicodeString &inputString, const char *srcPath, int32_t line) argument 4033 UnicodeString pattern = flagMat->group(2, status); local 4402 UnicodeString pattern = flagMat->group(2, status); local 5148 UnicodeString pattern = "(a)"; local [all...] |
H A D | sdtfmtts.cpp | 61 const UnicodeString pattern("yyyy.MM.dd G 'at' hh:mm:ss z", ""); 65 SimpleDateFormat pat(pattern, status); 67 errln("ERROR: Could not create SimpleDateFormat (pattern) - %s", u_errorName(status)); 71 SimpleDateFormat pat_fr(pattern, Locale::getFrench(), status); 73 errln("ERROR: Could not create SimpleDateFormat (pattern French)"); 83 SimpleDateFormat cust1(pattern, symbols, status); 85 dataerrln("ERROR: Could not create SimpleDateFormat (pattern, symbols*) - exitting"); 90 SimpleDateFormat cust2(pattern, *symbols, status); 92 errln("ERROR: Could not create SimpleDateFormat (pattern, symbols)"); 97 SimpleDateFormat ovr1(pattern, overrid [all...] |
H A D | selfmts.cpp | 103 // ======= Test SelectFormat pattern syntax. 104 logln("SelectFormat Unit Test : Testing SelectFormat pattern syntax."); 111 errln("\nERROR: Unexpected result - SelectFormat Unit Test failed to detect syntax error with pattern: "+checkSyntaxData[i]); 139 // ======= Test applying and formatting with various pattern 148 errln("ERROR: SelectFormat Unit Test failed to apply pattern- "+patternTestData[i] ); 217 errln("ERROR: SelectFormat API test constructor with pattern and status failed! with %s\n", u_errorName(status[0])); 281 UnicodeString pattern = UnicodeString("masculine{masculineVerbValue} other{otherVerbValue}"); local 283 selFmt1->applyPattern( pattern, status1); 285 errln("ERROR: SelectFormat API test failed in applyPattern() with pattern: "+ pattern); [all...] |
H A D | srchtest.cpp | 477 u_unescape(search->pattern, temp, 128); 478 UnicodeString pattern; local 479 pattern.setTo(temp); 487 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator, 536 u_unescape(search->pattern, temp, 128); 537 UnicodeString pattern; local 538 pattern.setTo(temp); 547 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator, 589 u_unescape(search->pattern, temp, 128); 590 UnicodeString pattern; local 624 UnicodeString pattern; local 739 UnicodeString pattern; local 875 UnicodeString pattern; local 1008 UnicodeString pattern; local 1052 UnicodeString pattern; local 1117 UnicodeString pattern; local 1212 UnicodeString pattern; local 1423 UnicodeString pattern; local 1487 UnicodeString pattern; local 1761 UnicodeString pattern; local 1867 UnicodeString pattern; local 1907 UnicodeString pattern; local 1970 UnicodeString pattern; local 2036 UnicodeString pattern; local 2311 TestSearch(const UnicodeString &text, BreakIterator *breakiter, const UnicodeString &pattern) argument [all...] |
H A D | ssearch.cpp | 209 UnicodeString pattern; local 215 n = testCase->getChildElement("pattern"); 222 pattern.append(text); 262 LocalUStringSearchPointer uss(usearch_openFromCollator(pattern.getBuffer(), pattern.length(), 300 uss.adoptInstead(usearch_openFromCollator(pattern.getBuffer(), pattern.length(), 764 logln("Test %d: found long pattern at [%d, %d].", t, start, end); 766 dataerrln("Test %d: did not find long pattern.", t); 773 logln("Test %d: found long pattern a 1181 simpleSearch(UCollator *coll, const UnicodeString &target, int32_t offset, const UnicodeString &pattern, int32_t &matchStart, int32_t &matchEnd) argument 1308 monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern, const char *name, const char *strength, uint32_t seed) argument 1385 UnicodeString pattern, altPattern; local [all...] |
H A D | ssearch.h | 42 virtual int32_t monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
|
H A D | tchcfmt.cpp | 460 // intervals. Do this both using arrays and using a pattern. 477 // 'fmt2' is created using a pattern; it should be equivalent 564 void TestChoiceFormat::_testPattern(const char* pattern, argument 570 ChoiceFormat fmt(pattern, ec); 573 logln((UnicodeString)"Ok: " + pattern + " failed"); 575 logln((UnicodeString)"FAIL: " + pattern + " accepted"); 580 errln((UnicodeString)"FAIL: ChoiceFormat(" + pattern + ") failed"); 583 logln((UnicodeString)"Ok: Pattern: " + pattern); 606 // Try a pattern that isolates a single value. Create 613 #if 0 // ICU 4.8 only checks the pattern synta [all...] |
H A D | tchcfmt.h | 45 void _testPattern(const char* pattern,
|
H A D | tmsgfmt.cpp | 178 // {sfb} use double format in pattern, so result will match (not strictly necessary) 179 const UnicodeString pattern = "There {0,choice,0#are no files|1#is one file|1<are {0, number} files} on disk {1}. "; local 180 logln("The input pattern : " + pattern); 181 MessageFormat *fmt = new MessageFormat(pattern, status); 183 dataerrln("MessageFormat pattern creation failed. - %s", u_errorName(status)); 186 logln("The output pattern is : " + fmt->toPattern(result)); 187 if (pattern != result) { 266 // ICU 4.8 returns the original pattern (testCases), 267 // rather than toPattern() reconstituting a new, equivalent pattern strin 1463 const UnicodeString pattern = local 1575 GetPatternAndSkipSyntax(const MessagePattern& pattern) argument 1631 UnicodeString pattern = "ab{0,choice,0#1'2''3'''4''''.}yz"; local [all...] |
H A D | tmsgfmt.h | 81 UnicodeString pattern ,Locale locale , UErrorCode& err, char* errMsg); 123 UnicodeString GetPatternAndSkipSyntax(const MessagePattern& pattern);
|
H A D | tsdcfmsy.cpp | 249 void IntlTestDecimalFormatSymbols::Verify(double value, const UnicodeString& pattern, argument 252 DecimalFormat df(pattern, sym, status);
|
H A D | tsdcfmsy.h | 31 void Verify(double value, const UnicodeString& pattern,
|
H A D | tsmthred.cpp | 648 static void formatErrorMessage(UErrorCode &realStatus, const UnicodeString& pattern, const Locale& theLocale, argument 669 fmt->applyPattern(pattern, realStatus); 988 error("Failure on message format, pattern=" + patternToCheck +
|
H A D | tstnorm.cpp | 1380 UnicodeString s, pattern; local 1406 (diff=skipSets[i]).removeAll(expectSets[i]).toPattern(pattern, TRUE); 1407 s.append(pattern); 1409 pattern.remove(); 1411 (diff=expectSets[i]).removeAll(skipSets[i]).toPattern(pattern, TRUE); 1412 s.append(pattern);
|
H A D | tzfmttst.cpp | 167 dataerrln((UnicodeString)"new SimpleDateFormat failed for pattern " + 232 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] 237 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] 246 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] 266 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] 271 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] 312 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] 320 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] 423 UnicodeString pattern(BASEPATTERN); 424 pattern [all...] |
H A D | ucdtest.cpp | 306 UnicodeString pattern=UNICODE_STRING_SIMPLE("[:Alphabetic=:]"); local 307 pattern.insert(pattern.length()-2, UnicodeString(falseValues[i], -1, US_INV)); 309 UnicodeSet set(pattern, errorCode); 320 UnicodeString pattern=UNICODE_STRING_SIMPLE("[:Alphabetic=:]"); local 321 pattern.insert(pattern.length()-2, UnicodeString(trueValues[i], -1, US_INV)); 323 UnicodeSet set(pattern, errorCode); 492 UnicodeString pattern; local 494 UnicodeString("[]"), rtl.toPattern(pattern)); [all...] |
H A D | usettest.cpp | 133 dataerrln((UnicodeString)"FAIL: bad pattern " + OTHER_TOPATTERN_TESTS[j] + " - " + UnicodeString(u_errorName(ec))); 156 // Test pattern behavior of multicharacter strings. 197 if (U_FAILURE(ec)) errln("FAIL: pattern parse error"); 225 // What we want to make sure of is that a pattern generated 320 // UCharCategory values; replaced with pattern constructors 1364 // Test the pattern API 1386 const char pattern[] = local 1391 // pre-unescape the pattern. Since U+200E is Pattern_White_Space, 1395 UnicodeString pat(pattern, -1, US_INV); 1660 // Input pattern an 2029 expectPattern(UnicodeSet& set, const UnicodeString& pattern, const UnicodeString& expectedPairs) argument 3739 static const char *pattern="[x{xy}{xya}{axy}{ax}]"; local [all...] |
H A D | usettest.h | 135 * That the iterator works, and that we can create a pattern and 155 const UnicodeString& pattern,
|
/external/chromium_org/third_party/icu/source/test/perf/howExpensiveIs/ |
H A D | howExpensiveIs.cpp | 617 static UChar pattern[] = { 0x23 }; // '#' variable 626 QuickTest(NumParseTest,{ static UChar pattern[] = { 0x23 }; NumParseTest_fmt = unum_open(UNUM_PATTERN_DECIMAL, pattern, 1, "en_US", 0, &setupStatus); },{ int32_t i; static UChar str[] = { 0x31 };double val; for(i=0;i<U_LOTS_OF_TIMES;i++) { val=unum_parse(NumParseTest_fmt,str,1,NULL,&setupStatus); } return i; },{unum_close(NumParseTest_fmt);}) 628 QuickTest(NumParseTestdot,{ static UChar pattern[] = { 0x23 }; NumParseTest_fmt = unum_open(UNUM_PATTERN_DECIMAL, pattern, 1, "en_US", 0, &setupStatus); },{ int32_t i; double val; for(i=0;i<U_LOTS_OF_TIMES;i++) { val=unum_parse(NumParseTest_fmt,strdot,1,NULL,&setupStatus); } return i; },{unum_close(NumParseTest_fmt);}) 629 QuickTest(NumParseTestspc,{ static UChar pattern[] = { 0x23 }; NumParseTest_fmt = unum_open(UNUM_PATTERN_DECIMAL, pattern, 1, "en_US", 0, &setupStatus); },{ int32_t i; double val; for(i=0;i<U_LOTS_OF_TIMES;i++) { val=unum_parse(NumParseTest_fmt,strspc,1,NULL,&setupStatus); } return i; },{unum_close(NumParseTest_fmt);}) 630 QuickTest(NumParseTestgrp,{ static UChar pattern[] = { 0x23 }; NumParseTest_fmt = unum_open(UNUM_PATTERN_DECIMAL, pattern, 1, "en_US", 0, &setupStatus); },{ int32_t i; double val; for(i=0;i<U_LOTS_OF_TIMES;i++) { val=unum_parse(NumParseTest_fmt,strgrp,-1,NULL,&setupStatus); } return i; },{unum_close(NumParseTest_fmt);}) 632 QuickTest(NumParseTestbeng,{ static UChar pattern[] [all...] |
/external/chromium_org/third_party/icu/source/test/perf/strsrchperf/ |
H A D | strsrchperf.h | 34 StringSearchPerfFunction(StrSrchFn func, UStringSearch* search, const UChar* source,int32_t sourceLen, const UChar* pattern, int32_t patternLen) { argument 38 pttrn = pattern; 61 void ICUForwardSearch(UStringSearch *srch, const UChar* source, int32_t sourceLen, const UChar* pattern, int32_t patternLen, UErrorCode* status) { argument 70 void ICUBackwardSearch(UStringSearch *srch, const UChar* source, int32_t sourceLen, const UChar* pattern, int32_t patternLen, UErrorCode* status) { argument
|
/external/chromium_org/third_party/icu/source/test/perf/unisetperf/draft/ |
H A D | contperf.bat | 6 rem --pattern [:White_Space:]
17 %PERF% Contains --type %%t -f \temp\udhr\%%f --pattern [:White_Space:] -v -e UTF-8 --passes 3 --iterations 10000
|
H A D | span16perf.bat | 6 rem --pattern [:White_Space:]
17 %PERF% SpanUTF16 --type %%t -f \temp\udhr\%%f --pattern [:White_Space:] -v -e UTF-8 --passes 3 --iterations 10000
|
H A D | span8perf.bat | 6 rem --pattern [:White_Space:]
17 %PERF% SpanUTF8 --type %%t -f \temp\udhr\%%f --pattern [:White_Space:] -v -e UTF-8 --passes 3 --iterations 10000
|