Logo Search packages:      
Sourcecode: icu version File versions

U_STABLE const char* U_EXPORT2 ucsdet_getName ( const UCharsetMatch ucsm,
UErrorCode status 
)

Get the name of the charset represented by a UCharsetMatch.

The storage for the returned name string is owned by the UCharsetMatch, and will remain valid while the UCharsetMatch is valid.

The name returned is suitable for use with the ICU conversion APIs.

Parameters:
ucsm The charset match object.
status Any error conditions are reported back in this variable.
Returns:
The name of the matching charset.
ICU 3.6

Definition at line 61 of file ucsdet.cpp.

References NULL, and U_FAILURE.

{
    if(U_FAILURE(*status)) {
        return NULL;
    }

    return ((CharsetMatch *) ucsm)->getName();
}


Generated by  Doxygen 1.6.0   Back to index