Android Utililty Methods String Whitespace Check

List of utility methods to do String Whitespace Check

Description

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

Method

booleanisWhitespace(String text)
is Whitespace
boolean ret = true;
char chTemp;
String strTemp;
boolean boolA, boolB, boolC;
for (int i = 0; i < text.length(); i++) {
    boolA = false;
    boolB = false;
    chTemp = text.charAt(i);
...
booleanisWhitespace(int c)
Tests if a code point is "whitespace" as defined in the HTML spec.
return c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r';
booleanisWhitespace(int c)
Tests if a code point is "whitespace" as defined in the HTML spec.
return c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r';