#byte-length #length #byte #byte-size #size #source-file #char

decoded-char

Simple wrapper to keep track of the original byte length of a decoded character in the encoded source file

2 releases

0.1.1 Oct 18, 2022
0.1.0 Mar 21, 2022

#1794 in Data structures

Download history 1118/week @ 2024-01-02 783/week @ 2024-01-09 1254/week @ 2024-01-16 1102/week @ 2024-01-23 1702/week @ 2024-01-30 1657/week @ 2024-02-06 1586/week @ 2024-02-13 1808/week @ 2024-02-20 1832/week @ 2024-02-27 1877/week @ 2024-03-05 2655/week @ 2024-03-12 3358/week @ 2024-03-19 3530/week @ 2024-03-26 3701/week @ 2024-04-02 5234/week @ 2024-04-09 4072/week @ 2024-04-16

17,347 downloads per month
Used in 49 crates (4 directly)

MIT/Apache

9KB
159 lines

DecodedChar: Keeps track of the original byte length of a decoded character in the encoded source file.

CI Crate informations License Documentation

This is a very simple utility crate that provides a wrapper over char values, DecodedChar, additionally storing the original byte length of the character in the encoded source file.

It also provides wrappers around char iterators to produce DecodedChar iterators from UTF-8/16 encoded sources.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps