Create BreakIterator for word-breaks using the given locale. Returns an instance of a BreakIterator implementing word breaks. WordBreak is useful for word selection (ex. double click)
|where ||the locale. |
|status ||the error code |
- A BreakIterator for word-breaks. The UErrorCode& status parameter is used to return status information to the user. To check whether the construction succeeded or not, you should check the value of U_SUCCESS(err). If you wish more detailed information, you can check for informational error results which still indicate success. U_USING_FALLBACK_WARNING indicates that a fall back locale was used. For example, 'de_CH' was requested, but nothing was found there, so 'de' was used. U_USING_DEFAULT_WARNING indicates that the default locale data was used; neither the requested locale nor any of its fall back locales could be found. The caller owns the returned object and is responsible for deleting it. ICU 2.0
Definition at line 149 of file brkiter.cpp.
Referenced by UnicodeSet::closeOver(), BreakTransliterator::getBreakIterator(), RBBIAPITest::TestCloneEquals(), RBBITest::TestEndBehaviour(), RBBIAPITest::TestgetRules(), RBBIAPITest::TestGetSetAdoptText(), RBBIAPITest::TestHashCode(), RBBIAPITest::TestIteration(), RBBIAPITest::TestRuleStatus(), and ubrk_open().
return createInstance(key, UBRK_WORD, status);