Android Utililty Methods String Whitespace Normalize

List of utility methods to do String Whitespace Normalize

Description

The list of methods to do String Whitespace Normalize are organized into topic(s).

Method

StringnormaliseWhitespace(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();
StringnormaliseWhitespace(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)) {
...