/** * Specify whether all new NumberFormat instances will use latin digits * and related characters rather than the localized ones. * * @param useLatinDigits true if latin digits/etc should be used, false if * localized digits/etc should be used. */ public static void setForcedLatinDigits(boolean useLatinDigits) { // Invalidate cached formats if changing if (useLatinDigits != forcedLatinDigits()) { cachedCurrencyFormat = null; cachedDecimalFormat = null; cachedPercentFormat = null; cachedScientificFormat = null; } if (useLatinDigits) { if (latinNumberConstants == null) { latinNumberConstants = createLatinNumberConstants( localizedNumberConstants); } defaultNumberConstants = latinNumberConstants; } else { defaultNumberConstants = localizedNumberConstants; } }
/** * Specify whether all new NumberFormat instances will use latin digits * and related characters rather than the localized ones. * * @param useLatinDigits true if latin digits/etc should be used, false if * localized digits/etc should be used. */ public static void setForcedLatinDigits(boolean useLatinDigits) { // Invalidate cached formats if changing if (useLatinDigits != forcedLatinDigits()) { cachedCurrencyFormat = null; cachedDecimalFormat = null; cachedPercentFormat = null; cachedScientificFormat = null; } if (useLatinDigits) { if (latinNumberConstants == null) { latinNumberConstants = createLatinNumberConstants( localizedNumberConstants); } defaultNumberConstants = latinNumberConstants; } else { defaultNumberConstants = localizedNumberConstants; } }
/** * Specify whether all new NumberFormat instances will use latin digits * and related characters rather than the localized ones. * * @param useLatinDigits true if latin digits/etc should be used, false if * localized digits/etc should be used. */ public static void setForcedLatinDigits(boolean useLatinDigits) { // Invalidate cached formats if changing if (useLatinDigits != forcedLatinDigits()) { cachedCurrencyFormat = null; cachedDecimalFormat = null; cachedPercentFormat = null; cachedScientificFormat = null; } if (useLatinDigits) { if (latinNumberConstants == null) { latinNumberConstants = createLatinNumberConstants( localizedNumberConstants); } defaultNumberConstants = latinNumberConstants; } else { defaultNumberConstants = localizedNumberConstants; } }