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

#386 in Algorithms

Download history 162286/week @ 2024-08-13 165688/week @ 2024-08-20 173399/week @ 2024-08-27 181604/week @ 2024-09-03 171141/week @ 2024-09-10 169521/week @ 2024-09-17 178274/week @ 2024-09-24 198159/week @ 2024-10-01 178587/week @ 2024-10-08 202690/week @ 2024-10-15 193249/week @ 2024-10-22 194111/week @ 2024-10-29 193256/week @ 2024-11-05 226441/week @ 2024-11-12 208808/week @ 2024-11-19 149317/week @ 2024-11-26

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