Logo Search packages:      
Sourcecode: icu version File versions

U_STABLE UCharsetDetector* U_EXPORT2 ucsdet_open ( UErrorCode status  ) 

Open a charset detector.

Parameters:
status Any error conditions occurring during the open operation are reported back in this variable.
Returns:
the newly opened charset detector. ICU 3.6

Definition at line 27 of file ucsdet.cpp.

References NULL, and U_FAILURE.

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

    CharsetDetector* csd = new CharsetDetector(*status);

    if (U_FAILURE(*status)) {
        delete csd;
        csd = NULL;
    }

    return (UCharsetDetector *) csd;
}


Generated by  Doxygen 1.6.0   Back to index