106 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);
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
269UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
269UnicodeCategory 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.Core (7)
CreateManifestResourceName.cs (2)
286CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.ConnectorPunctuation; 294UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(c);
tokenChar.cs (5)
37UnicodeCategory cat = System.Globalization.CharUnicodeInfo.GetUnicodeCategory(c); 61UnicodeCategory cat = System.Globalization.CharUnicodeInfo.GetUnicodeCategory(c); 80UnicodeCategory cat = System.Globalization.CharUnicodeInfo.GetUnicodeCategory(c); 100UnicodeCategory cat = System.Globalization.CharUnicodeInfo.GetUnicodeCategory(c); 120UnicodeCategory cat = System.Globalization.CharUnicodeInfo.GetUnicodeCategory(c);
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 (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
269UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
269UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
269UnicodeCategory 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)
180if (NeedsEscaping(CharUnicodeInfo.GetUnicodeCategory(c))) 242if (escapeNonPrintable && CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.Surrogate)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\StringCopyPasteHelpers.cs (2)
302if (CharUnicodeInfo.GetUnicodeCategory(ch) == UnicodeCategory.Surrogate) 386if (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)
180if (NeedsEscaping(CharUnicodeInfo.GetUnicodeCategory(c))) 242if (escapeNonPrintable && CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.Surrogate)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
LexicalAndXml\LexicalTests.cs (1)
861Assert.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)
213switch (CharUnicodeInfo.GetUnicodeCategory(ch))
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
269UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
AbstractResxGenerator.cs (2)
731=> ch == '_' || IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 735var cat = CharUnicodeInfo.GetUnicodeCategory(ch);
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
269UnicodeCategory 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.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.StringPiece.vb (2)
22Dim category = CharUnicodeInfo.GetUnicodeCategory(c) 88Dim category = CharUnicodeInfo.GetUnicodeCategory(c)
Microsoft.CodeAnalysis.VisualBasic.ResultProvider (7)
src\Compilers\VisualBasic\Portable\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
src\Compilers\VisualBasic\Portable\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.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.StringPiece.vb (2)
22Dim category = CharUnicodeInfo.GetUnicodeCategory(c) 88Dim category = 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.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 (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
269UnicodeCategory 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)
317return CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.DecimalDigitNumber; 357return CheckLetter(CharUnicodeInfo.GetUnicodeCategory(c)); 392return CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.UppercaseLetter; 406return CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.LowercaseLetter; 423CharUnicodeInfo.GetUnicodeCategory(c)); 447CharUnicodeInfo.GetUnicodeCategory(c)); 712return CheckNumber(CharUnicodeInfo.GetUnicodeCategory(c)); 787return CheckSeparator(CharUnicodeInfo.GetUnicodeCategory(c)); 842CharUnicodeInfo.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)
1227(WordCategoriesMask & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0; 1246((WordCategoriesMask & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0 ||
System.Text.RegularExpressions.Generator (2)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (2)
1227(WordCategoriesMask & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0; 1246((WordCategoriesMask & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0 ||
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ClientUtils.cs (1)
37CharUnicodeInfo.GetUnicodeCategory(character) == UnicodeCategory.NonSpacingMark;
Test.Utilities (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
269UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
269UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);