5 releases

Uses old Rust 2015

0.1.4 Jun 5, 2018
0.1.3 Feb 14, 2017
0.1.2 May 2, 2016
0.1.1 Jul 19, 2015
0.1.0 Jun 24, 2015
Download history 20771/week @ 2021-02-16 21355/week @ 2021-02-23 20186/week @ 2021-03-02 20331/week @ 2021-03-09 20113/week @ 2021-03-16 20598/week @ 2021-03-23 21963/week @ 2021-03-30 20332/week @ 2021-04-06 19589/week @ 2021-04-13 19737/week @ 2021-04-20 20514/week @ 2021-04-27 21499/week @ 2021-05-04 21522/week @ 2021-05-11 20864/week @ 2021-05-18 19938/week @ 2021-05-25 21181/week @ 2021-06-01

88,434 downloads per month
Used in 382 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