/** * Get the "per-mille" attribute. * per-mille specifies the character used as a per mille sign; the default * value is the Unicode per-mille character (#x2030). * * @return Character to use as per-mille */ public char getPerMille() { return m_dfs.getPerMill(); }
/** * Get the "per-mille" attribute. * per-mille specifies the character used as a per mille sign; the default * value is the Unicode per-mille character (#x2030). * * @return Character to use as per-mille */ public char getPerMille() { return m_dfs.getPerMill(); }
public NativeDecimalFormat(String pattern, DecimalFormatSymbols dfs) { try { this.address = open(pattern, dfs.getCurrencySymbol(), dfs.getDecimalSeparator(), dfs.getDigit(), dfs.getExponentSeparator(), dfs.getGroupingSeparator(), dfs.getInfinity(), dfs.getInternationalCurrencySymbol(), dfs.getMinusSign(), dfs.getMonetaryDecimalSeparator(), dfs.getNaN(), dfs.getPatternSeparator(), dfs.getPercent(), dfs.getPerMill(), dfs.getZeroDigit()); this.lastPattern = pattern; } catch (NullPointerException npe) { throw npe; } catch (RuntimeException re) { throw new IllegalArgumentException("syntax error: " + re.getMessage() + ": " + pattern); } }
/** * Copies the DecimalFormatSymbols settings into our native peer in bulk. */ public void setDecimalFormatSymbols(final DecimalFormatSymbols dfs) { setDecimalFormatSymbols(this.address, dfs.getCurrencySymbol(), dfs.getDecimalSeparator(), dfs.getDigit(), dfs.getExponentSeparator(), dfs.getGroupingSeparator(), dfs.getInfinity(), dfs.getInternationalCurrencySymbol(), dfs.getMinusSign(), dfs.getMonetaryDecimalSeparator(), dfs.getNaN(), dfs.getPatternSeparator(), dfs.getPercent(), dfs.getPerMill(), dfs.getZeroDigit()); }
private void writeObject(ObjectOutputStream stream) throws IOException { ObjectOutputStream.PutField fields = stream.putFields(); fields.put("currencySymbol", currencySymbol); fields.put("decimalSeparator", getDecimalSeparator()); fields.put("digit", getDigit()); fields.put("exponential", exponentSeparator.charAt(0)); fields.put("exponentialSeparator", exponentSeparator); fields.put("groupingSeparator", getGroupingSeparator()); fields.put("infinity", infinity); fields.put("intlCurrencySymbol", intlCurrencySymbol); fields.put("minusSign", getMinusSign()); fields.put("monetarySeparator", getMonetaryDecimalSeparator()); fields.put("NaN", NaN); fields.put("patternSeparator", getPatternSeparator()); fields.put("percent", getPercent()); fields.put("perMill", getPerMill()); fields.put("serialVersionOnStream", 3); fields.put("zeroDigit", getZeroDigit()); fields.put("locale", locale); stream.writeFields(); }
/** * Get the "per-mille" attribute. * per-mille specifies the character used as a per mille sign; the default * value is the Unicode per-mille character (#x2030). * * @return Character to use as per-mille */ public char getPerMille() { return m_dfs.getPerMill(); }
/** * Return the character used for mille percent sign. Different for Arabic, etc. * @return the mille percent character * @stable ICU 2.0 */ public char getPerMill() { return dfs.getPerMill(); }
/** * Get the "per-mille" attribute. * per-mille specifies the character used as a per mille sign; the default * value is the Unicode per-mille character (#x2030). * * @return Character to use as per-mille */ public char getPerMille() { return m_dfs.getPerMill(); }
/** * Get the "per-mille" attribute. * per-mille specifies the character used as a per mille sign; the default * value is the Unicode per-mille character (#x2030). * * @return Character to use as per-mille */ public char getPerMille() { return m_dfs.getPerMill(); }
/** * Get the "per-mille" attribute. * per-mille specifies the character used as a per mille sign; the default * value is the Unicode per-mille character (#x2030). * * @return Character to use as per-mille */ public char getPerMille() { return m_dfs.getPerMill(); }
/** * @return the character used for per mille sign. */ public char getPerMill() { return formatSymbols.getPerMill(); } /**
/** * Return the character used for mille percent sign. Different for Arabic, etc. * @return the mille percent character * @stable ICU 2.0 */ public char getPerMill() { return dfs.getPerMill(); }
/** * Get the "per-mille" attribute. * per-mille specifies the character used as a per mille sign; the default * value is the Unicode per-mille character (#x2030). * * @return Character to use as per-mille */ public char getPerMille() { return m_dfs.getPerMill(); }
/** * Get the "per-mille" attribute. * per-mille specifies the character used as a per mille sign; the default * value is the Unicode per-mille character (#x2030). * * @return Character to use as per-mille */ public char getPerMille() { return m_dfs.getPerMill(); }
protected String prepareText(String aText, DecimalFormatSymbols dfs) { String userString = aText.replaceAll(dfs.getCurrencySymbol(), ""); userString = userString.replaceAll(dfs.getInternationalCurrencySymbol(), ""); userString = userString.replaceAll(dfs.getExponentSeparator(), ""); userString = userString.replaceAll(dfs.getInfinity(), ""); userString = userString.replaceAll(dfs.getNaN(), ""); userString = userString.replaceAll(new String(new char[]{dfs.getGroupingSeparator()}), ""); userString = userString.replaceAll(new String(new char[]{dfs.getMinusSign()}), ""); userString = userString.replaceAll(new String(new char[]{dfs.getPerMill()}), ""); userString = userString.replaceAll(new String(new char[]{dfs.getPercent()}), ""); return userString; }
/** Output number relevant texts. */ private static final String outNumberJavaScript(Locale locale) { final DecimalFormatSymbols symbols = new DecimalFormatSymbols(locale); final StringBuffer sb = new StringBuffer(128); appendAssignJavaScript(sb, "zk.GROUPING", symbols.getGroupingSeparator()); appendAssignJavaScript(sb, "zk.DECIMAL", symbols.getDecimalSeparator()); appendAssignJavaScript(sb, "zk.PERCENT", symbols.getPercent()); appendAssignJavaScript(sb, "zk.MINUS", symbols.getMinusSign()); appendAssignJavaScript(sb, "zk.PER_MILL", symbols.getPerMill()); return sb.toString(); }
/** * Copies the DecimalFormatSymbols settings into our native peer in bulk. */ public void setDecimalFormatSymbols(final DecimalFormatSymbols dfs) { setDecimalFormatSymbols(this.address, dfs.getCurrencySymbol(), dfs.getDecimalSeparator(), dfs.getDigit(), dfs.getExponentSeparator(), dfs.getGroupingSeparator(), dfs.getInfinity(), dfs.getInternationalCurrencySymbol(), dfs.getMinusSign(), dfs.getMonetaryDecimalSeparator(), dfs.getNaN(), dfs.getPatternSeparator(), dfs.getPercent(), dfs.getPerMill(), dfs.getZeroDigit()); }
/** * Copies the DecimalFormatSymbols settings into our native peer in bulk. */ public void setDecimalFormatSymbols(final DecimalFormatSymbols dfs) { setDecimalFormatSymbols(this.address, dfs.getCurrencySymbol(), dfs.getDecimalSeparator(), dfs.getDigit(), dfs.getExponentSeparator(), dfs.getGroupingSeparator(), dfs.getInfinity(), dfs.getInternationalCurrencySymbol(), dfs.getMinusSign(), dfs.getMonetaryDecimalSeparator(), dfs.getNaN(), dfs.getPatternSeparator(), dfs.getPercent(), dfs.getPerMill(), dfs.getZeroDigit()); }
/** * Copies the DecimalFormatSymbols settings into our native peer in bulk. */ public void setDecimalFormatSymbols(final DecimalFormatSymbols dfs) { setDecimalFormatSymbols(this.address, dfs.getCurrencySymbol(), dfs.getDecimalSeparator(), dfs.getDigit(), dfs.getExponentSeparator(), dfs.getGroupingSeparator(), dfs.getInfinity(), dfs.getInternationalCurrencySymbol(), dfs.getMinusSign(), dfs.getMonetaryDecimalSeparator(), dfs.getNaN(), dfs.getPatternSeparator(), dfs.getPercent(), dfs.getPerMill(), dfs.getZeroDigit()); }
/** * Copies the DecimalFormatSymbols settings into our native peer in bulk. */ public void setDecimalFormatSymbols(final DecimalFormatSymbols dfs) { setDecimalFormatSymbols(this.address, dfs.getCurrencySymbol(), dfs.getDecimalSeparator(), dfs.getDigit(), dfs.getExponentSeparator(), dfs.getGroupingSeparator(), dfs.getInfinity(), dfs.getInternationalCurrencySymbol(), dfs.getMinusSign(), dfs.getMonetaryDecimalSeparator(), dfs.getNaN(), dfs.getPatternSeparator(), dfs.getPercent(), dfs.getPerMill(), dfs.getZeroDigit()); }