UTF-8 content codec module for reovim.
Provides UTF-8 encoding support for the content codec pipeline:
- BOM detection and stripping on decode, restoration on encode
- CRLF normalization to LF on decode, restoration on encode
- Round-trip fidelity:
encode(decode(bytes)) == bytes
Architecture
reovim-driver-codec (trait definitions + stores)
^
|
reovim-module-codec-utf8 (THIS CRATE - UTF-8 implementation)
Self-Registration Pattern
During init(), this module registers:
- [
Utf8CodecFactory] into [ContentCodecFactoryStore] - [
Utf8Classifier] into [ContentClassifierStore]