A high-performance UTF-8 implementation for .NET
I needed an UTF-8 wrapper for different projects. This is a light-weight wrapper around ReadOnlySequence<byte>
.
The UTF-8 code is based on:
- The experimental System.Text.Utf8String
- The experimental System.Text.CaseFolding
- fastvalidate-utf-8, a fast SIMD accelerated UTF-8 validator.
Clone the repository.
Use Utf8String
to wrap UTF-8 byte sequences.
Use LegacyUtf8Validator
or VectorizedUtf8Validator
to validate those sequences.
Use LegacyLineFeed
or VectorLineFeed
to check for line feeds in those sequence.
Benchmarks and tests are included if you need usage examples!