Section navigation

Public classSealed LowercaseFilter

Namespace
Rowles.LeanCorpus.Analysis.Filters
Assembly
Rowles.LeanCorpus.dll

Performs an in-place lowercase transformation on tokens or a character buffer.

public sealed class LowercaseFilter : ISpanTokenFilter
Inheritance
LowercaseFilter
Implements

Public method Apply(ReadOnlySpan<char>, int, int, string, int, byte[]?, ISpanTokenSink)

Applies the filter to a token and emits the transformed token into sink.

Public method Apply(Span<char>)

Lowercases all characters in the provided character buffer in place. Handles both ASCII and non-ASCII uppercase (diacritic capitals like Č, Š, Ž).