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

#303 in Algorithms

Download history 63955/week @ 2022-06-13 43782/week @ 2022-06-20 47553/week @ 2022-06-27 56821/week @ 2022-07-04 51101/week @ 2022-07-11 40585/week @ 2022-07-18 44590/week @ 2022-07-25 54935/week @ 2022-08-01 41977/week @ 2022-08-08 35858/week @ 2022-08-15 36454/week @ 2022-08-22 39994/week @ 2022-08-29 37051/week @ 2022-09-05 37932/week @ 2022-09-12 41988/week @ 2022-09-19 42755/week @ 2022-09-26

163,245 downloads per month
Used in 627 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