3 writes to _sWindowsName
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (2)
554invariant._sWindowsName = ""; // Name OS thinks the object is (ie: de-DE_phoneb, or en-US (even if en was passed in)) 786cd._sWindowsName = cd._sName;
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
147if (!GetLocaleName(realNameBuffer, out _sWindowsName))
19 references to _sWindowsName
System.Private.CoreLib (19)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (9)
420internal string? InteropName => _sWindowsName; 1338internal string ListSeparator => _sListSeparator ??= ShouldUseUserOverrideNlsData ? NlsGetLocaleInfo(LocaleStringData.ListSeparator) : IcuGetListSeparator(_sWindowsName); 1654Debug.Assert(_sWindowsName != null, "[CultureData.CalendarIds] Expected _sWindowsName to be populated by already"); 1656int count = CalendarData.GetCalendarsCore(_sWindowsName, _bUseOverrides, calendars); 1668if (_sWindowsName == "zh-TW") 1745Debug.Assert(_sWindowsName != null, "[CultureData.GetCalendar] Expected _sWindowsName to be populated by already"); 1746calendarData = new CalendarData(_sWindowsName, calendarId, _bUseOverrides); 2199Debug.Assert(index >= 10, $"Couldn't read native digits for '{_sWindowsName}' successfully."); 2225Debug.Assert(_sWindowsName != null, "[CultureData.GetNFIValues] Expected _sWindowsName to be populated by already");
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (10)
153Debug.Assert(_sWindowsName != null); 155_sRealName = NormalizeCultureName(_sWindowsName, indexOfExtensions > 0 ? _sRealName.AsSpan(indexOfExtensions) : ReadOnlySpan<char>.Empty, _sRealName, out int collationStart); 216Debug.Assert(_sWindowsName != null, "[CultureData.IcuGetLocaleInfo] Expected _sWindowsName to be populated already"); 223return IcuGetLocaleInfo(_sWindowsName, type, uiCultureName); 256Debug.Assert(_sWindowsName != null, "[CultureData.IcuGetLocaleInfo(LocaleNumberData)] Expected _sWindowsName to be populated already"); 267bool result = Interop.Globalization.GetLocaleInfoInt(_sWindowsName, (uint)type, ref value); 280Debug.Assert(_sWindowsName != null, "[CultureData.IcuGetLocaleInfo(LocaleGroupingData)] Expected _sWindowsName to be populated already"); 284bool result = Interop.Globalization.GetLocaleInfoGroupingSizes(_sWindowsName, (uint)type, ref primaryGroupingSize, ref secondaryGroupingSize); 303Debug.Assert(_sWindowsName != null, "[CultureData.GetTimeFormatString(bool shortFormat)] Expected _sWindowsName to be populated already"); 321bool result = Interop.Globalization.GetLocaleTimeFormat(_sWindowsName, shortFormat, buffer, ICU_ULOC_KEYWORD_AND_VALUES_CAPACITY);