| Crates.io | utf16_iter |
| lib.rs | utf16_iter |
| version | 1.0.5 |
| created_at | 2022-06-13 09:49:27.814111+00 |
| updated_at | 2023-12-01 17:42:42.216648+00 |
| description | Iterator by char over potentially-invalid UTF-16 in &[u16] |
| homepage | https://docs.rs/utf16_iter/ |
| repository | https://github.com/hsivonen/utf16_iter |
| max_upload_size | |
| id | 604990 |
| size | 36,378 |
utf16_iter provides iteration by char over potentially-invalid UTF-16 &[u16]
such that UTF-16 errors are replaced with the REPLACEMENT CHARACTER.
Iteration by Result<char,Utf16CharsError> is provided as an alternative that
distinguishes unpaired surrogates from U+FFFD appearing in the input.
This is a no_std crate.
TL;DR: Apache-2.0 OR MIT
Please see the file named COPYRIGHT.
Generated API documentation is available online.
Result<char,Utf16CharsError>.char_indices() implementation.DoubleEndedIterator.as_slice() method.The initial release.