5 writes to _sRealName
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (4)
553invariant._sRealName = ""; // Name you passed in (ie: en-US, en, or de-DE_phoneb) 785cd._sRealName = cd._sName; 801culture._sRealName = cultureName; 839_sRealName = fallbackCultureName;
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
155_sRealName = NormalizeCultureName(_sWindowsName, indexOfExtensions > 0 ? _sRealName.AsSpan(indexOfExtensions) : ReadOnlySpan<char>.Empty, _sRealName, out int collationStart);
42 references to _sRealName
System.Private.CoreLib (42)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (23)
821string cultureName = _sRealName; 904Debug.Assert(_sRealName != null, "[CultureData.CultureName] Expected _sRealName to be populated by already"); 908return _sName is "zh-CHS" or "zh-CHT" ? _sName : _sRealName; 924internal string ParentName => _sParent ??= GetLocaleInfoCore(_sRealName, LocaleStringData.ParentName); 1103NlsGetThreeLetterWindowsLanguageName(_sRealName) : 1104IcuGetThreeLetterWindowsLanguageName(_sRealName); 1148_iGeoId = GlobalizationMode.UseNls ? NlsGetLocaleInfo(LocaleNumberData.GeoId) : IcuGetGeoId(_sRealName); 1225NlsGetConsoleFallbackName(_sRealName) : 1226IcuGetConsoleFallbackName(_sRealName); 1775Debug.Assert(_sRealName != null, "[CultureData.IsRightToLeft] Expected _sRealName to be populated by already"); 1799Debug.Assert(_sRealName != null, "[CultureData.TextInfoName] Expected _sRealName to be populated by already"); 1800return _sRealName; 1811Debug.Assert(_sRealName != null, "[CultureData.SortName] Expected _sRealName to be populated by already"); 1812return _sRealName; 1827_iDefaultAnsiCodePage = GetAnsiCodePage(_sRealName); 1842_iDefaultOemCodePage = GetOemCodePage(_sRealName); 1857_iDefaultMacCodePage = GetMacCodePage(_sRealName); 1872_iDefaultEbcdicCodePage = GetEbcdicCodePage(_sRealName); 1884Debug.Assert(_sRealName != null, "[CultureData.LCID] Expected this.sRealName to be populated already"); 1885_iLanguage = GlobalizationMode.UseNls ? NlsLocaleNameToLCID(_sRealName) : IcuLocaleNameToLCID(_sRealName); 2245Debug.Assert(_sRealName != null); 2246nfi._digitSubstitution = ShouldUseUserOverrideNlsData ? NlsGetLocaleInfo(LocaleNumberData.DigitSubstitution) : IcuGetDigitSubstitution(_sRealName);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (8)
115Debug.Assert(_sRealName != null); 119string realNameBuffer = _sRealName; 155_sRealName = NormalizeCultureName(_sWindowsName, indexOfExtensions > 0 ? _sRealName.AsSpan(indexOfExtensions) : ReadOnlySpan<char>.Empty, _sRealName, out int collationStart); 163_sSpecificCulture = _bNeutral ? IcuLocaleData.GetSpecificCultureName(_sRealName) : _sRealName; 167_sName = collationStart < 0 || _bNeutral ? _sRealName : _sRealName.Substring(0, collationStart);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (11)
50Debug.Assert(_sRealName != null, "[CultureData.DoGetLocaleInfo] Expected _sRealName to be populated by already"); 51return NlsGetLocaleInfo(_sRealName, type); 77Debug.Assert(_sRealName != null, "[CultureData.DoGetLocaleInfoInt] Expected _sRealName to be populated by already"); 78return GetLocaleInfoExInt(_sRealName, lctype); 84Debug.Assert(_sRealName != null, "[CultureData.DoGetLocaleInfoInt] Expected _sRealName to be populated by already"); 85return ConvertWin32GroupString(GetLocaleInfoFromLCType(_sRealName, (uint)type, _bUseOverrides)); 97Debug.Assert(_sRealName != null, "[CultureData.DoGetLocaleInfoInt] Expected _sRealName to be populated by already"); 98return ReescapeWin32String(GetLocaleInfoFromLCType(_sRealName, Interop.Kernel32.LOCALE_STIMEFORMAT, _bUseOverrides)); 104Debug.Assert(_sRealName != null, "[CultureData.DoGetLocaleInfoInt] Expected _sRealName to be populated by already"); 106int result = GetLocaleInfoExInt(_sRealName, Interop.Kernel32.LOCALE_IFIRSTDAYOFWEEK | (!_bUseOverrides ? Interop.Kernel32.LOCALE_NOUSEROVERRIDE : 0)); 530if (string.Equals(context.strings[i], _sRealName, StringComparison.OrdinalIgnoreCase))