C#

StringZilla for C#

dotnet add package StringZilla 6.0.0-rc.1 · 91a27bdd

Topics

InstallationThe package targets .NET 8+ (net8.0) and is NativeAOT- and trimming-compatible.
Types49
Searching and Counting
Comparison and Equality
Splitting and Partitioning9The iterators are lazy and allocation-free: each is a ref struct enumerator yielding zero-copy ReadOnlySpan<byte> views, so a foreach never touches the heap.
Unicode SegmentationThe segmentation primitive is allocation-free: it fills the caller's span with segment lengths and returns the count.
Case Folding and Normalization4Case folding fills a gap: .NET has no public Unicode case-folding API.
Hashing and Checksums9
Sorting and SetsThese take a caller-provided result buffer and return the count; allocating convenience overloads also exist.
Runtime Dispatch4A Device is the host CPU or one GPU, by its runtime's own ordinal, and reports capability bitmasks with the serial fallback at bit 0.
Platform NotesStringZilla's native byte kernels are a strong fit for Unity's NativeArray<byte> (loaded text assets, network buffers), searched and hashed without marshalling.