102 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\roslyn\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\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.Build (1)
_generated\10\RegexGenerator.g.cs (1)
7029(WordCategoriesMask & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0;
Microsoft.Build.Tasks.CodeAnalysis (3)
src\roslyn\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)
291CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.ConnectorPunctuation; 299UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(c);
src\msbuild\src\Shared\LanguageParser\tokenChar.cs (5)
36UnicodeCategory cat = System.Globalization.CharUnicodeInfo.GetUnicodeCategory(c); 60UnicodeCategory cat = System.Globalization.CharUnicodeInfo.GetUnicodeCategory(c); 79UnicodeCategory cat = System.Globalization.CharUnicodeInfo.GetUnicodeCategory(c); 99UnicodeCategory cat = System.Globalization.CharUnicodeInfo.GetUnicodeCategory(c); 119UnicodeCategory cat = System.Globalization.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\roslyn\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\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\roslyn\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\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.CodeAnalysis.CodeStyle (3)
src\roslyn\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.Features (1)
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (1)
208switch (CharUnicodeInfo.GetUnicodeCategory(ch))
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\WellKnownTypeProvider.cs (1)
325UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
AbstractResxGenerator.cs (2)
762=> ch == '_' || IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 766var cat = CharUnicodeInfo.GetUnicodeCategory(ch);
src\roslyn\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\roslyn\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.VisualBasic.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.StringPiece.vb (2)
22Dim category = CharUnicodeInfo.GetUnicodeCategory(c) 88Dim category = CharUnicodeInfo.GetUnicodeCategory(c)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\roslyn\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\roslyn\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.AI.Abstractions (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (1)
735(WordCategoriesMask & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0;
Microsoft.Extensions.FileProviders.Embedded (2)
EmbeddedFileProvider.cs (2)
202CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.ConnectorPunctuation; 210var 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;
Microsoft.NET.Build.Containers (1)
_generated\0\RegexGenerator.g.cs (1)
266(WordCategoriesMask & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0;
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (3)
UnicodeCharacterUtilities.cs (3)
40return IsLetterChar(CharUnicodeInfo.GetUnicodeCategory(ch)); 78UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch); 121return ch > 127 && IsFormattingChar(CharUnicodeInfo.GetUnicodeCategory(ch));
Microsoft.TestPlatform.AdapterUtilities (1)
ManagedNameUtilities\ManagedNameHelper.Reflection.cs (1)
609var category = CharUnicodeInfo.GetUnicodeCategory(c);
NuGet.Common (1)
Tokenizer\Tokenizer.cs (1)
63var c = CharUnicodeInfo.GetUnicodeCategory(ch);
Roslyn.Diagnostics.Analyzers (4)
src\roslyn\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\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
271UnicodeCategory cat = CharUnicodeInfo.GetUnicodeCategory(ch);
Roslyn.Diagnostics.VisualBasic.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.StringPiece.vb (2)
22Dim category = CharUnicodeInfo.GetUnicodeCategory(c) 88Dim category = CharUnicodeInfo.GetUnicodeCategory(c)
System.CodeDom (1)
src\runtime\src\libraries\Common\src\System\CSharpHelpers.cs (1)
155UnicodeCategory uc = CharUnicodeInfo.GetUnicodeCategory(ch);
System.Private.CoreLib (9)
src\runtime\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)); 779return CheckNumber(CharUnicodeInfo.GetUnicodeCategory(c)); 854return CheckSeparator(CharUnicodeInfo.GetUnicodeCategory(c)); 909CharUnicodeInfo.GetUnicodeCategory(c));
System.Private.Xml (5)
src\runtime\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)
1193(WordCategoriesMask & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0; 1212(IsWordCategory(CharUnicodeInfo.GetUnicodeCategory(ch)) ||
System.Text.RegularExpressions.Generator (2)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (2)
1193(WordCategoriesMask & (1 << (int)CharUnicodeInfo.GetUnicodeCategory(ch))) != 0; 1212(IsWordCategory(CharUnicodeInfo.GetUnicodeCategory(ch)) ||
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ClientUtils.cs (1)
37CharUnicodeInfo.GetUnicodeCategory(character) == UnicodeCategory.NonSpacingMark;