83,6 → 83,10 |
} |
|
protected String construireTxtTruck(String chaineAAnalyser) { |
return construireTxtTruck(chaineAAnalyser, true); |
} |
|
protected String construireTxtTruck(String chaineAAnalyser, boolean ucFirst) { |
ArrayList<String> termes = new ArrayList<String>(); |
|
if ((chaineAAnalyser != null) && (!chaineAAnalyser.trim().equals(""))) { |
97,7 → 101,7 |
} |
} |
|
String chaineARetourner = formaterTableauDeTxt(termes); |
String chaineARetourner = formaterTableauDeTxt(termes, ucFirst); |
return chaineARetourner; |
} |
|
123,7 → 127,7 |
return chaineAAfficher; |
} |
|
protected String formaterTableauDeTxt(ArrayList<String> tableauDeTxt) { |
protected String formaterTableauDeTxt(ArrayList<String> tableauDeTxt, boolean ucFirst) { |
String chaineAAfficher = ""; |
int tailleDuTableau = tableauDeTxt.size(); |
if (tailleDuTableau > 0) { |
137,7 → 141,8 |
} |
} |
} |
return UtilString.ucFirst(chaineAAfficher); |
if (ucFirst) return UtilString.ucFirst(chaineAAfficher); |
else return chaineAAfficher; |
} |
|
protected String nettoyerPointFinal(String mot) { |
294,8 → 299,8 |
} |
} |
|
String chaineTermes = formaterTableauDeTxt(termes); |
String chaineAutres = formaterTableauDeTxt(autres); |
String chaineTermes = formaterTableauDeTxt(termes, true); |
String chaineAutres = formaterTableauDeTxt(autres, true); |
String chaineARetourner = chaineTermes+formaterAutre(chaineAutres); |
|
return chaineARetourner; |