Private StaticcacheA cache to store normalized strings based on the flags and input. This helps avoid recomputing normalization for the same input and flags.
Private StaticpipelineA map that holds normalization functions based on the flags. This allows for reusing normalization logic without recomputing it.
Private Static ReadonlyREGEXRegular expressions used in normalization steps
Private StaticcanonicalReturns a canonical version of the flags by removing duplicates and sorting them.
The normalization flags
StaticclearClears the normalization pipeline and cache. This is useful for resetting the state of the Normalizer.
Private StaticgetReturns a normalization function based on the provided flags. The flags are a string of characters that define the normalization steps.
A string of characters representing the normalization steps
StaticnormalizeNormalizes the input string or array of strings based on the provided flags. The flags are a string of characters that define the normalization steps.
The string or array of strings to normalize
A string of characters representing the normalization steps
StaticnormalizeAsynchronously normalizes the input string or array of strings based on the provided flags. This method is useful for handling large inputs or when normalization needs to be done in a non-blocking way.
The string or array of strings to normalize
A string of characters representing the normalization steps
The Normalizer class providing methods to normalize strings based on various flags.