| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 */ | 
| OLD | NEW | 
|---|