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

U_STABLE void U_EXPORT2 ucsdet_setText ( UCharsetDetector ucsd,
const char *  textIn,
int32_t  len,
UErrorCode status 
)

Set the input byte data whose charset is to detected.

Ownership of the input text byte array remains with the caller. The input string must not be altered or deleted until the charset detector is either closed or reset to refer to different input text.

Parameters:
ucsd the charset detector to be used.
textIn the input text of unknown encoding. .
len the length of the input text, or -1 if the text is NUL terminated.
status any error conditions are reported back in this variable.
ICU 3.6

Definition at line 51 of file ucsdet.cpp.

References U_FAILURE.

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

    ((CharsetDetector *) ucsd)->setText(textIn, len);
}


Generated by  Doxygen 1.6.0   Back to index