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

Side by Side Diff: source/test/intltest/rbbiapts.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/plurults.cpp ('k') | source/test/intltest/rbbitst.h » ('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 * Copyright (c) 1999-2014, International Business Machines 2 * Copyright (c) 1999-2014, International Business Machines
3 * Corporation and others. All Rights Reserved. 3 * Corporation and others. All Rights Reserved.
4 ******************************************************************** 4 ********************************************************************
5 * Date Name Description 5 * Date Name Description
6 * 12/14/99 Madhu Creation. 6 * 12/14/99 Madhu Creation.
7 * 01/12/2000 Madhu updated for changed API 7 * 01/12/2000 Madhu updated for changed API
8 ********************************************************************/ 8 ********************************************************************/
9 9
10 #include "unicode/utypes.h" 10 #include "unicode/utypes.h"
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 // reenable once french is in 1378 // reenable once french is in
1379 { 1379 {
1380 logln("Constructing French builder"); 1380 logln("Constructing French builder");
1381 builder.adoptInstead(FilteredBreakIteratorBuilder::createInstance(Locale::ge tFrench(), status)); 1381 builder.adoptInstead(FilteredBreakIteratorBuilder::createInstance(Locale::ge tFrench(), status));
1382 TEST_ASSERT_SUCCESS(status); 1382 TEST_ASSERT_SUCCESS(status);
1383 1383
1384 logln("Constructing base BI\n"); 1384 logln("Constructing base BI\n");
1385 baseBI.adoptInstead(BreakIterator::createSentenceInstance(Locale::getFrench( ), status)); 1385 baseBI.adoptInstead(BreakIterator::createSentenceInstance(Locale::getFrench( ), status));
1386 TEST_ASSERT_SUCCESS(status); 1386 TEST_ASSERT_SUCCESS(status);
1387 1387
1388 logln("Building new BI\n"); 1388 if (U_SUCCESS(status)) {
1389 frenchBI.adoptInstead(builder->build(baseBI.orphan(), status)); 1389 logln("Building new BI\n");
1390 TEST_ASSERT_SUCCESS(status); 1390 frenchBI.adoptInstead(builder->build(baseBI.orphan(), status));
1391 TEST_ASSERT_SUCCESS(status);
1392 }
1391 1393
1392 if(frenchBI.isValid()) { 1394 if(frenchBI.isValid()) {
1393 logln("Testing:"); 1395 logln("Testing:");
1394 UnicodeString frText("C'est MM. Duval."); 1396 UnicodeString frText("C'est MM. Duval.");
1395 frenchBI->setText(frText); 1397 frenchBI->setText(frText);
1396 TEST_ASSERT(16 == frenchBI->next()); 1398 TEST_ASSERT(16 == frenchBI->next());
1397 TEST_ASSERT(BreakIterator::DONE == frenchBI->next()); 1399 TEST_ASSERT(BreakIterator::DONE == frenchBI->next());
1398 frenchBI->first(); 1400 frenchBI->first();
1399 prtbrks(frenchBI.getAlias(), frText, *this); 1401 prtbrks(frenchBI.getAlias(), frText, *this);
1400 logln("Testing against English:"); 1402 logln("Testing against English:");
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1510 : RuleBasedBreakIterator(data, status) 1512 : RuleBasedBreakIterator(data, status)
1511 { 1513 {
1512 } 1514 }
1513 1515
1514 RBBIWithProtectedFunctions::RBBIWithProtectedFunctions(const RBBIDataHeader* dat a, enum EDontAdopt, UErrorCode &status) 1516 RBBIWithProtectedFunctions::RBBIWithProtectedFunctions(const RBBIDataHeader* dat a, enum EDontAdopt, UErrorCode &status)
1515 : RuleBasedBreakIterator(data, RuleBasedBreakIterator::kDontAdopt, status) 1517 : RuleBasedBreakIterator(data, RuleBasedBreakIterator::kDontAdopt, status)
1516 { 1518 {
1517 } 1519 }
1518 1520
1519 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */ 1521 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */
OLDNEW
« no previous file with comments | « source/test/intltest/plurults.cpp ('k') | source/test/intltest/rbbitst.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698