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

#552 in Algorithms

Download history 193667/week @ 2024-10-30 193011/week @ 2024-11-06 237306/week @ 2024-11-13 199382/week @ 2024-11-20 191571/week @ 2024-11-27 215756/week @ 2024-12-04 226623/week @ 2024-12-11 177294/week @ 2024-12-18 118180/week @ 2024-12-25 168919/week @ 2025-01-01 252175/week @ 2025-01-08 247667/week @ 2025-01-15 236574/week @ 2025-01-22 242368/week @ 2025-01-29 270465/week @ 2025-02-05 211088/week @ 2025-02-12

1,003,496 downloads per month
Used in 1,588 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