info.magnolia.cms.util
Class UnicodeNormalizer

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

public class UnicodeNormalizer
extends java.lang.Object

A wrapper around java.text.Normalizer and com.ibm.icu.text.Normalizer; uses the former if present, or none if none is present. note: if not running under Java >=6, and without ICU, this does nothing. If needed, one can use their own implementation, by setting the info.magnolia.cms.util.UnicodeNormalizer$Normalizer system property.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph
See Also:
Normalizer, com.ibm.icu.text.Normalizer, http://www.icu-project.org/ to get the ICU4J library., http://en.wikipedia.org/wiki/Unicode_equivalence#Normal_forms for more information.

Nested Class Summary
static class UnicodeNormalizer.AutoDetectNormalizer
           
static class UnicodeNormalizer.ICUNormalizer
           
static class UnicodeNormalizer.Java6ReflectionNormalizer
          This uses reflection, since we're still compiling with Java 5.
static class UnicodeNormalizer.NonNormalizer
           
static interface UnicodeNormalizer.Normalizer
           
 
Constructor Summary
UnicodeNormalizer()
           
 
Method Summary
static java.lang.String normalizeNFC(java.lang.String in)
          Normalizes the given String to the NFC form.
 
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 java.lang.String normalizeNFC(java.lang.String in)
Normalizes the given String to the NFC form.



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