public final class ScandinavianNormalizer extends Object
This Normalizer does the heavy lifting for a set of Scandinavian normalization filters, normalizing use of the interchangeable Scandinavian characters æÆäÄöÖøØ and folded variants (aa, ao, ae, oe and oo) by transforming them to åÅæÆøØ.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
Nested Class SummaryModifier and TypeClassDescription
static enumList of possible foldings that can be used when configuring the filter
Method SummaryModifier and TypeMethodDescription
(char buffer, int length)Takes the original buffer and length as input.
ScandinavianNormalizerCreate the instance, while choosing which foldings to apply. This may differ between Norwegian, Danish and Swedish.
foldings- a Set of Foldings to apply (i.e. AE, OE, AA, AO, OO)
processTokenpublic int processToken
(char buffer, int length)Takes the original buffer and length as input. Modifies the buffer in-place and returns new length
- new length