private int[] GetLocaleInfo(LocaleGroupingData type) { // TODO: Implement this fully. switch (type) { case LocaleGroupingData.Digit: return(new int[] { 3 }); case LocaleGroupingData.Monetary: return(new int[] { 3 }); default: Contract.Assert(false, "Unmatched case in GetLocaleInfo(LocaleGroupingData)"); throw new NotImplementedException(); } }
private int[] GetLocaleInfo(LocaleGroupingData type) { Contract.Assert(this.sWindowsName != null, "[CultureData.GetLocaleInfo(LocaleGroupingData)] Expected this.sWindowsName to be populated already"); int primaryGroupingSize = 0; int secondaryGroupingSize = 0; bool result = Interop.GlobalizationInterop.GetLocaleInfoGroupingSizes(this.sWindowsName, (uint)type, ref primaryGroupingSize, ref secondaryGroupingSize); if (!result) { Contract.Assert(false, "[CultureData.GetLocaleInfo(LocaleGroupingData type)] failed"); } if (secondaryGroupingSize == 0) { return(new int[] { primaryGroupingSize }); } return(new int[] { primaryGroupingSize, secondaryGroupingSize }); }
private int[] IcuGetLocaleInfo(LocaleGroupingData type) { Debug.Assert(!GlobalizationMode.UseNls); Debug.Assert(_sWindowsName != null, "[CultureData.IcuGetLocaleInfo(LocaleGroupingData)] Expected _sWindowsName to be populated already"); int primaryGroupingSize = 0; int secondaryGroupingSize = 0; bool result = Interop.Globalization.GetLocaleInfoGroupingSizes(_sWindowsName, (uint)type, ref primaryGroupingSize, ref secondaryGroupingSize); if (!result) { Debug.Fail("[CultureData.IcuGetLocaleInfo(LocaleGroupingData type)] failed"); } if (secondaryGroupingSize == 0) { return(new int[] { primaryGroupingSize }); } return(new int[] { primaryGroupingSize, secondaryGroupingSize }); }
private int[] NlsGetLocaleInfo(LocaleGroupingData type) { Debug.Assert(ShouldUseUserOverrideNlsData); Debug.Assert(_sWindowsName != null, "[CultureData.DoGetLocaleInfoInt] Expected _sWindowsName to be populated by already"); return(ConvertWin32GroupString(GetLocaleInfoFromLCType(_sWindowsName, (uint)type, _bUseOverrides))); }
private int[] GetLocaleInfo(LocaleGroupingData type) { Contract.Assert(_sWindowsName != null, "[CultureData.GetLocaleInfo(LocaleGroupingData)] Expected _sWindowsName to be populated already"); int primaryGroupingSize = 0; int secondaryGroupingSize = 0; bool result = Interop.GlobalizationInterop.GetLocaleInfoGroupingSizes(_sWindowsName, (uint)type, ref primaryGroupingSize, ref secondaryGroupingSize); if (!result) { Contract.Assert(false, "[CultureData.GetLocaleInfo(LocaleGroupingData type)] failed"); } if (secondaryGroupingSize == 0) { return new int[] { primaryGroupingSize }; } return new int[] { primaryGroupingSize, secondaryGroupingSize }; }
private int[] GetLocaleInfo(LocaleGroupingData type) { return(ConvertWin32GroupString(GetLocaleInfoFromLCType(_sWindowsName, (uint)type, UseUserOverride))); }
private int[] GetLocaleInfo(LocaleGroupingData type) { return(new int [] { 0 }); }
private int[] GetLocaleInfo(LocaleGroupingData type) { return ConvertWin32GroupString(GetLocaleInfoFromLCType(_sWindowsName, (uint)type, UseUserOverride)); }
private int[] NlsGetLocaleInfo(LocaleGroupingData type) { Debug.Assert(GlobalizationMode.UseNls); Debug.Assert(_sWindowsName != null, "[CultureData.DoGetLocaleInfoInt] Expected _sWindowsName to be populated by already"); return(ConvertWin32GroupString(GetLocaleInfoFromLCType(_sWindowsName, (uint)type, UseUserOverride))); }
private int[] GetLocaleInfo(LocaleGroupingData type) { return new int [] { 0 }; }
private int[] GetLocaleInfo(LocaleGroupingData type) { // TODO: Implement this fully. switch (type) { case LocaleGroupingData.Digit: return new int[] { 3 }; case LocaleGroupingData.Monetary: return new int[] { 3 }; default: Contract.Assert(false, "Unmatched case in GetLocaleInfo(LocaleGroupingData)"); throw new NotImplementedException(); } }