Logo Search packages:      
Sourcecode: icu version File versions

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

Create BreakIterator for sentence-breaks using specified locale Returns an instance of a BreakIterator implementing sentence breaks.

Parameters:
where the locale.
status The error code.
Returns:
A BreakIterator for sentence-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 176 of file brkiter.cpp.

References UBRK_SENTENCE.

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

{
    return createInstance(key, UBRK_SENTENCE, status);
}


Generated by  Doxygen 1.6.0   Back to index