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

#368 in Algorithms

Download history 155075/week @ 2024-07-22 159703/week @ 2024-07-29 159757/week @ 2024-08-05 167623/week @ 2024-08-12 162403/week @ 2024-08-19 182441/week @ 2024-08-26 172390/week @ 2024-09-02 174251/week @ 2024-09-09 167954/week @ 2024-09-16 179531/week @ 2024-09-23 194135/week @ 2024-09-30 182796/week @ 2024-10-07 198948/week @ 2024-10-14 191924/week @ 2024-10-21 193035/week @ 2024-10-28 194841/week @ 2024-11-04

792,212 downloads per month
Used in 1,422 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