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

#1711 in Text processing

Download history 576126/week @ 2026-01-21 583250/week @ 2026-01-28 676619/week @ 2026-02-04 698610/week @ 2026-02-11 727457/week @ 2026-02-18 806249/week @ 2026-02-25 1043829/week @ 2026-03-04 1099358/week @ 2026-03-11 955226/week @ 2026-03-18 934857/week @ 2026-03-25 943188/week @ 2026-04-01 993460/week @ 2026-04-08 1000150/week @ 2026-04-15 1053272/week @ 2026-04-22 999084/week @ 2026-04-29 968432/week @ 2026-05-06

4,183,356 downloads per month

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