Vendored version of utf16_iter from crates.io
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2023-12-01 19:40:26 +02:00
fuzz Implement UTF-16 version 2022-06-13 12:48:28 +03:00
src Merge branch 'inlinenever' 2023-12-01 19:40:26 +02:00
.gitignore Initial release 2022-04-19 11:35:24 +03:00
Cargo.toml Merge branch 'inlinenever' 2023-12-01 19:40:26 +02:00
COPYRIGHT Support char_indices() 2022-09-09 12:03:33 +03:00
LICENSE-APACHE Initial release 2022-04-19 11:35:24 +03:00
LICENSE-MIT Initial release 2022-04-19 11:35:24 +03:00
README.md Merge branch 'inlinenever' 2023-12-01 19:40:26 +02:00

utf16_iter

crates.io docs.rs

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.

Licensing

TL;DR: Apache-2.0 OR MIT

Please see the file named COPYRIGHT.

Documentation

Generated API documentation is available online.

Release Notes

1.0.5

  • Add iteration by Result<char,Utf16CharsError>.

1.0.4

  • char_indices() implementation.

1.0.3

  • Tweak inlining.

1.0.2

  • Implemented DoubleEndedIterator.

1.0.1

  • Added as_slice() method.

1.0.0

The initial release.