Expand description
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
lastistruethe end of the stream is considered to occur immediately after the end ofbuffer. Otherwise, the stream is expected to continue.buffer_lenmay be zero.buffermust not beNULLbut may be undereferencable whenbuffer_lenis 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_2022istruethe possible guesses are Shift_JIS, EUC-JP, ISO-2022-JP, and undecided. Ifallow_2022isfalse, the possible guesses are Shift_JIS, EUC-JP, and undecided.