Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: source/test/intltest/thcoll.cpp

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/test/intltest/strtest.cpp ('k') | source/test/intltest/tmsgfmt.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ********************************************************************** 2 **********************************************************************
3 * Copyright (C) 1999-2014, International Business Machines 3 * Copyright (C) 1999-2014, International Business Machines
4 * Corporation and others. All Rights Reserved. 4 * Corporation and others. All Rights Reserved.
5 ********************************************************************** 5 **********************************************************************
6 * Date Name Description 6 * Date Name Description
7 * 12/09/99 aliu Ported from Java. 7 * 12/09/99 aliu Ported from Java.
8 ********************************************************************** 8 **********************************************************************
9 */ 9 */
10 10
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 if(U_FAILURE(status)) { 452 if(U_FAILURE(status)) {
453 errln("Unable to set the Thai collator clone to secondary strength"); 453 errln("Unable to set the Thai collator clone to secondary strength");
454 return; 454 return;
455 } 455 }
456 compareArray(*coll2, tests, sizeof(tests)/sizeof(tests[0])); 456 compareArray(*coll2, tests, sizeof(tests)/sizeof(tests[0]));
457 457
458 const char *rule = "& c < ab"; 458 const char *rule = "& c < ab";
459 const char *testcontraction[] = { "\\u0E41ab", ">", "\\u0E41c"}; // After UCA 4.1 Thai are normal so won't break a contraction 459 const char *testcontraction[] = { "\\u0E41ab", ">", "\\u0E41c"}; // After UCA 4.1 Thai are normal so won't break a contraction
460 UnicodeString rules; 460 UnicodeString rules;
461 parseChars(rules, rule); 461 parseChars(rules, rule);
462 LocalPointer<RuleBasedCollator> rcoll(new RuleBasedCollator(rules, status)); 462 LocalPointer<RuleBasedCollator> rcoll(new RuleBasedCollator(rules, status), st atus);
463 if(U_SUCCESS(status)) { 463 if(U_SUCCESS(status)) {
464 compareArray(*rcoll, testcontraction, 3); 464 compareArray(*rcoll, testcontraction, 3);
465 } else { 465 } else {
466 errln("Couldn't instantiate collator from rules"); 466 errln("Couldn't instantiate collator from rules");
467 } 467 }
468 468
469 } 469 }
470 470
471 471
472 #endif /* #if !UCONFIG_NO_COLLATION */ 472 #endif /* #if !UCONFIG_NO_COLLATION */
OLDNEW
« no previous file with comments | « source/test/intltest/strtest.cpp ('k') | source/test/intltest/tmsgfmt.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698