[][src]Function shift_or_euc_c::shift_or_euc_detector_new

#[no_mangle]
pub unsafe extern "C" fn shift_or_euc_detector_new(
    allow_2022: bool
) -> *mut Detector

Instantiates the detector. If allow_2022 is true the possible guesses are Shift_JIS, EUC-JP, ISO-2022-JP, and undecided. If allow_2022 is false, the possible guesses are Shift_JIS, EUC-JP, and undecided.

The instantiated detector must be freed after use using shift_or_euc_detector_free.