6 releases

Uses old Rust 2015

0.1.5 Feb 4, 2022
0.1.4 Jun 5, 2018
0.1.3 Feb 14, 2017
0.1.2 May 2, 2016
0.1.0 Jun 24, 2015

#210 in Text processing

Download history 43367/week @ 2022-11-28 46536/week @ 2022-12-05 45989/week @ 2022-12-12 42293/week @ 2022-12-19 33516/week @ 2022-12-26 39987/week @ 2023-01-02 45995/week @ 2023-01-09 45574/week @ 2023-01-16 50765/week @ 2023-01-23 52445/week @ 2023-01-30 50430/week @ 2023-02-06 53906/week @ 2023-02-13 53571/week @ 2023-02-20 53284/week @ 2023-02-27 58422/week @ 2023-03-06 51251/week @ 2023-03-13

221,769 downloads per month
Used in 756 crates (via tendril)

MIT/Apache

22KB
396 lines

futf

Build Status

futf is a library for flexible UTF-8, or UTF-8 fragments. I don't know. Check out the API documentation.

Anyway, it takes an index into a byte buffer and tells you things about the UTF-8 codepoint containing that byte. It can deal with incomplete codepoint prefixes / suffixes at the ends of a buffer, which is useful for incremental I/O. It can also handle UTF-16 surrogate code units encoded in the manner of CESU-8 or WTF-8.

This is a low-level helper for tendril that might be useful more generally.

Dependencies

~15KB