[][src]Crate chardetng_c

C API for chardetng

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

chardetng_encoding_detector_feed

Inform the detector of a chunk of input.

chardetng_encoding_detector_free

Deallocates a detector obtained from chardetng_encodingdetector_new.

chardetng_encoding_detector_guess

Guess the encoding given the bytes pushed to the detector so far (via chardetng_encoding_detector_feed()), the top-level domain name from which the bytes were loaded, and an indication of whether to consider UTF-8 as a permissible guess.

chardetng_encoding_detector_new

Instantiates a Web browser-oriented detector for guessing what character encoding a stream of bytes is encoded in.