137 references to IsAsciiDigit
aspire (4)
Agents\AspireSkills\AspireSkillsBundleProvider.cs (1)
266skillName.Any(static character => !char.IsAsciiLetterLower(character) && !char.IsAsciiDigit(character) && character is not '-'))
Commands\Sdk\SdkExportCommand.cs (1)
346component.Length == 0 || component.Any(static character => !char.IsAsciiDigit(character))) ||
Projects\TypeScriptAppHostToolchainResolver.cs (1)
367(version.Length == 1 || !char.IsAsciiDigit(version[1]));
Utils\EnvironmentChecker\VsCodeExtensionCheck.cs (1)
217&& char.IsAsciiDigit(folderName[prefix.Length]);
Aspire.Hosting (1)
src\Shared\EnvironmentVariableNameEncoder.cs (1)
32if (char.IsAsciiDigit(name[0]))
Aspire.Hosting.DevTunnels (1)
src\Shared\EnvironmentVariableNameEncoder.cs (1)
32if (char.IsAsciiDigit(name[0]))
Aspire.Hosting.Java (1)
JavaVersionDetector.cs (1)
433return value.Length > 0 && value.All(char.IsAsciiDigit) ? value : null;
Aspire.Hosting.Maui (1)
src\Shared\EnvironmentVariableNameEncoder.cs (1)
32if (char.IsAsciiDigit(name[0]))
Aspire.Hosting.RabbitMQ (4)
RabbitMQBuilderExtensions.cs (4)
245if (!char.IsAsciiDigit(tag[0])) 251if (!char.IsAsciiDigit(tag[^1])) 268if (!(char.IsAsciiDigit(c) || c == '.') // Interim chars must be digits or a period 274lastCharIsDigit = char.IsAsciiDigit(c);
Aspire.Hosting.Radius (1)
Secrets\RadiusSecretStoreNaming.cs (1)
75else if (char.IsAsciiLetterLower(c) || char.IsAsciiDigit(c))
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
1417if (!(IsAsciiLetter(pathSegment[i]) || char.IsAsciiDigit(pathSegment[i]) || pathSegment[i] == '_'))
ILCompiler.Compiler (1)
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (1)
58if (char.IsAsciiDigit((char)c))
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (1)
58if (char.IsAsciiDigit((char)c))
Microsoft.Build.Framework (5)
Utilities\MessageParser.cs (5)
229!char.IsAsciiDigit(_text[_position + 3]) || 230!char.IsAsciiDigit(_text[_position + 4]) || 231!char.IsAsciiDigit(_text[_position + 5]) || 232!char.IsAsciiDigit(_text[_position + 6]) || 277while (_position < _text.Length && char.IsAsciiDigit(_text[_position]))
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CreditCardAttribute.cs (1)
35if (!char.IsAsciiDigit(digit))
System.Console (4)
System\ConsolePal.Unix.cs (1)
633if (char.IsAsciiDigit((char)b))
System\IO\KeyParser.cs (1)
336_ when char.IsAsciiDigit(single) => ConsoleKey.D0 + single - '0', // We can't distinguish DX and Ctrl+DX as they produce same values. Limitation: Ctrl+DX can't be mapped.
System\TermInfo.cs (2)
180Debug.Assert(char.IsAsciiDigit(format[pos])); 191Debug.Assert(char.IsAsciiDigit(format[pos]));
System.Data.Common (1)
System\Data\SQLTypes\SQLDecimal.cs (1)
1078if (char.IsAsciiDigit(usChar))
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.Unix.cs (1)
237if (!char.IsAsciiDigit(c))
System.Net.Http (3)
System\Net\Http\Headers\AltSvcHeaderParser.cs (1)
430if (!char.IsAsciiDigit(ch))
System\Net\Http\Headers\RetryConditionHeaderValue.cs (1)
98if (char.IsAsciiDigit(firstChar))
System\Net\Http\HttpRuleParser.cs (1)
119if (char.IsAsciiDigit(c))
System.Net.Mail (3)
System\Net\Mail\SmtpReplyReaderFactory.cs (3)
105if (!char.IsAsciiDigit((char)b)) 122if (!char.IsAsciiDigit((char)b)) 139if (!char.IsAsciiDigit((char)b))
System.Net.Primitives (2)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
164(uint)(start + 1) < (uint)name.Length && char.IsAsciiDigit((char)ToUShort(name[start + 1])))
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
213if (!char.IsAsciiDigit((char)IPv4AddressHelper.ToUShort(name[i])))
System.Net.Quic (2)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
164(uint)(start + 1) < (uint)name.Length && char.IsAsciiDigit((char)ToUShort(name[start + 1])))
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
213if (!char.IsAsciiDigit((char)IPv4AddressHelper.ToUShort(name[i])))
System.Net.Security (2)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
164(uint)(start + 1) < (uint)name.Length && char.IsAsciiDigit((char)ToUShort(name[start + 1])))
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
213if (!char.IsAsciiDigit((char)IPv4AddressHelper.ToUShort(name[i])))
System.Private.CoreLib (31)
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
151while ((uint)i < (uint)format.Length && char.IsAsciiDigit(format[i]))
src\runtime\src\libraries\Common\src\System\Number.NumberBuffer.cs (1)
82Debug.Assert(char.IsAsciiDigit((char)digit), $"Unexpected character found in Number: {digit}");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (2)
935if (!char.IsAsciiDigit(c) && c != '-' && c != '+') 993if (!char.IsAsciiDigit(c) && c != '-' && c != '+')
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.OSVersion.Unix.cs (1)
41if (!char.IsAsciiDigit(c))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfoScanner.cs (2)
614if (s.Length != 0 && char.IsAsciiDigit(s[0])) 617while ((uint)index < (uint)s.Length && char.IsAsciiDigit(s[index]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (6)
485while (str.GetNext() && char.IsAsciiDigit(ch = str.m_current)) 5574if (char.IsAsciiDigit(m_current)) 5665if (!char.IsAsciiDigit(m_current)) 5873char.IsAsciiDigit(Value[Index]); 5890Debug.Assert(char.IsAsciiDigit(Value[Index]), "IsDigit(Value[Index])"); 6020currentType = char.IsAsciiDigit(ch) ? DTSubStringType.Number : DTSubStringType.Other;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
960if (char.IsAsciiDigit(cp))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (4)
248while ((uint)++pos < (uint)value.Length && !char.IsAsciiDigit(value[pos])) 1432if (!char.IsAsciiDigit(ch)) 1572while (char.IsAsciiDigit(_ch)) 1643while (f > 1 && char.IsAsciiDigit(_ch))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (4)
103if (char.IsAsciiDigit(format[curIndex]) || format[curIndex] == '-') 113while (char.IsAsciiDigit(format[curIndex])) 142if (char.IsAsciiDigit(format[curIndex]) || format[curIndex] == '-') 153while (char.IsAsciiDigit(format[curIndex]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (2)
201while (char.IsAsciiDigit(ch)) 258while (char.IsAsciiDigit(ch))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (2)
1654while (char.IsAsciiDigit(ch) && index < IndexLimit) 1695while (char.IsAsciiDigit(ch) && width < WidthLimit)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ValueStringBuilder.AppendFormat.cs (2)
99while (char.IsAsciiDigit(ch) && index < IndexLimit) 140while (char.IsAsciiDigit(ch) && width < WidthLimit)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
794if (char.IsAsciiDigit(_serializedText[_currentTokenStartIndex]) || _serializedText[_currentTokenStartIndex] is '-' or '+')
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
938if ((uint)index >= (uint)date.Length || !char.IsAsciiDigit(date[index])) 949} while ((uint)index < (uint)date.Length && char.IsAsciiDigit(date[index]));
System.Private.Uri (5)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
164(uint)(start + 1) < (uint)name.Length && char.IsAsciiDigit((char)ToUShort(name[start + 1])))
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
213if (!char.IsAsciiDigit((char)IPv4AddressHelper.ToUShort(name[i])))
System\UncNameHelper.cs (2)
61else if (!char.IsAsciiDigit(name[i])) 90else if (char.IsLetter(name[i]) || char.IsAsciiDigit(name[i]))
System\Uri.cs (1)
3764else if (char.IsAsciiDigit(ch) && (syntaxFlags & UriSyntaxFlags.AllowIPv4Host) != 0 &&
System.Private.Xml (54)
System\Xml\Core\XmlTextReaderImpl.cs (1)
7258while (char.IsAsciiDigit(chars[pos]))
System\Xml\Schema\Inference\Infer.cs (41)
1791if (char.IsAsciiDigit(s[i])) 1804if (char.IsAsciiDigit(s[i])) 1817if (char.IsAsciiDigit(s[i])) 1824if (char.IsAsciiDigit(s[i])) 1830if (char.IsAsciiDigit(s[i])) //".9999e+9 1846if (char.IsAsciiDigit(s[i])) //-9 1860if (char.IsAsciiDigit(s[i])) //"+9 1872if (char.IsAsciiDigit(s[i])) //"P9" 1887if (char.IsAsciiDigit(s[i])) 1904if (char.IsAsciiDigit(s[i])) 1918if (char.IsAsciiDigit(s[i])) 1935if (char.IsAsciiDigit(s[i])) 1947if (char.IsAsciiDigit(s[i])) 1968if (char.IsAsciiDigit(s[i])) 1985if (char.IsAsciiDigit(s[i])) 1997if (char.IsAsciiDigit(s[i])) 2012if (char.IsAsciiDigit(s[i])) 2024if (char.IsAsciiDigit(s[i])) 2037if (char.IsAsciiDigit(s[i])) 2049if (char.IsAsciiDigit(s[i])) 2060if (char.IsAsciiDigit(s[i])) 2109if (char.IsAsciiDigit(s[i])) 2137if (char.IsAsciiDigit(s[i])) 2163if (char.IsAsciiDigit(s[i])) 2192if (char.IsAsciiDigit(s[i])) 2199if (!char.IsAsciiDigit(s[i])) 2202if (!char.IsAsciiDigit(s[i])) 2226if (!char.IsAsciiDigit(s[i])) 2229if (!char.IsAsciiDigit(s[i])) 2267if (!char.IsAsciiDigit(s[i])) 2270if (!char.IsAsciiDigit(s[i])) 2277if (!char.IsAsciiDigit(s[i])) 2280if (!char.IsAsciiDigit(s[i])) 2298if (!char.IsAsciiDigit(s[i])) 2301if (!char.IsAsciiDigit(s[i])) 2308if (!char.IsAsciiDigit(s[i])) 2311if (!char.IsAsciiDigit(s[i])) 2317if (!char.IsAsciiDigit(s[i])) 2320if (!char.IsAsciiDigit(s[i])) 2338if (!char.IsAsciiDigit(s[i])) 2351if (char.IsAsciiDigit(s[i]))
System\Xml\Schema\XsdDuration.cs (2)
649while (offset < offsetEnd && char.IsAsciiDigit(s[offset])) 663while (offset < offsetEnd && char.IsAsciiDigit(s[offset]))
System\Xml\XPath\Internal\XPathScanner.cs (7)
185else if (char.IsAsciiDigit(CurrentChar)) 206if (char.IsAsciiDigit(CurrentChar)) 277Debug.Assert(CurrentChar == '.' || char.IsAsciiDigit(CurrentChar)); 280while (char.IsAsciiDigit(CurrentChar)) 287while (char.IsAsciiDigit(CurrentChar)) 297Debug.Assert(char.IsAsciiDigit(CurrentChar)); 301while (char.IsAsciiDigit(CurrentChar))
System\Xml\Xsl\Runtime\DecimalFormatter.cs (3)
174if (char.IsAsciiDigit(ch) || ch == EscChar) 258if (char.IsAsciiDigit(ch)) 268Debug.Assert(char.IsAsciiDigit(ch) || ch == EscChar);
System.Reflection.Emit (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (4)
103if (char.IsAsciiDigit(format[curIndex]) || format[curIndex] == '-') 113while (char.IsAsciiDigit(format[curIndex])) 142if (char.IsAsciiDigit(format[curIndex]) || format[curIndex] == '-') 153while (char.IsAsciiDigit(format[curIndex]))
System.Runtime.Numerics (2)
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
151while ((uint)i < (uint)format.Length && char.IsAsciiDigit(format[i]))
src\runtime\src\libraries\Common\src\System\Number.NumberBuffer.cs (1)
82Debug.Assert(char.IsAsciiDigit((char)digit), $"Unexpected character found in Number: {digit}");
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\FindPal.cs (1)
250if (char.IsAsciiDigit(c))