info.magnolia.cms.util
Class UnicodeNormalizer

java.lang.Object
  extended by info.magnolia.cms.util.UnicodeNormalizer

public class UnicodeNormalizer
extends Object

A wrapper around java.text.Normalizer note: If needed, one can use their own implementation, by setting the info.magnolia.cms.util.UnicodeNormalizer$Normalizer system property.

See Also:
Normalizer, http://en.wikipedia.org/wiki/Unicode_equivalence#Normal_forms for more information.

Nested Class Summary
static class UnicodeNormalizer.AutoDetectNormalizer
          Tries to load the normalizer dynamically and respects the property SystemProperty.MAGNOLIA_UTF8_ENABLED.
static class UnicodeNormalizer.Java6Normalizer
          Java 6 Normalizer wrapper.
static class UnicodeNormalizer.NonNormalizer
          Returns the original value unchanged.
static interface UnicodeNormalizer.Normalizer
          Used to normalize a String.
 
Constructor Summary
UnicodeNormalizer()
           
 
Method Summary
static String normalizeNFC(String in)
          Normalizes the given String to the NFC form.
static String[] normalizeNFC(String[] values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnicodeNormalizer

public UnicodeNormalizer()
Method Detail

normalizeNFC

public static String[] normalizeNFC(String[] values)

normalizeNFC

public static String normalizeNFC(String in)
Normalizes the given String to the NFC form.



Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.