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
last
istrue
the end of the stream is considered to occur immediately after the end ofbuffer
. Otherwise, the stream is expected to continue.buffer_len
may be zero.buffer
must not beNULL
but may be undereferencable whenbuffer_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
istrue
the possible guesses are Shift_JIS, EUC-JP, ISO-2022-JP, and undecided. Ifallow_2022
isfalse
, the possible guesses are Shift_JIS, EUC-JP, and undecided.