Code example for Normalizer.Form

Methods: ordinal

    private static int toUNormalizationMode(Form form) {
        // Translates Java enum constants to ICU int constants. 
        // See UNormalizationMode in "unicode/unorm.h". Stable API since ICU 2.0. 
        switch (form) {
        case NFC: return 4;
        case NFD: return 2;
        case NFKC: return 5;
        case NFKD: return 3;
        throw new AssertionError("unknown Normalizer.Form " + form);
    private static native String normalizeImpl(String src, int form);
    private static native boolean isNormalizedImpl(String src, int form);
    private NativeNormalizer() {} 
Connect your IDE to all the code out there  Get Codota for Java