Java String Normalize normalize(String string)

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

Description

normalize

License

Open Source License

Declaration

public static String normalize(String string) 

Method Source Code

//package com.java2s;
/**//from  w  ww  . jav  a2s. c  o m
* License: https://github.com/votingsystem/votingsystem/wiki/Licencia
*/

import java.text.Normalizer;

public class Main {
    public static String normalize(String string) {
        StringBuilder sb = new StringBuilder(string.length());
        string = Normalizer.normalize(string, Normalizer.Form.NFD);
        for (char c : string.toCharArray()) {
            if (c <= '\u007F')
                sb.append(c);
        }
        return sb.toString();
    }
}

Related

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