Expand description
Unicode validation and transcoding at billions of characters per second.
This crate is the Rust binding of simdutf.
§Compilation
This crate works out of the box as long as you have a C++11-compatible toolchain installed correctly.
simdutf links C++ standard library, which adds a dynamic linking dependency.
For more details, see simdutf documentation and cc documentation.
Here is an example for local benchmark:
export RUSTFLAGS='-C target-cpu=native'
export CXXFLAGS='-march=native'
cargo build --release
Structs§
- The encoding of a string, defined as a bitflags type.
- The result type of validation and transcoding.
Enums§
- The error code type of validation and transcoding.
Functions§
- Autodetect the possible encodings of the input in one pass.
- Autodetect the encoding of the input.
- Change the endianness of UTF-16 string.
- Convert possibly broken UTF-8 string into UTF-16 string.
- Convert possibly broken UTF-8 string into UTF-16 string.
- Convert possibly broken UTF-8 string into UTF-16BE string.
- Convert possibly broken UTF-8 string into UTF-16BE string.
- Convert possibly broken UTF-8 string into UTF-16LE string.
- Convert possibly broken UTF-8 string into UTF-16LE string.
- Convert possibly broken UTF-8 string into UTF-32 string.
- Convert possibly broken UTF-8 string into UTF-32 string.
- Convert possibly broken UTF-16 string into UTF-8 string.
- Convert possibly broken UTF-16 string into UTF-8 string.
- Convert possibly broken UTF-16 string into UTF-32 string.
- Convert possibly broken UTF-16 string into UTF-32 string.
- Convert possibly broken UTF-16BE string into UTF-8 string.
- Convert possibly broken UTF-16BE string into UTF-8 string.
- Convert possibly broken UTF-16BE string into UTF-32 string.
- Convert possibly broken UTF-16BE string into UTF-32 string.
- Convert possibly broken UTF-16LE string into UTF-8 string.
- Convert possibly broken UTF-16LE string into UTF-8 string.
- Convert possibly broken UTF-16LE string into UTF-32 string.
- Convert possibly broken UTF-16LE string into UTF-32 string.
- Convert possibly broken UTF-32 string into UTF-8 string.
- Convert possibly broken UTF-32 string into UTF-8 string.
- Convert possibly broken UTF-32 string into UTF-16 string.
- Convert possibly broken UTF-32 string into UTF-16 string.
- Convert possibly broken UTF-32 string into UTF-16BE string.
- Convert possibly broken UTF-32 string into UTF-16BE string.
- Convert possibly broken UTF-32 string into UTF-16LE string.
- Convert possibly broken UTF-32 string into UTF-16LE string.
- Convert valid UTF-8 string into UTF-16 string.
- Convert valid UTF-8 string into UTF-16BE string.
- Convert valid UTF-8 string into UTF-16LE string.
- Convert valid UTF-8 string into UTF-32 string.
- Convert valid UTF-16 string into UTF-8 string.
- Convert valid UTF-16 string into UTF-32 string.
- Convert valid UTF-16BE string into UTF-8 string.
- Convert valid UTF-16BE string into UTF-32 string.
- Convert valid UTF-16LE string into UTF-8 string.
- Convert valid UTF-16LE string into UTF-32 string.
- Convert valid UTF-32 string into UTF-8 string.
- Convert valid UTF-32 string into UTF-16 string.
- Convert valid UTF-32 string into UTF-16BE string.
- Convert valid UTF-32 string into UTF-16LE string.
- Count the number of code points in the UTF-8 string.
- Count the number of code points in the UTF-16 string.
- Count the number of code points in the UTF-16BE string.
- Count the number of code points in the UTF-16LE string.
- Count the number of code units that the UTF-16 string would require in UTF-8 format.
- Count the number of code units that the UTF-16BE string would require in UTF-8 format.
- Count the number of code units that the UTF-16LE string would require in UTF-8 format.
- Count the number of code units that the UTF-32 string would require in UTF-8 format.
- Count the number of code units that the UTF-8 string would require in UTF-16 format.
- Count the number of code units that the UTF-32 string would require in UTF-16 format.
- Count the number of code units that the UTF-8 string would require in UTF-32 format.
- Count the number of code units that the UTF-16 string would require in UTF-32 format.
- Count the number of code units that the UTF-16BE string would require in UTF-32 format.
- Count the number of code units that the UTF-16LE string would require in UTF-32 format.
- Validate the ASCII string.
- Validate the ASCII string.
- Validate the UTF-8 string.
- Validate the UTF-8 string.
- Validate the UTF-16 string.
- Validate the UTF-16 string.
- Validate the UTF-16BE string.
- Validate the UTF-16BE string.
- Validate the UTF-16LE string.
- Validate the UTF-16LE string.
- Validate the UTF-32 string.
- Validate the UTF-32 string.