179 references to Invariant
System.Private.CoreLib (179)
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.cs (2)
104Debug.Assert(!GlobalizationMode.Invariant); 326if (GlobalizationMode.Invariant)
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (2)
88Debug.Assert(!GlobalizationMode.Invariant); 124Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Nls.cs (1)
15Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Unix.cs (1)
31return GlobalizationMode.Invariant ? Invariant.iTwoDigitYearMax : -1;
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (16)
146if (GlobalizationMode.Invariant) 290GlobalizationMode.Invariant ? 428if (!GlobalizationMode.Invariant) 545if (!GlobalizationMode.Invariant) 604if (GlobalizationMode.Invariant || prefix.IsEmpty || (options & ValidIndexMaskOffFlags) != 0) 688if (!GlobalizationMode.Invariant) 747if (GlobalizationMode.Invariant || suffix.IsEmpty || (options & ValidIndexMaskOffFlags) != 0) 951if (!GlobalizationMode.Invariant) 1059if (!GlobalizationMode.Invariant) 1325if (!GlobalizationMode.Invariant) 1418if (GlobalizationMode.Invariant) 1428if (GlobalizationMode.Invariant) 1465if (GlobalizationMode.Invariant) 1498if (GlobalizationMode.Invariant) 1548if (!GlobalizationMode.Invariant) 1589if (GlobalizationMode.Invariant)
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (18)
25if (!GlobalizationMode.Invariant) 37if (GlobalizationMode.Invariant) 52Debug.Assert(!GlobalizationMode.Invariant); 68Debug.Assert(!GlobalizationMode.Invariant); 106Debug.Assert(!GlobalizationMode.Invariant); 221Debug.Assert(!GlobalizationMode.Invariant); 316Debug.Assert(!GlobalizationMode.Invariant); 345Debug.Assert(!GlobalizationMode.Invariant); 427Debug.Assert(!GlobalizationMode.Invariant); 500Debug.Assert(!GlobalizationMode.Invariant); 529Debug.Assert(!GlobalizationMode.Invariant); 612Debug.Assert(!GlobalizationMode.Invariant); 686Debug.Assert(!GlobalizationMode.Invariant); 743Debug.Assert(!GlobalizationMode.Invariant); 792Debug.Assert(!GlobalizationMode.Invariant); 822Debug.Assert(!GlobalizationMode.Invariant); 847Debug.Assert(!GlobalizationMode.Invariant); 946Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Invariant.cs (2)
86Debug.Assert(GlobalizationMode.Invariant); 112Debug.Assert(GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (16)
20if (GlobalizationMode.Invariant) 50Debug.Assert(!GlobalizationMode.Invariant); 79Debug.Assert(!GlobalizationMode.Invariant); 91Debug.Assert(!GlobalizationMode.Invariant); 108Debug.Assert(!GlobalizationMode.Invariant); 186Debug.Assert(!GlobalizationMode.Invariant); 210Debug.Assert(!GlobalizationMode.Invariant); 264Debug.Assert(!GlobalizationMode.Invariant); 311Debug.Assert(!GlobalizationMode.Invariant); 322Debug.Assert(!GlobalizationMode.Invariant); 343Debug.Assert(!GlobalizationMode.Invariant); 373Debug.Assert(!GlobalizationMode.Invariant); 425Debug.Assert(!GlobalizationMode.Invariant); 525Debug.Assert(!GlobalizationMode.Invariant); 568Debug.Assert(!GlobalizationMode.Invariant); 621Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Utf8.cs (1)
42if (!GlobalizationMode.Invariant)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (31)
475if (!GlobalizationMode.Invariant && (retVal == null || retVal.IsNeutralCulture)) 536if (GlobalizationMode.Invariant) 676if (GlobalizationMode.Invariant || (GlobalizationMode.UseNls ? !NlsIsEnsurePredefinedLocaleName(cultureName) : !IcuIsEnsurePredefinedLocaleName(cultureName))) 782if (GlobalizationMode.Invariant) 868if (GlobalizationMode.Invariant) 938if (!GlobalizationMode.Invariant && Name.Length > 0) 979if (englishDisplayName == null && !GlobalizationMode.Invariant) 1041if (nativeDisplayName == null && !GlobalizationMode.Invariant) 1120if (!GlobalizationMode.Invariant && Name.Length > 0) 1152if (_iGeoId == undef && !GlobalizationMode.Invariant) 1168if (localizedCountry == null && !GlobalizationMode.Invariant) 1366if (_saLongTimes == null && !GlobalizationMode.Invariant) 1384if (_saShortTimes == null && !GlobalizationMode.Invariant) 1531if (_iFirstDayOfWeek == undef && !GlobalizationMode.Invariant) 1648if (GlobalizationMode.Invariant || IsInvariantCulture) 1722if (GlobalizationMode.Invariant) 1779if (_iReadingLayout == undef && !GlobalizationMode.Invariant) 1831if (_iDefaultAnsiCodePage == undef && !GlobalizationMode.Invariant) 1846if (_iDefaultOemCodePage == undef && !GlobalizationMode.Invariant) 1861if (_iDefaultMacCodePage == undef && !GlobalizationMode.Invariant) 1876if (_iDefaultEbcdicCodePage == undef && !GlobalizationMode.Invariant) 1888if (_iLanguage == 0 && !GlobalizationMode.Invariant) 1912if (GlobalizationMode.Invariant) 1956if (_sTimeSeparator == null && !GlobalizationMode.Invariant) 1985if (GlobalizationMode.Invariant) 2300if (GlobalizationMode.Invariant) 2312if (GlobalizationMode.Invariant) 2324if (GlobalizationMode.Invariant) 2337if (GlobalizationMode.Invariant) 2350if (GlobalizationMode.Invariant) 2363if (GlobalizationMode.Invariant)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (4)
116Debug.Assert(!GlobalizationMode.Invariant); 214Debug.Assert(!GlobalizationMode.Invariant); 454Debug.Assert(!GlobalizationMode.Invariant); 520Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (4)
42Debug.Assert(!GlobalizationMode.Invariant); 116Debug.Assert(!GlobalizationMode.Invariant); 447Debug.Assert(!GlobalizationMode.Invariant); 460Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Unix.cs (1)
17Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (4)
156private static string GetCultureNotSupportedExceptionMessage() => GlobalizationMode.Invariant ? SR.Argument_CultureNotSupportedInInvariantMode : SR.Argument_CultureNotSupported; 786Debug.Assert(!GlobalizationMode.Invariant); 849if (GlobalizationMode.Invariant) 1109if (predefinedOnly && !GlobalizationMode.Invariant)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.Unix.cs (1)
12if (GlobalizationMode.Invariant)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (2)
2104if (!GlobalizationMode.Invariant) 2307if (!GlobalizationMode.Invariant && IsHebrewChar(ch) && TokenMask == TokenType.RegularTokenMask)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
1052if (GlobalizationMode.Invariant) 1074if (GlobalizationMode.Invariant)
src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.cs (1)
19internal static bool PredefinedCulturesOnly { get; } = AppContextConfigHelper.GetBooleanConfig("System.Globalization.PredefinedCulturesOnly", "DOTNET_SYSTEM_GLOBALIZATION_PREDEFINED_CULTURES_ONLY", GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.Unix.cs (1)
20if (!GlobalizationMode.Invariant)
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (2)
86if (GlobalizationMode.Invariant) 130if (GlobalizationMode.Invariant)
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Icu.cs (3)
12Debug.Assert(!GlobalizationMode.Invariant); 56Debug.Assert(!GlobalizationMode.Invariant); 81Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Nls.cs (4)
14Debug.Assert(!GlobalizationMode.Invariant); 46Debug.Assert(!GlobalizationMode.Invariant); 61Debug.Assert(!GlobalizationMode.Invariant); 93Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\InvariantModeCasing.cs (5)
113Debug.Assert(GlobalizationMode.Invariant); 139Debug.Assert(GlobalizationMode.Invariant); 183Debug.Assert(GlobalizationMode.Invariant); 228Debug.Assert(GlobalizationMode.Invariant); 290Debug.Assert(GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Icu.cs (2)
15if (GlobalizationMode.Invariant) 141Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.cs (4)
17if (GlobalizationMode.Invariant || Ascii.IsValid(source)) 33if (GlobalizationMode.Invariant || Ascii.IsValid(strInput)) 54if (GlobalizationMode.Invariant || Ascii.IsValid(source)) 77if (GlobalizationMode.Invariant || Ascii.IsValid(source))
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Icu.cs (4)
15Debug.Assert(!GlobalizationMode.Invariant); 49Debug.Assert(!GlobalizationMode.Invariant); 124Debug.Assert(!GlobalizationMode.Invariant); 170Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (4)
16Debug.Assert(!GlobalizationMode.Invariant); 37Debug.Assert(!GlobalizationMode.Invariant); 117Debug.Assert(!GlobalizationMode.Invariant); 167Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (5)
68if (GlobalizationMode.Invariant) 344if (GlobalizationMode.Invariant) 618if (GlobalizationMode.Invariant) 673if (GlobalizationMode.Invariant) 695if (GlobalizationMode.Invariant)
src\libraries\System.Private.CoreLib\src\System\Globalization\OrdinalCasing.Icu.cs (4)
158Debug.Assert(!GlobalizationMode.Invariant); 188Debug.Assert(!GlobalizationMode.Invariant); 293Debug.Assert(!GlobalizationMode.Invariant); 357Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (12)
142if (GlobalizationMode.Invariant) 163if (GlobalizationMode.Invariant) 175if (GlobalizationMode.Invariant) 185Debug.Assert(!GlobalizationMode.Invariant); 194if (GlobalizationMode.Invariant) 226Debug.Assert(!GlobalizationMode.Invariant); 262Debug.Assert(!GlobalizationMode.Invariant); 413if (GlobalizationMode.Invariant) 434if (GlobalizationMode.Invariant) 446if (GlobalizationMode.Invariant) 651if (GlobalizationMode.Invariant) 691result.Append(GlobalizationMode.Invariant ? InvariantModeCasing.ToUpper(input[inputIndex]) : ToUpper(input[inputIndex]));
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.Icu.cs (1)
21Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.Nls.cs (1)
12Debug.Assert(!GlobalizationMode.Invariant);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.cs (4)
208if (GlobalizationMode.Invariant) 232if (GlobalizationMode.Invariant) 260if (GlobalizationMode.Invariant) 284if (GlobalizationMode.Invariant)
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
131if (attr == null || (GlobalizationMode.Invariant && GlobalizationMode.PredefinedCulturesOnly))
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (5)
227Debug.Assert(!GlobalizationMode.Invariant, "This should've been checked by the caller."); 1428if (GlobalizationMode.Invariant) 1452if (GlobalizationMode.Invariant) 1477if (GlobalizationMode.Invariant) 1501if (GlobalizationMode.Invariant)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.cs (2)
17GlobalizationMode.Invariant || 46if (GlobalizationMode.Invariant || GlobalizationMode.UseNls || windowsId is null)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.Unix.cs (3)
42if (GlobalizationMode.Invariant || uiCulture.Name.Length == 0 || uiCulture.TwoLetterISOLanguageName == "en") 77Debug.Assert(!GlobalizationMode.Invariant); 103if (GlobalizationMode.Invariant)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (3)
239if (GlobalizationMode.Invariant) 257if (GlobalizationMode.Invariant) 275if (GlobalizationMode.Invariant)