Android Utililty Methods String Merge

List of utility methods to do String Merge

Description

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

Method

StringmergeBlank(String s)
merge Blank
int numberBlank = 0;
String a1;
String a2;
for (int index = 0; index < s.length(); index++) {
    numberBlank = getBlankNumber(s, index);
    if (numberBlank >= 2) {
        a1 = s.substring(0, index);
        a2 = s.substring(index + numberBlank - 1, s.length());
...
StringcombineBlank(String str)
combine Blank
String dest = str;
if (str != null) {
    Pattern p = Pattern.compile("\t");
    Matcher m = p.matcher(str);
    dest = (m.replaceAll(" ")).trim().replaceAll(" +", " ");
} else {
    dest = "";
return dest;