130 references to GetUnicodeCategory
Aspire.Hosting.Azure (1)
Utils\ResourceGroupNameHelpers.cs (1)
47var unicodeCategory = CharUnicodeInfo.GetUnicodeCategory(c);
dotnet-svcutil-lib (6)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (1)
2219UnicodeCategory uc = CharUnicodeInfo.GetUnicodeCategory(ch);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (1)
112UnicodeCategory uc = CharUnicodeInfo.GetUnicodeCategory(c);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
1519return (CharUnicodeInfo.GetUnicodeCategory(c) != UnicodeCategory.DecimalDigitNumber); 1524UnicodeCategory uc = CharUnicodeInfo.GetUnicodeCategory(c);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (2)
62return (CharUnicodeInfo.GetUnicodeCategory(c) != UnicodeCategory.DecimalDigitNumber); 67UnicodeCategory uc = CharUnicodeInfo.GetUnicodeCategory(c);
GenerateDocumentationAndConfigFiles (4)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Metrics (4)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Metrics.Legacy (4)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.Build.Tasks.CodeAnalysis (3)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
Microsoft.Build.Tasks.CodeAnalysis.Sdk (3)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
Microsoft.Cci.Extensions (1)
Writers\CSharp\CSDeclarationWriter.Attributes.cs (1)
362var cat = CharUnicodeInfo.GetUnicodeCategory(c);
Microsoft.CodeAnalysis (3)
InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
Microsoft.CodeAnalysis.Analyzers (4)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
Microsoft.CodeAnalysis.CSharp (3)
Parser\CharacterInfo.cs (1)
142|| (ch > 255 && CharUnicodeInfo.GetUnicodeCategory(ch) == UnicodeCategory.SpaceSeparator);
SymbolDisplay\ObjectDisplay.cs (2)
179if (NeedsEscaping(CharUnicodeInfo.GetUnicodeCategory(c))) 241if (escapeNonPrintable && CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.Surrogate)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\StringCopyPasteHelpers.cs (2)
303if (CharUnicodeInfo.GetUnicodeCategory(ch) == UnicodeCategory.Surrogate) 387if (NeedsEscaping(CharUnicodeInfo.GetUnicodeCategory(c)))
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (6)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
src\Compilers\CSharp\Portable\Parser\CharacterInfo.cs (1)
142|| (ch > 255 && CharUnicodeInfo.GetUnicodeCategory(ch) == UnicodeCategory.SpaceSeparator);
src\Compilers\CSharp\Portable\SymbolDisplay\ObjectDisplay.cs (2)
179if (NeedsEscaping(CharUnicodeInfo.GetUnicodeCategory(c))) 241if (escapeNonPrintable && CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.Surrogate)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
LexicalAndXml\LexicalTests.cs (1)
862Assert.Equal(System.Globalization.UnicodeCategory.UppercaseLetter, CharUnicodeInfo.GetUnicodeCategory(text[0]));
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (3)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (1)
208switch (CharUnicodeInfo.GetUnicodeCategory(ch))
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
AbstractResxGenerator.cs (2)
769=> ch == '_' || IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 773var cat = CharUnicodeInfo.GetUnicodeCategory(ch);
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.CodeAnalysis.VisualBasic (7)
Scanner\CharacterInfo.vb (5)
69Return CharUnicodeInfo.GetUnicodeCategory(ch) = UnicodeCategory.SpaceSeparator 233Dim CharacterProperties As UnicodeCategory = CharUnicodeInfo.GetUnicodeCategory(c) 377Dim CharacterProperties As UnicodeCategory = CharUnicodeInfo.GetUnicodeCategory(c) 470Return CharUnicodeInfo.GetUnicodeCategory(c) = UnicodeCategory.ConnectorPunctuation 474Return CharUnicodeInfo.GetUnicodeCategory(c) = UnicodeCategory.SpaceSeparator
SymbolDisplay\ObjectDisplay.vb (2)
398ElseIf CharUnicodeInfo.GetUnicodeCategory(c) = UnicodeCategory.Surrogate AndAlso IsPrintable(CharUnicodeInfo.GetUnicodeCategory(str, i - 1)) Then 490Return IsPrintable(CharUnicodeInfo.GetUnicodeCategory(c))
Microsoft.CodeAnalysis.Workspaces (3)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
Microsoft.DotNet.Arcade.Sdk (2)
src\GenerateResxSource.cs (2)
391=> ch == '_' || IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 395var cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.Extensions.ApiDescription.Client (2)
CSharpIdentifier.cs (2)
18CharUnicodeInfo.GetUnicodeCategory(character) == UnicodeCategory.LetterNumber; 30var category = CharUnicodeInfo.GetUnicodeCategory(character);
Microsoft.Extensions.FileProviders.Embedded (2)
EmbeddedFileProvider.cs (2)
195CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.ConnectorPunctuation; 203var cat = CharUnicodeInfo.GetUnicodeCategory(c);
Microsoft.ML.Tokenizers (1)
RegexGenerator.g.cs (1)
2332(WordCategoriesMask & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0;
Microsoft.ML.Transforms (3)
Expression\LexCharUtils.cs (3)
156return (UniCatFlags)(1u << (int)CharUnicodeInfo.GetUnicodeCategory(ch)); 201return ch >= _rgchi.Length && CharUnicodeInfo.GetUnicodeCategory(ch) == UnicodeCategory.Format; 207return CharUnicodeInfo.GetUnicodeCategory(ch) == UnicodeCategory.SpaceSeparator;
Roslyn.Diagnostics.Analyzers (4)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Roslyn.Test.PdbUtilities (1)
Shared\StringUtilities.cs (1)
21switch (CharUnicodeInfo.GetUnicodeCategory(c))
System.CodeDom (1)
src\libraries\Common\src\System\CSharpHelpers.cs (1)
155UnicodeCategory uc = CharUnicodeInfo.GetUnicodeCategory(ch);
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Char.cs (9)
369return CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.DecimalDigitNumber; 409return CheckLetter(CharUnicodeInfo.GetUnicodeCategory(c)); 444return CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.UppercaseLetter; 458return CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.LowercaseLetter; 475CharUnicodeInfo.GetUnicodeCategory(c)); 499CharUnicodeInfo.GetUnicodeCategory(c)); 764return CheckNumber(CharUnicodeInfo.GetUnicodeCategory(c)); 839return CheckSeparator(CharUnicodeInfo.GetUnicodeCategory(c)); 894CharUnicodeInfo.GetUnicodeCategory(c));
System.Private.Xml (5)
src\libraries\Common\src\System\CSharpHelpers.cs (1)
155UnicodeCategory uc = CharUnicodeInfo.GetUnicodeCategory(ch);
System\Xml\Serialization\CodeIdentifier.cs (2)
115if (CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.DecimalDigitNumber) 122UnicodeCategory uc = CharUnicodeInfo.GetUnicodeCategory(c);
System\Xml\Xsl\Runtime\NumberFormatter.cs (2)
16int category = (int)Globalization.CharUnicodeInfo.GetUnicodeCategory(ch); 25int category = (int)Globalization.CharUnicodeInfo.GetUnicodeCategory(--ch);
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexCharClass.cs (2)
1124(WordCategoriesMask & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0; 1192(IsWordCategory(CharUnicodeInfo.GetUnicodeCategory(ch)) ||
System.Text.RegularExpressions.Generator (2)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (2)
1124(WordCategoriesMask & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0; 1192(IsWordCategory(CharUnicodeInfo.GetUnicodeCategory(ch)) ||
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ClientUtils.cs (1)
37CharUnicodeInfo.GetUnicodeCategory(character) == UnicodeCategory.NonSpacingMark;
Test.Utilities (4)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Text.Analyzers (4)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (3)
42return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 80UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 177return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);