this repo has no description
1# `java_string`
2
3An implementation of Java strings, tolerant of invalid UTF-16 encoding.
4This allows for round-trip serialization of all Java strings, including those which contain invalid UTF-16, while still
5being able to perform useful operations on those strings.
6
7These Java strings use the UTF-8 encoding, with the modification that surrogate code points (code points between U+D800
8and U+DFFF inclusive) are allowed. This allows for zero-cost conversion from Rust strings to Java strings. This modified
9encoding is known as "semi-UTF-8" throughout the codebase. Similarly, this crate introduces a `JavaCodePoint` type which
10is analogous to `char`, except that surrogate code points are allowed.
11
12This crate is mostly undocumented, because most methods are entirely analogous to those of the same name in Rust's
13strings. Please refer to the `std` documentation.
14
15# Features
16
17- `serde` Adds support for [`serde`](https://docs.rs/serde/latest/serde/)