16 references to RegexCaseBehavior
System.Text.RegularExpressions (16)
System\Text\RegularExpressions\CompiledRegexRunner.cs (1)
23
private
RegexCaseBehavior
_caseBehavior;
System\Text\RegularExpressions\RegexCaseEquivalences.cs (12)
31
public static bool TryFindCaseEquivalencesForCharWithIBehavior(char c, CultureInfo culture, scoped ref
RegexCaseBehavior
mappingBehavior, out ReadOnlySpan<char> equivalences)
37
if (mappingBehavior ==
RegexCaseBehavior
.NotSet)
43
'i' or 'I' when mappingBehavior is
RegexCaseBehavior
.Invariant => "Ii".AsSpan(),
46
'i' or 'I' or '\u0130' when mappingBehavior is
RegexCaseBehavior
.NonTurkish => "Ii\u0130".AsSpan(),
49
'I' or '\u0131' when mappingBehavior is
RegexCaseBehavior
.Turkish => "I\u0131".AsSpan(),
50
'i' or '\u0130' when mappingBehavior is
RegexCaseBehavior
.Turkish => "i\u0130".AsSpan(),
64
/// Returns which <see cref="
RegexCaseBehavior
"/> should be used based on the passed in <paramref name="culture"/>.
67
/// <returns>The <see cref="
RegexCaseBehavior
"/> that should be used.</returns>
69
public static
RegexCaseBehavior
GetRegexBehavior(CultureInfo culture)
72
culture.Name.Length == 0 ?
RegexCaseBehavior
.Invariant :
73
IsTurkishOrAzeri(culture.Name) ?
RegexCaseBehavior
.Turkish :
74
RegexCaseBehavior
.NonTurkish;
System\Text\RegularExpressions\RegexCharClass.cs (1)
318
private
RegexCaseBehavior
_caseBehavior;
System\Text\RegularExpressions\RegexNode.cs (1)
110
public static RegexNode CreateOneWithCaseConversion(char ch, RegexOptions options, CultureInfo? culture, ref
RegexCaseBehavior
caseBehavior)
System\Text\RegularExpressions\RegexParser.cs (1)
33
private
RegexCaseBehavior
_caseBehavior;