List of utility methods to do String Whitespace Normalize
String | normaliseWhitespace(String string) Normalise the whitespace within this string; multiple spaces collapse to a single, and all whitespace characters (e.g. StringBuilder sb = new StringBuilder(string.length()); appendNormalisedWhitespace(sb, string, false); return sb.toString(); |
String | normaliseWhitespace(String string) normalise Whitespace StringBuilder sb = new StringBuilder(string.length()); boolean lastWasWhite = false; boolean modified = false; int l = string.length(); int c; for (int i = 0; i < l; i += Character.charCount(c)) { c = string.codePointAt(i); if (isWhitespace(c)) { ... |