Logo Search packages:      
Sourcecode: icu version File versions  Download package

U_STABLE const char* U_EXPORT2 ubrk_getLocaleByType ( const UBreakIterator bi,
ULocDataLocaleType  type,
UErrorCode status 
)

Return the locale of the break iterator. You can choose between the valid and the actual locale.

Parameters:
bi break iterator
type locale type (valid or actual)
status error code
Returns:
locale string ICU 2.8

Definition at line 279 of file ubrk.cpp.

References NULL, U_ILLEGAL_ARGUMENT_ERROR, and U_SUCCESS.

{
    if (bi == NULL) {
        if (U_SUCCESS(*status)) {
            *status = U_ILLEGAL_ARGUMENT_ERROR;
        }
        return NULL;
    }
    return ((BreakIterator*)bi)->getLocaleID(type, *status);
}


Generated by  Doxygen 1.6.0   Back to index