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

#274 in Algorithms

Download history 111101/week @ 2024-01-18 108403/week @ 2024-01-25 112567/week @ 2024-02-01 115952/week @ 2024-02-08 110398/week @ 2024-02-15 125147/week @ 2024-02-22 137066/week @ 2024-02-29 136842/week @ 2024-03-07 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 103296/week @ 2024-05-02

502,055 downloads per month
Used in 1,150 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