Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix/add the comments
  • Loading branch information
tarekgh committed Jun 21, 2022
commit 1604af39993113a0984ed10cc6cdab56356adcab
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,7 @@ private string[] GetNativeDigits()
{
string[] result = NumberFormatInfo.s_asciiDigits;

// LOCALE_SNATIVEDIGITS (array of 10 single character strings).
// NLS LOCALE_SNATIVEDIGITS (array of 10 single character strings). In case of ICU, the buffer can be longer.
string digits = GetLocaleInfoCoreUserOverride(LocaleStringData.Digits);

// if digits.Length < NumberFormatInfo.s_asciiDigits.Length means the native digits setting is messed up in the host machine.
Expand All @@ -2156,7 +2156,7 @@ private string[] GetNativeDigits()
return result;
}

// None ASCII digits
// Non-ASCII digits

// Check if values coming from ICU separated by 0xFFFF
int ffffPos = digits.IndexOf('\uFFFF');
Expand All @@ -2172,6 +2172,8 @@ private string[] GetNativeDigits()
return result;
}

// ICU case

int start = 0;
int index = 0;

Expand Down