示例#1
0
/*
 * call-seq:
 *   input_filtered
 *
 * Return filtering flag value this charset detector.
 */
static VALUE
UCharsetDetector_get_input_filtered(VALUE self)
{
    UCharsetDetector *detector;
    Data_Get_Struct(self, UCharsetDetector, detector);
    
    return ucsdet_isInputFilterEnabled(detector) ? Qtrue : Qfalse;
}
/*
 * Returns whether or not the strip_tags flag is set on this detector
 *
 * Returns: Boolean
 */
PyObject *
charlockholmes_get_strip_tags(PyObject *self)
{
	return PyBool_FromLong(ucsdet_isInputFilterEnabled(ch_ucd));
}
bool QCharsetDetector::isInputFilterEnabled()
{
    Q_D(QCharsetDetector);
    clearError();
    return bool(ucsdet_isInputFilterEnabled(d->_uCharsetDetector));
}