Java String Normalize normalize(String text)

Here you can find the source of normalize(String text)

Description

normalize

License

Apache License

Declaration

public static String normalize(String text) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.Normalizer;
import java.text.Normalizer.Form;

public class Main {
    public static String normalize(String text) {
        return text == null ? null
                : Normalizer.normalize(text, Form.NFD).replaceAll("\\p{InCombiningDiacriticalMarks}+", "");
    }//from  w  ww  . j a  v a 2 s  .co  m
}

Related

  1. normalize(String s)
  2. normalize(String s)
  3. normalize(String string)
  4. normalize(String string)
  5. normalize(String string)
  6. normalize(String text)
  7. normalize(String text)
  8. normalize(String text)
  9. normalize(String uri)