Examples of CLDRDecimalData


Examples of org.teavm.classlib.impl.unicode.CLDRDecimalData

    public TDecimalFormat(String pattern, TDecimalFormatSymbols value) {
        symbols = (TDecimalFormatSymbols)value.clone();
        TLocale locale = symbols.getLocale();
        applyPattern(pattern);

        CLDRDecimalData decimalData = CLDRHelper.resolveDecimalData(locale.getLanguage(), locale.getCountry());
        super.setMaximumFractionDigits(decimalData.getMaximumFractionDigits());
        super.setMaximumIntegerDigits(decimalData.getMaximumIntegerDigits());
        super.setMinimumFractionDigits(decimalData.getMinimumFractionDigits());
        super.setMinimumIntegerDigits(decimalData.getMinimumIntegerDigits());
    }
View Full Code Here

Examples of org.teavm.classlib.impl.unicode.CLDRDecimalData

        this.locale = locale;
        initData();
    }

    private void initData() {
        CLDRDecimalData data = CLDRHelper.resolveDecimalData(locale.getLanguage(), locale.getCountry());
        zeroDigit = '0';
        groupingSeparator = (char)data.getGroupingSeparator();
        decimalSeparator = (char)data.getDecimalSeparator();
        perMill = (char)data.getPerMill();
        percent = (char)data.getPercent();
        digit = '#';
        patternSeparator = ';';
        NaN = data.getNaN();
        infinity = data.getInfinity();
        minusSign = (char)data.getMinusSign();
        monetaryDecimalSeparator = (char)data.getMonetaryDecimalSeparator();
        exponentSeparator = data.getExponentSeparator();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.