[][src]Crate shift_or_euc_c

C API for shift_or_euc

Panics

This crate is designed to be used only in a panic=abort scenario. Panic propagation across FFI is not handled!

Licensing

See the file named COPYRIGHT.

Functions

shift_or_euc_detector_feed

Feeds bytes to the detector. If last is true the end of the stream is considered to occur immediately after the end of buffer. Otherwise, the stream is expected to continue. buffer_len may be zero. buffer must not be NULL but may be undereferencable when buffer_len is zero.

shift_or_euc_detector_free

Deallocates a detector obtained from shift_or_euc_detector_new.

shift_or_euc_detector_new

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.