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