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

#600 in Algorithms

Download history 220975/week @ 2024-11-16 175236/week @ 2024-11-23 219218/week @ 2024-11-30 222121/week @ 2024-12-07 220186/week @ 2024-12-14 117904/week @ 2024-12-21 136945/week @ 2024-12-28 226462/week @ 2025-01-04 268218/week @ 2025-01-11 223720/week @ 2025-01-18 240521/week @ 2025-01-25 256486/week @ 2025-02-01 272610/week @ 2025-02-08 244767/week @ 2025-02-15 283970/week @ 2025-02-22 272384/week @ 2025-03-01

1,120,075 downloads per month
Used in 1,605 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