#byte-length #source-file #length #byte #byte-size #size #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

#1950 in Data structures

Download history 6273/week @ 2024-07-23 5588/week @ 2024-07-30 6776/week @ 2024-08-06 5909/week @ 2024-08-13 5621/week @ 2024-08-20 6228/week @ 2024-08-27 6769/week @ 2024-09-03 6683/week @ 2024-09-10 5852/week @ 2024-09-17 6121/week @ 2024-09-24 4818/week @ 2024-10-01 7334/week @ 2024-10-08 5936/week @ 2024-10-15 7296/week @ 2024-10-22 5712/week @ 2024-10-29 4287/week @ 2024-11-05

24,305 downloads per month
Used in 83 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