ianprime0509 / zig-xml

XML parser for Zig
http://ianjohnson.dev/zig-xml/
BSD Zero Clause License
14 stars 3 forks source link

Add general-purpose `Decoder` #15

Closed ianprime0509 closed 1 year ago

ianprime0509 commented 1 year ago

The XML spec requires support for UTF-8 and UTF-16. The Decoder interface was specifically designed to allow an "intelligent" decoder to be implemented which automatically figures out which encoding to use. Supporting only UTF-8 and UTF-16 should be enough for now.