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

U_STABLE UBool U_EXPORT2 ucsdet_enableInputFilter ( UCharsetDetector ucsd,
UBool  filter 

Enable filtering of input text. If filtering is enabled, text within angle brackets ("<" and ">") will be removed before detection, which will remove most HTML or xml markup.

ucsd the charset detector to be modified.
filter true to enable input text filtering.
The previous setting.
ICU 3.6

Definition at line 153 of file ucsdet.cpp.

References FALSE, and NULL.

    // todo: could use an error return...
    if (ucsd == NULL) {
        return FALSE;

    CharsetDetector *csd = (CharsetDetector *) ucsd;
    UBool prev = csd->getStripTagsFlag();


    return prev;

Generated by  Doxygen 1.6.0   Back to index