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()); }
/** * Return the international string denoting the local currency. * @return the international string denoting the local currency * @stable ICU 2.0 */ public String getInternationalCurrencySymbol() { return dfs.getInternationalCurrencySymbol(); }
/** * @return the ISO 4217 currency code of the currency of these MonetaryAmountFormatSymbols. */ public String getInternationalCurrencySymbol() { return formatSymbols.getInternationalCurrencySymbol(); } /**
/** * Return the international string denoting the local currency. * @return the international string denoting the local currency * @stable ICU 2.0 */ public String getInternationalCurrencySymbol() { return dfs.getInternationalCurrencySymbol(); }
/** Return the unprefixed international currency code for bitcoins configured for this * object. The return value of this method is constant throughough the life of an instance. */ public String coinCode() { synchronized(numberFormat) { return numberFormat.getDecimalFormatSymbols().getInternationalCurrencySymbol(); }}
/** Return the unprefixed international currency code for bitcoins configured for this * object. The return value of this method is constant throughough the life of an instance. */ public String coinCode() { synchronized(numberFormat) { return numberFormat.getDecimalFormatSymbols().getInternationalCurrencySymbol(); }}
/** Return the unprefixed international currency code for bitcoins configured for this * object. The return value of this method is constant throughough the life of an instance. */ public String coinCode() { synchronized(numberFormat) { return numberFormat.getDecimalFormatSymbols().getInternationalCurrencySymbol(); }}
public String getCurrencyCode() { return _currencyCode != null ? _currencyCode : getDecimalFormatSymbols().getInternationalCurrencySymbol(); }
public String getCurrencyCode() { return _currencyCode != null ? _currencyCode : getDecimalFormatSymbols().getInternationalCurrencySymbol(); }
/** Return the unprefixed international currency code for bitcoins configured for this * object. The return value of this method is constant throughough the life of an instance. */ public String coinCode() { synchronized(numberFormat) { return numberFormat.getDecimalFormatSymbols().getInternationalCurrencySymbol(); }}
/** * ISO 4217 currency code * */ @JSFProperty public String getCurrencyCode() { return _currencyCode != null ? _currencyCode : getDecimalFormatSymbols().getInternationalCurrencySymbol(); }
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; }
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()); }
/** * 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()); }
/** * 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()); }