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

#251 in Algorithms

Download history 104547/week @ 2023-12-13 82556/week @ 2023-12-20 75679/week @ 2023-12-27 102763/week @ 2024-01-03 99290/week @ 2024-01-10 109073/week @ 2024-01-17 109213/week @ 2024-01-24 115196/week @ 2024-01-31 110750/week @ 2024-02-07 112993/week @ 2024-02-14 123220/week @ 2024-02-21 136422/week @ 2024-02-28 138003/week @ 2024-03-06 127133/week @ 2024-03-13 134708/week @ 2024-03-20 117852/week @ 2024-03-27

540,630 downloads per month
Used in 1,116 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