Skip to content

Commit

Permalink
Synced DecimalFormatSymbols and tests.
Browse files Browse the repository at this point in the history
	Change on 2017/01/31 by kstanger <kstanger@google.com>

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=146111847
  • Loading branch information
kstanger committed Feb 3, 2017
1 parent 8d59d23 commit 459c93e
Show file tree
Hide file tree
Showing 8 changed files with 1,668 additions and 651 deletions.

This file was deleted.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Expand Up @@ -116,7 +116,6 @@ public final class LocaleData {
private LocaleData() { private LocaleData() {
} }


/* J2ObjC unused.
public static Locale mapInvalidAndNullLocales(Locale locale) { public static Locale mapInvalidAndNullLocales(Locale locale) {
if (locale == null) { if (locale == null) {
return Locale.getDefault(); return Locale.getDefault();
Expand All @@ -127,7 +126,7 @@ public static Locale mapInvalidAndNullLocales(Locale locale) {
} }


return locale; return locale;
}*/ }


/** /**
* Returns a shared LocaleData for the given locale. * Returns a shared LocaleData for the given locale.
Expand Down
Expand Up @@ -332,7 +332,12 @@ jboolean Java_libcore_icu_ICU_initLocaleDataNative(
result->monetarySeparator_ = [[numberFormatter currencyGroupingSeparator] characterAtIndex:0]; result->monetarySeparator_ = [[numberFormatter currencyGroupingSeparator] characterAtIndex:0];
LibcoreIcuLocaleData_set_minusSign_(result, [numberFormatter minusSign]); LibcoreIcuLocaleData_set_minusSign_(result, [numberFormatter minusSign]);
LibcoreIcuLocaleData_set_exponentSeparator_(result, [numberFormatter exponentSymbol]); LibcoreIcuLocaleData_set_exponentSeparator_(result, [numberFormatter exponentSymbol]);
LibcoreIcuLocaleData_set_infinity_(result, [numberFormatter positiveInfinitySymbol]); NSString *infinity = [numberFormatter positiveInfinitySymbol];
NSString *plusSign = [numberFormatter plusSign];
if ([infinity hasPrefix:plusSign]) {
infinity = [infinity substringFromIndex:plusSign.length];
}
LibcoreIcuLocaleData_set_infinity_(result, infinity);
LibcoreIcuLocaleData_set_NaN_(result, [numberFormatter notANumberSymbol]); LibcoreIcuLocaleData_set_NaN_(result, [numberFormatter notANumberSymbol]);
LibcoreIcuLocaleData_set_currencySymbol_(result, [numberFormatter currencySymbol]); LibcoreIcuLocaleData_set_currencySymbol_(result, [numberFormatter currencySymbol]);
LibcoreIcuLocaleData_set_internationalCurrencySymbol_( LibcoreIcuLocaleData_set_internationalCurrencySymbol_(
Expand Down

0 comments on commit 459c93e

Please sign in to comment.