| 1 | # futf |
| 2 | |
| 3 | [](https://travis-ci.org/kmcallister/futf) |
| 4 | |
| 5 | futf is a library for *flexible* UTF-8, or UTF-8 *fragments*. I don't know. |
| 6 | Check out the [API documentation](http://doc.servo.org/futf/index.html). |
| 7 | |
| 8 | Anyway, it takes an index into a byte buffer and tells you things about the |
| 9 | UTF-8 codepoint containing that byte. It can deal with incomplete codepoint |
| 10 | prefixes / suffixes at the ends of a buffer, which is useful for incremental |
| 11 | I/O. It can also handle UTF-16 surrogate code units encoded in the manner of |
| 12 | [CESU-8][] or [WTF-8][]. |
| 13 | |
| 14 | This is a low-level helper for [tendril][] that might be useful more generally. |
| 15 | |
| 16 | [CESU-8]: http://www.unicode.org/reports/tr26/ |
| 17 | [WTF-8]: http://simonsapin.github.io/wtf-8/ |
| 18 | [tendril]: https://github.com/kmcallister/tendril |