src/main/java/com/teamunify/i18n/I.java
public static String compressNumberString(String str) {
    LanguageSetting s = languageProvider.vend();
    DecimalFormat d = (DecimalFormat) NumberFormat.getNumberInstance(s.locale);
    Character c = d.getDecimalFormatSymbols().getGroupingSeparator();
    str = str.replaceAll("\\Q" + c.toString() + "\\E", "");
    String sym = d.getDecimalFormatSymbols().getCurrencySymbol();
    str = str.replaceAll("\\Q" + sym + "\\E", "");
    str = str.replaceAll("&[^;]*;", "");
    str = str.replaceAll(" ", "");
    return str;
  }
/**
   * Given a number string in the current locale, remove all unnessary characters (group separators).
   * <p/>
   * <p/>
   * <b>NOTE:</b> Compressed strings like this are less clear to the user, and should be avoided if at all possible. The
   * input functions accept the normal formats, so there is no worry about the extra symbols from a functionality
   * standpoint.
   *
   * @param str The string
   * @return The compacted string
   */
Given a number string in the current locale, remove all unnessary characters (group separators).


NOTE: Compressed strings like this are less clear to the user, and should be avoided if at all possible. The
input functions accept the normal formats, so there is no worry about the extra symbols from a functionality
standpoint.

@param str The string
@return The compacted string
Given a number string in the current locale remove all unnessary characters ( group separators ) . NOTE : Compressed strings like this are less clear to the user and should be avoided if at all possible . The input functions accept the normal formats so there is no worry about the extra symbols from a functionality standpoint . @param str The string @return The compacted string
public static String compressNumberString(String str) {
    LanguageSetting s = languageProvider.vend();
    DecimalFormat d = (DecimalFormat) NumberFormat.getNumberInstance(s.locale);
    Character c = d.getDecimalFormatSymbols().getGroupingSeparator();
    str = str.replaceAll("\\Q" + c.toString() + "\\E", "");
    String sym = d.getDecimalFormatSymbols().getCurrencySymbol();
    str = str.replaceAll("\\Q" + sym + "\\E", "");
    str = str.replaceAll("&[^;]*;", "");
    str = str.replaceAll(" ", "");
    return str;
  }
public static String compressNumberString ( String str ) { LanguageSetting s = languageProvider . vend ( ) ; DecimalFormat d = ( DecimalFormat ) NumberFormat . getNumberInstance ( s . locale ) ; Character c = d . getDecimalFormatSymbols ( ) . getGroupingSeparator ( ) ; str = str . replaceAll ( "\\Q" + c . toString ( ) + "\\E" , "" ) ; String sym = d . getDecimalFormatSymbols ( ) . getCurrencySymbol ( ) ; str = str . replaceAll ( "\\Q" + sym + "\\E" , "" ) ; str = str . replaceAll ( "&[^;]*;" , "" ) ; str = str . replaceAll ( " " , "" ) ; return str ; }
Given a number string in the current locale, remove all unnessary characters (group separators).
Given a number string in the current locale remove all unnessary characters ( group separators ) .