]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/ubrk.cpp
ICU-400.37.tar.gz
[apple/icu.git] / icuSources / common / ubrk.cpp
index 3f941a5459f6c27d424a7d159e5cc1a7148c0083..944708ab8db56cba54c31df2552377b529159f6b 100644 (file)
@@ -1,8 +1,8 @@
 /*
-*****************************************************************************************
-*   Copyright (C) 1996-2006, International Business Machines
+********************************************************************************
+*   Copyright (C) 1996-2008, International Business Machines
 *   Corporation and others.  All Rights Reserved.
-*****************************************************************************************
+********************************************************************************
 */
 
 #include "unicode/utypes.h"
 
 U_NAMESPACE_USE
 
-//----------------------------------------------------------------------------------------
+//------------------------------------------------------------------------------
 //
 //    ubrk_open      Create a canned type of break iterator based on type (word, line, etc.)
 //                   and locale.
 //
-//----------------------------------------------------------------------------------------
+//------------------------------------------------------------------------------
 U_CAPI UBreakIterator* U_EXPORT2
 ubrk_open(UBreakIteratorType type,
       const char *locale,
@@ -84,12 +84,12 @@ ubrk_open(UBreakIteratorType type,
 
 
 
-//----------------------------------------------------------------------------------------
+//------------------------------------------------------------------------------
 //
 //   ubrk_openRules      open a break iterator from a set of break rules.
 //                       Invokes the rule builder.
 //
-//----------------------------------------------------------------------------------------
+//------------------------------------------------------------------------------
 U_CAPI UBreakIterator* U_EXPORT2
 ubrk_openRules(  const UChar        *rules,
                        int32_t       rulesLength,
@@ -104,7 +104,7 @@ ubrk_openRules(  const UChar        *rules,
 
     BreakIterator *result = 0;
     UnicodeString ruleString(rules, rulesLength);
-    result = RBBIRuleBuilder::createRuleBasedBreakIterator(ruleString, *parseErr, *status);
+    result = RBBIRuleBuilder::createRuleBasedBreakIterator(ruleString, parseErr, *status);
     if(U_FAILURE(*status)) {
         return 0;
     }
@@ -176,7 +176,7 @@ ubrk_setText(UBreakIterator* bi,
 
 
 
-U_DRAFT void U_EXPORT2
+U_CAPI void U_EXPORT2
 ubrk_setUText(UBreakIterator *bi,
              UText          *text,
              UErrorCode     *status)