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

#334 in Algorithms

Download history 145618/week @ 2024-05-19 139356/week @ 2024-05-26 149876/week @ 2024-06-02 143940/week @ 2024-06-09 142866/week @ 2024-06-16 149436/week @ 2024-06-23 139289/week @ 2024-06-30 146133/week @ 2024-07-07 142696/week @ 2024-07-14 154031/week @ 2024-07-21 160422/week @ 2024-07-28 157456/week @ 2024-08-04 168506/week @ 2024-08-11 162367/week @ 2024-08-18 179010/week @ 2024-08-25 164501/week @ 2024-09-01

686,568 downloads per month
Used in 1,322 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