Logo Search packages:      
Sourcecode: icu version File versions

BreakIterator *U_EXPORT2 BreakIterator::createTitleInstance ( const Locale where,
UErrorCode status 
) [static, inherited]

Create BreakIterator for title-casing breaks using the specified locale Returns an instance of a BreakIterator implementing title breaks. The iterator returned locates title boundaries as described for Unicode 3.2 only. For Unicode 4.0 and above title boundary iteration, please use Word Boundary iterator.createWordInstance

where the locale.
status The error code.
A BreakIterator for title-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.1

Definition at line 185 of file brkiter.cpp.

References UBRK_TITLE.

Referenced by RBBIAPITest::TestIteration(), and ubrk_open().

    return createInstance(key, UBRK_TITLE, status);

Generated by  Doxygen 1.6.0   Back to index