Package org.teavm.classlib.impl.unicode

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


        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

Related Classes of org.teavm.classlib.impl.unicode.CLDRDecimalData

Copyright © 2018 www.massapicom. 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.