Java String Normalize normalizeToAlpha(String input)

Here you can find the source of normalizeToAlpha(String input)

Description

normalize To Alpha

License

Apache License

Declaration

public static String normalizeToAlpha(String input) 

Method Source Code

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

import java.util.Iterator;
import java.util.List;

public class Main {
    public static String normalizeToAlpha(String input) {
        StringBuffer buf = new StringBuffer();
        for (int i = 0; i < input.length(); i++) {
            char charAt = input.charAt(i);
            if (Character.isLetterOrDigit(charAt))
                buf.append(charAt);/*  w ww  .j  a v  a 2 s. c  o m*/
        }
        return buf.toString();
    }

    public static String toString(List<String> list, String delimiter) {
        String argumentString = "";
        Iterator<String> iterator2 = list.iterator();
        for (int i = 0; iterator2.hasNext(); i++) {
            String argument = iterator2.next();
            if (i > 0)
                argumentString += delimiter;
            argumentString += argument;
        }
        return argumentString;
    }
}

Related

  1. normalizeString(String str)
  2. normalizeString(String token)
  3. normalizeSuffix(String suffix)
  4. normalizeTestAndSplit(String text)
  5. normalizeTibetan(String s)
  6. normalizeUnicode(CharSequence text)
  7. normalizeUnicode(final String str)
  8. normalizeUnicode(String input)
  9. normalizeUnicode(String str)