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

#1822 in Text processing

Download history 999556/week @ 2026-04-12 1018628/week @ 2026-04-19 1043234/week @ 2026-04-26 961565/week @ 2026-05-03 1023711/week @ 2026-05-10 1107238/week @ 2026-05-17 1138555/week @ 2026-05-24 1342276/week @ 2026-05-31 1401159/week @ 2026-06-07 1216400/week @ 2026-06-14 1127892/week @ 2026-06-21 988834/week @ 2026-06-28 996742/week @ 2026-07-05 1042566/week @ 2026-07-12 1052838/week @ 2026-07-19 992598/week @ 2026-07-26

4,178,263 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