36 references to GetCaseCompareOfComparisonCulture
System.Private.CoreLib (36)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.cs (12)
54
return CultureInfo.CurrentCulture.CompareInfo.Compare(span, other, string.
GetCaseCompareOfComparisonCulture
(comparisonType)) == 0;
58
return CompareInfo.Invariant.Compare(span, other, string.
GetCaseCompareOfComparisonCulture
(comparisonType)) == 0;
104
return CultureInfo.CurrentCulture.CompareInfo.Compare(span, other, string.
GetCaseCompareOfComparisonCulture
(comparisonType));
108
return CompareInfo.Invariant.Compare(span, other, string.
GetCaseCompareOfComparisonCulture
(comparisonType));
140
return CultureInfo.CurrentCulture.CompareInfo.IndexOf(span, value, string.
GetCaseCompareOfComparisonCulture
(comparisonType));
144
return CompareInfo.Invariant.IndexOf(span, value, string.
GetCaseCompareOfComparisonCulture
(comparisonType));
175
return CultureInfo.CurrentCulture.CompareInfo.LastIndexOf(span, value, string.
GetCaseCompareOfComparisonCulture
(comparisonType));
179
return CompareInfo.Invariant.LastIndexOf(span, value, string.
GetCaseCompareOfComparisonCulture
(comparisonType));
306
return CultureInfo.CurrentCulture.CompareInfo.IsSuffix(span, value, string.
GetCaseCompareOfComparisonCulture
(comparisonType));
310
return CompareInfo.Invariant.IsSuffix(span, value, string.
GetCaseCompareOfComparisonCulture
(comparisonType));
344
return CultureInfo.CurrentCulture.CompareInfo.IsPrefix(span, value, string.
GetCaseCompareOfComparisonCulture
(comparisonType));
348
return CompareInfo.Invariant.IsPrefix(span, value, string.
GetCaseCompareOfComparisonCulture
(comparisonType));
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.Utf8.cs (2)
42
return CultureInfo.CurrentCulture.CompareInfo.IsPrefixUtf8(span, value, string.
GetCaseCompareOfComparisonCulture
(comparisonType));
48
return CompareInfo.Invariant.IsPrefixUtf8(span, value, string.
GetCaseCompareOfComparisonCulture
(comparisonType));
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (14)
221
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB,
GetCaseCompareOfComparisonCulture
(comparisonType));
225
return CompareInfo.Invariant.Compare(strA, strB,
GetCaseCompareOfComparisonCulture
(comparisonType));
390
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB,
GetCaseCompareOfComparisonCulture
(comparisonType));
394
return CompareInfo.Invariant.Compare(strA, indexA, lengthA, strB, indexB, lengthB,
GetCaseCompareOfComparisonCulture
(comparisonType));
538
return CultureInfo.CurrentCulture.CompareInfo.IsSuffix(this, value,
GetCaseCompareOfComparisonCulture
(comparisonType));
542
return CompareInfo.Invariant.IsSuffix(this, value,
GetCaseCompareOfComparisonCulture
(comparisonType));
646
return CultureInfo.CurrentCulture.CompareInfo.Compare(this, value,
GetCaseCompareOfComparisonCulture
(comparisonType)) == 0;
650
return CompareInfo.Invariant.Compare(this, value,
GetCaseCompareOfComparisonCulture
(comparisonType)) == 0;
704
return CultureInfo.CurrentCulture.CompareInfo.Compare(a, b,
GetCaseCompareOfComparisonCulture
(comparisonType)) == 0;
708
return CompareInfo.Invariant.Compare(a, b,
GetCaseCompareOfComparisonCulture
(comparisonType)) == 0;
769
return CultureInfo.CurrentCulture.CompareInfo.GetHashCode(value,
GetCaseCompareOfComparisonCulture
(comparisonType));
773
return CompareInfo.Invariant.GetHashCode(value,
GetCaseCompareOfComparisonCulture
(comparisonType));
1107
return CultureInfo.CurrentCulture.CompareInfo.IsPrefix(this, value,
GetCaseCompareOfComparisonCulture
(comparisonType));
1111
return CompareInfo.Invariant.IsPrefix(this, value,
GetCaseCompareOfComparisonCulture
(comparisonType));
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
1199
StringComparison.CurrentCulture or StringComparison.CurrentCultureIgnoreCase => ReplaceCore(oldValue, newValue, CultureInfo.CurrentCulture.CompareInfo,
GetCaseCompareOfComparisonCulture
(comparisonType)),
1200
StringComparison.InvariantCulture or StringComparison.InvariantCultureIgnoreCase => ReplaceCore(oldValue, newValue, CompareInfo.Invariant,
GetCaseCompareOfComparisonCulture
(comparisonType)),
src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (6)
59
StringComparison.CurrentCulture or StringComparison.CurrentCultureIgnoreCase => CultureInfo.CurrentCulture.CompareInfo.IndexOf(this, value,
GetCaseCompareOfComparisonCulture
(comparisonType)),
60
StringComparison.InvariantCulture or StringComparison.InvariantCultureIgnoreCase => CompareInfo.Invariant.IndexOf(this, value,
GetCaseCompareOfComparisonCulture
(comparisonType)),
258
StringComparison.CurrentCulture or StringComparison.CurrentCultureIgnoreCase => CultureInfo.CurrentCulture.CompareInfo.IndexOf(this, value, startIndex, count,
GetCaseCompareOfComparisonCulture
(comparisonType)),
259
StringComparison.InvariantCulture or StringComparison.InvariantCultureIgnoreCase => CompareInfo.Invariant.IndexOf(this, value, startIndex, count,
GetCaseCompareOfComparisonCulture
(comparisonType)),
383
StringComparison.CurrentCulture or StringComparison.CurrentCultureIgnoreCase => CultureInfo.CurrentCulture.CompareInfo.LastIndexOf(this, value, startIndex, count,
GetCaseCompareOfComparisonCulture
(comparisonType)),
384
StringComparison.InvariantCulture or StringComparison.InvariantCultureIgnoreCase => CompareInfo.Invariant.LastIndexOf(this, value, startIndex, count,
GetCaseCompareOfComparisonCulture
(comparisonType)),