fr.ybo.opendata.rennes.util
Class Formatteur
java.lang.Object
fr.ybo.opendata.rennes.util.Formatteur
public final class Formatteur
- extends Object
Classe utilitaire pour les formatage d'une chaine.
Method Summary |
static String |
formatterChaine(String chaine)
Permet de formatter une chaîne de caractère :
Pour chaque mot : une majuscule au début et le reste un minuscule. |
formatterChaine
public static String formatterChaine(String chaine)
- Permet de formatter une chaîne de caractère :
- Pour chaque mot : une majuscule au début et le reste un minuscule.
- Tout les double espaces sont remplacer par un seul espace.
- S'il y a des espaces au début de la chaîne, ils sont supprimés.
- Parameters:
chaine
- chaîne à formatter.
- Returns:
- la chaîne formattée.
Copyright © 2012. All Rights Reserved.