2 instantiations of TextInfo
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
623TextInfo tempTextInfo = new TextInfo(_cultureData);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (1)
35internal static readonly TextInfo Invariant = new TextInfo(CultureData.Invariant, readOnly: true) { _isAsciiCasingSameAsInvariant = NullableBool.True };
43 references to TextInfo
Microsoft.CodeAnalysis (1)
CaseInsensitiveComparison.cs (1)
26private static readonly TextInfo s_unicodeCultureTextInfo = GetUnicodeCulture().TextInfo;
Microsoft.CodeAnalysis.Workspaces (5)
PatternMatching\AllLowerCamelCaseMatcher.cs (4)
29TextInfo textInfo) 31private readonly TextInfo _textInfo = textInfo; 134private static char ToLower(char v, TextInfo textInfo) 255var textInfo = _textInfo;
PatternMatching\PatternMatcher.cs (1)
36private readonly TextInfo _textInfo;
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
282[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.TextInfo))]
netstandard (1)
netstandard.cs (1)
853[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.TextInfo))]
System.Globalization (1)
System.Globalization.cs (1)
11[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.TextInfo))]
System.Private.CoreLib (32)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (4)
530public static char ToUpperInvariant(char c) => TextInfo.ToUpperInvariant(c); 538public static char ToUpperOrdinal(char c) => TextInfo.ToUpperOrdinal(c); 567public static char ToLowerInvariant(char c) => TextInfo.ToLowerInvariant(c); 574public static char ToLowerOrdinal(char c) => TextInfo.ToLowerOrdinal(c);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (1)
2294internal static string AnsiToLower(string testString) => TextInfo.ToLowerAsciiInvariant(testString);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (5)
60private TextInfo? _textInfo; 616public virtual TextInfo TextInfo 623TextInfo tempTextInfo = new TextInfo(_cultureData); 899ci._textInfo = (TextInfo)_textInfo.Clone(); 952newInfo._textInfo = TextInfo.ReadOnly(ci._textInfo);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (2)
704TextInfo.Invariant.ChangeCaseToUpper(source, destination); // this is the best so far for NLS. 730TextInfo.Invariant.ChangeCaseToLower(source, destination); // this is the best so far for NLS.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (9)
35internal static readonly TextInfo Invariant = new TextInfo(CultureData.Invariant, readOnly: true) { _isAsciiCasingSameAsInvariant = NullableBool.True }; 79((TextInfo)o).SetReadOnlyState(false); 87public static TextInfo ReadOnly(TextInfo textInfo) 96TextInfo clonedTextInfo = (TextInfo)(textInfo.MemberwiseClone()); 249private static unsafe void ChangeCaseCommon<TConversion>(TextInfo? instance, ReadOnlySpan<char> source, Span<char> destination) where TConversion : struct 299private static unsafe string ChangeCaseCommon<TConversion>(TextInfo? instance, string source) where TConversion : struct 594return obj is TextInfo otherTextInfo
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.cs (2)
277TextInfo.Invariant.ChangeCaseToLower(source, destination); 329TextInfo.Invariant.ChangeCaseToUpper(source, destination);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasick.cs (1)
262c = TextInfo.ToUpperOrdinal(c);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\StringSearchValuesHelper.cs (1)
377public static char TransformInput(char input) => TextInfo.ToUpperAsciiInvariant(input);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
2581return TextInfo.ToLowerInvariant(this); 2596return TextInfo.ToUpperInvariant(this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (5)
227private static unsafe Rune ChangeCaseCultureAware(Rune rune, TextInfo textInfo, bool toUpper) 1539return ChangeCaseCultureAware(value, TextInfo.Invariant, toUpper: false); 1588return ChangeCaseCultureAware(value, TextInfo.Invariant, toUpper: true); 1610return UnsafeCreate(TextInfo.ToUpperOrdinal((char)value._value)); 1631return UnsafeCreate(TextInfo.ToLowerOrdinal((char)value._value));
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
256[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.TextInfo))]
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexCompiler.cs (1)
340private LocalBuilder? DeclareTextInfo() => _ilg!.DeclareLocal(typeof(TextInfo));