158 references to IsDigit
aspire (4)
Documentation\Docs\DocsIndexService.cs (3)
706if (char.IsDigit(c)) 816char.IsDigit(text[index - 1]) && 817char.IsDigit(text[index + 1]);
Packaging\PackagingService.cs (1)
749if (parts[i].Length == 0 || !char.IsDigit(parts[i][0]))
Aspire.Cli.Tests (1)
Mcp\Docs\SourceContentFingerprintTests.cs (1)
45Assert.All(fingerprint, c => Assert.True(char.IsDigit(c) || (c >= 'a' && c <= 'f'), $"Unexpected char: '{c}'"));
Aspire.Hosting.Analyzers (1)
src\Aspire.Hosting\ApplicationModel\ModelName.cs (1)
135return IsAsciiLetter(c) || char.IsDigit(c);
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
2289if (sb.Length == 0 && char.IsDigit(c)) 2331if (sb.Length == 0 && char.IsDigit(c))
Aspire.Hosting.Radius (1)
Publishing\BicepPostProcessor.cs (1)
178if (char.IsDigit(sanitized[0]))
dotnet (1)
_generated\190\RegexGenerator.g.cs (1)
316while ((uint)iteration2 < (uint)slice.Length && char.IsDigit(slice[iteration2]))
dotnet-svcutil-lib (1)
CodeDomFixup\CodeDomHelpers.cs (1)
237if (char.IsDigit(builder[0]))
GenerateDocumentationAndConfigFiles (4)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
362if (index + 1 < name.Length && !char.IsDigit(name[index + 1]))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (2)
72else if (char.IsDigit(firstChar)) 165while (current < length && char.IsDigit(identifier[current]))
ILCompiler.Compiler (5)
Compiler\Logging\DocumentationSignatureParser.cs (3)
461if (char.IsDigit(PeekNextChar(id, index))) 470if (char.IsDigit(PeekNextChar(id, index))) 809while (index < id.Length && char.IsDigit(id[index]))
src\runtime\src\coreclr\tools\Common\JitInterface\WasmLowering.cs (2)
417while (pos < sig.Length && char.IsDigit(sig[pos])) 494else if (((c == 'l') || (c == 'V')) && (pos + 1 < sig.Length) && char.IsDigit(sig[pos + 1]))
ILCompiler.ReadyToRun (5)
Compiler\DependencyAnalysis\ReadyToRun\WasmImportThunk.cs (1)
110while ((pos < _wasmSignature.SignatureString.Length) && char.IsDigit(_wasmSignature.SignatureString[pos]))
Compiler\DependencyAnalysis\ReadyToRun\WasmInterpreterToR2RThunkNode.cs (1)
58while ((pos < _wasmSignature.SignatureString.Length) && char.IsDigit(_wasmSignature.SignatureString[pos]))
Compiler\DependencyAnalysis\ReadyToRun\WasmR2RToInterpreterThunkNode.cs (1)
67while ((pos < _wasmSignature.SignatureString.Length) && char.IsDigit(_wasmSignature.SignatureString[pos]))
src\runtime\src\coreclr\tools\Common\JitInterface\WasmLowering.cs (2)
417while (pos < sig.Length && char.IsDigit(sig[pos])) 494else if (((c == 'l') || (c == 'V')) && (pos + 1 < sig.Length) && char.IsDigit(sig[pos + 1]))
illink (3)
Infrastructure.Common (1)
FrameworkHelper.cs (1)
90&& Char.IsDigit(frameworkName[5]))
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\VirtualChars\VirtualChar.cs (1)
95=> SurrogateChar != 0 ? char.IsDigit(SurrogateChar) : Rune.IsDigit(Rune);
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\DefaultWebAssemblyJSRuntime.cs (1)
76if (char.IsDigit(assemblyNameOrDotNetObjectId[0]))
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\Json\EnumNameHelpers.cs (1)
147return result.Length > 0 && char.IsDigit(result[0])
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
646else if (char.IsDigit(input[i]))
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\JQueryKeyValuePairNormalizer.cs (1)
80else if (char.IsDigit(key[indexOpen + 1]))
Microsoft.Build (10)
_generated\10\RegexGenerator.g.cs (4)
1046while ((uint)iteration1 < (uint)slice.Length && char.IsDigit(slice[iteration1])) 2158while ((uint)iteration < (uint)slice.Length && char.IsDigit(slice[iteration])) 6813while ((uint)iteration < (uint)slice.Length && char.IsDigit(slice[iteration])) 6840while ((uint)iteration1 < (uint)slice.Length && char.IsDigit(slice[iteration1]))
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (1)
579else if (char.IsDigit(currentChar))
Evaluation\Conditionals\CharacterUtilities.cs (3)
10return candidate == '+' || candidate == '-' || candidate == '.' || char.IsDigit(candidate); 20return IsSimpleStringStart(candidate) || char.IsDigit(candidate); 25return char.IsDigit(candidate) || ((uint)((candidate | 0x20) - 'a') <= 'f' - 'a');
Evaluation\Conditionals\Scanner.cs (1)
775while (_parsePoint < _expression.Length && char.IsDigit(_expression[_parsePoint]))
Evaluation\Expander\WellKnownFunctions.cs (1)
891result = char.IsDigit(c);
Microsoft.Build.Tasks.Core (4)
_generated\0\RegexGenerator.g.cs (4)
664while ((uint)iteration1 < (uint)slice.Length && char.IsDigit(slice[iteration1])) 1776while ((uint)iteration < (uint)slice.Length && char.IsDigit(slice[iteration])) 2881while ((uint)iteration < (uint)slice.Length && char.IsDigit(slice[iteration])) 4180if (char.IsDigit(span[i]))
Microsoft.Build.Utilities.Core (2)
_generated\0\RegexGenerator.g.cs (2)
505while ((uint)iteration1 < (uint)slice.Length && char.IsDigit(slice[iteration1])) 1617while ((uint)iteration < (uint)slice.Length && char.IsDigit(slice[iteration]))
Microsoft.CodeAnalysis (7)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
589else if (char.IsDigit(currentChar))
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
296while (_index < _name.Length && char.IsDigit(_name[_index])) 714else if (!char.IsDigit(nextChar) && nextChar != '.')
DocumentationCommentId.cs (3)
1116if (char.IsDigit(PeekNextChar(id, index))) 1125if (char.IsDigit(PeekNextChar(id, index))) 1621while (index < id.Length && char.IsDigit(id[index]))
VersionHelper.cs (1)
124if (!char.IsDigit(elements[i][idx]))
Microsoft.CodeAnalysis.Analyzers (7)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_IdRangeAndCategoryValidation.cs (1)
359bool isDigit = char.IsDigit(ch);
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (1)
1305if (!ruleId[2..].All(char.IsDigit))
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\DocumentationCommentIdParser.cs (1)
105while (index < id.Length && char.IsDigit(id[index]))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
362if (index + 1 < name.Length && !char.IsDigit(name[index + 1]))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (2)
72else if (char.IsDigit(firstChar)) 165while (current < length && char.IsDigit(identifier[current]))
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
362if (index + 1 < name.Length && !char.IsDigit(name[index + 1]))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (2)
72else if (char.IsDigit(firstChar)) 165while (current < length && char.IsDigit(identifier[current]))
Microsoft.CodeAnalysis.CodeStyle (5)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
296while (_index < _name.Length && char.IsDigit(_name[_index])) 714else if (!char.IsDigit(nextChar) && nextChar != '.')
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
362if (index + 1 < name.Length && !char.IsDigit(name[index + 1]))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (2)
72else if (char.IsDigit(firstChar)) 165while (current < length && char.IsDigit(identifier[current]))
Microsoft.CodeAnalysis.Features (3)
EmbeddedLanguages\Json\JsonParser.JsonNetSyntaxChecks.cs (1)
70var singleDigit = char.IsDigit(firstChar) && chars.Length == 1;
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
296while (_index < _name.Length && char.IsDigit(_name[_index])) 714else if (!char.IsDigit(nextChar) && nextChar != '.')
Microsoft.CodeAnalysis.NetAnalyzers (3)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (1)
2123if (char.IsDigit(osString[i]))
Microsoft.NetCore.Analyzers\InteropServices\UseValidPlatformString.cs (1)
242if (char.IsDigit(osString[i]))
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\WordParser.cs (1)
646return char.IsDigit(c);
Microsoft.CodeAnalysis.Razor.Compiler (12)
Language\HtmlConventions.cs (1)
109if ((char.IsUpper(prev) || char.IsDigit(prev)) &&
Language\Legacy\HtmlTokenizer.cs (2)
207if ((char.IsLetter(prev) || char.IsDigit(prev)) && 208(char.IsLetter(next) || char.IsDigit(next)))
Language\Legacy\NativeCSharpTokenizer.cs (7)
384else if (char.IsDigit(CurrentCharacter)) 399if (char.IsDigit(Peek())) 653TakeUntil(c => !Char.IsDigit(c)); 654if (CurrentCharacter == '.' && Char.IsDigit(Peek())) 679TakeUntil(c => !Char.IsDigit(c)); 693Debug.Assert(Char.IsDigit(CurrentCharacter)); 694TakeUntil(c => !Char.IsDigit(c));
Language\Legacy\RoslynCSharpTokenizer.cs (2)
245else if (char.IsDigit(CurrentCharacter)) 267if (char.IsDigit(Peek()))
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
362if (index + 1 < name.Length && !char.IsDigit(name[index + 1]))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (2)
72else if (char.IsDigit(firstChar)) 165while (current < length && char.IsDigit(identifier[current]))
Microsoft.CodeAnalysis.Workspaces (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
362if (index + 1 < name.Length && !char.IsDigit(name[index + 1]))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (2)
72else if (char.IsDigit(firstChar)) 165while (current < length && char.IsDigit(identifier[current]))
Microsoft.Deployment.DotNet.Releases (1)
ReleaseVersion.cs (1)
609if (!char.IsDigit(input[i]))
Microsoft.DotNet.Cli.Definitions (2)
_generated\6\RegexGenerator.g.cs (2)
211while ((uint)iteration < (uint)slice.Length && char.IsDigit(slice[iteration])) 269while ((uint)iteration1 < (uint)slice.Length && char.IsDigit(slice[iteration1]))
Microsoft.Maui.Controls (1)
Button\Button.cs (1)
595 var spacingFirst = char.IsDigit(parts[0][0]);
Microsoft.Maui.Controls.DesignTools (1)
ButtonContentDesignTypeConverter.cs (1)
29 if (char.IsDigit(parts[0][0]))
Microsoft.Maui.Graphics (3)
PathBuilder.cs (3)
91 if (char.IsDigit(c) || c == '.' || c == '-') 240 if (char.IsDigit(firstLetter)) 259 if (_lastCommand != '~' && (char.IsDigit(c) || c == '-'))
Microsoft.ML.InternalCodeAnalyzer (1)
Utils.cs (1)
36if (char.IsDigit(c))
Microsoft.NET.Build.Tasks (1)
ResolvePackageAssets.cs (1)
1094if (char.IsDigit(compilerApiVersion[i]))
Microsoft.TestPlatform.AdapterUtilities (1)
ManagedNameUtilities\ManagedNameHelper.Reflection.cs (1)
596if (pos == 0 && char.IsDigit(c))
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\LikeOperator.vb (1)
1438If Not Char.IsDigit(c) Then
NuGet.Commands (1)
RestoreCommand\Utility\LockFileUtils.cs (1)
859&& char.IsDigit(segment[roslynPrefix.Length]);
NuGet.Packaging (1)
Signing\Utility\CertificateUtility.cs (1)
460if (!char.IsDigit(c) && !(c >= 'a' && c <= 'f') && !(c >= 'A' && c <= 'F'))
PresentationBuildTasks (3)
MS\Internal\MarkupCompiler\VersionHelper.cs (1)
120if (!char.IsDigit(elements[i][idx]))
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
2536else if (Char.IsDigit(i))
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
733else if (Char.IsDigit(attribValue[i]))
PresentationFramework (4)
System\Windows\Controls\DefinitionBase.cs (1)
552bool isDigit = Char.IsDigit(id[i]);
System\Windows\Documents\DocumentSequence.cs (1)
159if (Char.IsDigit(elementID[0]))
System\Windows\Documents\FixedDocument.cs (1)
202if (Char.IsDigit(elementID[0]))
System\Windows\Markup\XamlTypeMapper.cs (1)
733else if (Char.IsDigit(attribValue[i]))
PresentationUI (2)
MS\Internal\Documents\Application\PageTextBox.cs (1)
310return (Char.IsDigit(c));
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
436return (Char.IsDigit(c)) || (c == ',') || (c == '.') || (c == '%');
Roslyn.Diagnostics.Analyzers (4)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
362if (index + 1 < name.Length && !char.IsDigit(name[index + 1]))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (2)
72else if (char.IsDigit(firstChar)) 165while (current < length && char.IsDigit(identifier[current]))
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\PhoneAttribute.cs (3)
41if (char.IsDigit(c)) 55if (!(char.IsDigit(c) 117if (!char.IsDigit(c))
System.ComponentModel.TypeConverter (4)
System\ComponentModel\MaskedTextProvider.cs (4)
1385return char.IsLetter(c) || char.IsDigit(c); 2232if (!char.IsDigit(input) && (input != '-') && (input != '+') && input != SPACE_CHAR) 2240if (!char.IsDigit(input)) 2248if (!char.IsDigit(input) && input != SPACE_CHAR)
System.Configuration.ConfigurationManager (1)
System\Configuration\GenericEnumConverter.cs (1)
33if ((!char.IsDigit(value[0])) && (value[0] != '-') && (value[0] != '+') &&
System.Console (1)
System\IO\KeyParser.cs (1)
119: char.IsDigit(input[SequencePrefixLength + 1]) ? 2 : 1;
System.Data.OleDb (1)
OleDb_Util.cs (1)
697if (char.IsDigit(result[0]))
System.Diagnostics.EventLog (1)
System\Diagnostics\EventLog.cs (1)
842while (i + 1 < formatString.Length && char.IsDigit(formatString[i + 1]))
System.IO.Packaging (2)
System\IO\Packaging\ZipPackagePartPiece.cs (2)
97&& char.IsDigit(path[searchPosition - 1]); 104for (digitStart = searchPosition; digitStart > 1 && char.IsDigit(path[digitStart - 1]); digitStart--) ;
System.Net.Requests (3)
System\Net\FtpControlStream.cs (3)
1194if (!(char.IsDigit(responseString[0]) && char.IsDigit(responseString[1]) && char.IsDigit(responseString[2]) && (responseString[3] == ' ' || responseString[3] == '-')))
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (1)
849while (i < eventMessage.Length && char.IsDigit(eventMessage[i]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
1069c => char.IsDigit(c) || c == '+' || c == '-' || c == ','); 1074TZif_ParsePosixString(posixFormat, ref index, c => !char.IsDigit(c) && c != '+' && c != '-' && c != ':');
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\FindPal.cs (1)
236if (char.IsDigit(keyValue[i]))
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\DateTimeHelper.cs (1)
56while (dateTimeString.Length > i && char.IsDigit(dateTimeString[i]))
System.Speech (1)
Internal\Synthesis\SSmlParser.cs (1)
1611while (start < ach.Length && ach[start] != expected && ((percent = ach[start] == '%') || char.IsDigit(ach[start]) || ach[start] == 'H' || ach[start] == 'z' || ach[start] == '.' || ach[start] == '+' || ach[start] == '-'))
System.Text.Json (1)
System\Text\Json\JsonHelpers.cs (1)
429Debug.Assert(char.IsDigit((char)span[0]), "leading plus not allowed in valid JSON numbers.");
System.Windows.Forms (6)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
463if (char.IsDigit(e.KeyChar))
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (3)
201while (!char.IsDigit(styleString[nextIndex])) 208while ((nextIndex < styleString.Length) && (char.IsDigit(styleString[nextIndex]))) 219if (char.IsDigit(styleString[nextIndex]))
System\Windows\Forms\SendKeys\SendKeys.cs (2)
460if (char.IsDigit(keys[j])) 463while (j < keysLen && char.IsDigit(keys[j]))
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ListViewGroupCollectionEditor.cs (1)
46while (char.IsDigit(listViewGroupName[^1]))
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1725if (char.IsDigit(c))
System.Xaml (1)
System\Xaml\Parser\XamlName.cs (1)
74if (IsValidNameStartChar(ch) || char.IsDigit(ch))
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2470for (pos = cChars - 1; pos > 0 && cChars - pos <= 2 && Char.IsDigit (menuText [pos]); pos--)