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

#285 in Algorithms

Download history 128009/week @ 2024-03-14 134044/week @ 2024-03-21 149489/week @ 2024-03-28 117891/week @ 2024-04-04 124690/week @ 2024-04-11 127362/week @ 2024-04-18 128247/week @ 2024-04-25 124405/week @ 2024-05-02 122777/week @ 2024-05-09 140674/week @ 2024-05-16 140728/week @ 2024-05-23 150857/week @ 2024-05-30 143548/week @ 2024-06-06 145401/week @ 2024-06-13 146114/week @ 2024-06-20 125529/week @ 2024-06-27

587,844 downloads per month
Used in 1,230 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