Debian Codegraph @

debian/rust-vendor/utf16_iter/README.md

raw
1 # utf16_iter
2
3 [![crates.io](https://img.shields.io/crates/v/utf16_iter.svg)](https://crates.io/crates/utf16_iter)
4 [![docs.rs](https://docs.rs/utf16_iter/badge.svg)](https://docs.rs/utf16_iter/)
5
6 utf16_iter provides iteration by `char` over potentially-invalid UTF-16 `&[u16]`
7 such that UTF-16 errors are replaced with the REPLACEMENT CHARACTER.
8
9 Iteration by `Result<char,Utf16CharsError>` is provided as an alternative that
10 distinguishes unpaired surrogates from U+FFFD appearing in the input.
11
12 This is a `no_std` crate.
13
14 ## Licensing
15
16 TL;DR: `Apache-2.0 OR MIT`
17
18 Please see the file named
19 [COPYRIGHT](https://github.com/hsivonen/utf16_iter/blob/master/COPYRIGHT).
20
21 ## Documentation
22
23 Generated [API documentation](https://docs.rs/utf16_iter/) is available
24 online.
25
26 ## Release Notes
27
28 ### 1.0.5
29
30 * Add iteration by `Result<char,Utf16CharsError>`.
31
32 ### 1.0.4
33
34 * `char_indices()` implementation.
35
36 ### 1.0.3
37
38 * Tweak inlining.
39
40 ### 1.0.2
41
42 * Implemented `DoubleEndedIterator`.
43
44 ### 1.0.1
45
46 * Added `as_slice()` method.
47
48 ### 1.0.0
49
50 The initial release.