125 references to IsAsciiDigit
Aspire.Hosting (1)
src\Shared\EnvironmentVariableNameEncoder.cs (1)
32
if (char.
IsAsciiDigit
(name[0]))
Aspire.Hosting.DevTunnels (1)
src\Shared\EnvironmentVariableNameEncoder.cs (1)
32
if (char.
IsAsciiDigit
(name[0]))
Aspire.Hosting.Maui (1)
src\Shared\EnvironmentVariableNameEncoder.cs (1)
32
if (char.
IsAsciiDigit
(name[0]))
Aspire.Hosting.RabbitMQ (4)
RabbitMQBuilderExtensions.cs (4)
228
if (!char.
IsAsciiDigit
(tag[0]))
234
if (!char.
IsAsciiDigit
(tag[^1]))
251
if (!(char.
IsAsciiDigit
(c) || c == '.') // Interim chars must be digits or a period
257
lastCharIsDigit = char.
IsAsciiDigit
(c);
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CreditCardAttribute.cs (1)
35
if (!char.
IsAsciiDigit
(digit))
System.Console (4)
System\ConsolePal.Unix.cs (1)
631
if (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)
180
Debug.Assert(char.
IsAsciiDigit
(format[pos]));
191
Debug.Assert(char.
IsAsciiDigit
(format[pos]));
System.Data.Common (1)
System\Data\SQLTypes\SQLDecimal.cs (1)
1078
if (char.
IsAsciiDigit
(usChar))
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.Unix.cs (1)
237
if (!char.
IsAsciiDigit
(c))
System.Net.Http (3)
System\Net\Http\Headers\AltSvcHeaderParser.cs (1)
430
if (!char.
IsAsciiDigit
(ch))
System\Net\Http\Headers\RetryConditionHeaderValue.cs (1)
98
if (char.
IsAsciiDigit
(firstChar))
System\Net\Http\HttpRuleParser.cs (1)
119
if (char.
IsAsciiDigit
(c))
System.Net.Mail (3)
System\Net\Mail\SmtpReplyReaderFactory.cs (3)
101
if (!char.
IsAsciiDigit
((char)b))
118
if (!char.
IsAsciiDigit
((char)b))
135
if (!char.
IsAsciiDigit
((char)b))
System.Net.Primitives (2)
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\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
213
if (!char.
IsAsciiDigit
((char)IPv4AddressHelper.ToUShort(name[i])))
System.Net.Quic (2)
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\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
213
if (!char.
IsAsciiDigit
((char)IPv4AddressHelper.ToUShort(name[i])))
System.Net.Security (2)
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\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
213
if (!char.
IsAsciiDigit
((char)IPv4AddressHelper.ToUShort(name[i])))
System.Private.CoreLib (31)
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
98
while ((uint)i < (uint)format.Length && char.
IsAsciiDigit
(format[i]))
src\libraries\Common\src\System\Number.NumberBuffer.cs (1)
78
Debug.Assert(char.
IsAsciiDigit
((char)digit), $"Unexpected character found in Number: {digit}");
src\libraries\System.Private.CoreLib\src\System\Enum.cs (2)
935
if (!char.
IsAsciiDigit
(c) && c != '-' && c != '+')
993
if (!char.
IsAsciiDigit
(c) && c != '-' && c != '+')
src\libraries\System.Private.CoreLib\src\System\Environment.OSVersion.Unix.cs (1)
41
if (!char.
IsAsciiDigit
(c))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfoScanner.cs (2)
614
if (s.Length != 0 && char.
IsAsciiDigit
(s[0]))
617
while ((uint)index < (uint)s.Length && char.
IsAsciiDigit
(s[index]))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (6)
485
while (str.GetNext() && char.
IsAsciiDigit
(ch = str.m_current))
5570
if (char.
IsAsciiDigit
(m_current))
5661
if (!char.
IsAsciiDigit
(m_current))
5869
char.
IsAsciiDigit
(Value[Index]);
5886
Debug.Assert(char.
IsAsciiDigit
(Value[Index]), "IsDigit(Value[Index])");
6016
currentType = char.
IsAsciiDigit
(ch) ? DTSubStringType.Number : DTSubStringType.Other;
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
960
if (char.
IsAsciiDigit
(cp))
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (4)
248
while ((uint)++pos < (uint)value.Length && !char.
IsAsciiDigit
(value[pos]))
1432
if (!char.
IsAsciiDigit
(ch))
1572
while (char.
IsAsciiDigit
(_ch))
1643
while (f > 1 && char.
IsAsciiDigit
(_ch))
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (4)
103
if (char.
IsAsciiDigit
(format[curIndex]) || format[curIndex] == '-')
113
while (char.
IsAsciiDigit
(format[curIndex]))
142
if (char.
IsAsciiDigit
(format[curIndex]) || format[curIndex] == '-')
153
while (char.
IsAsciiDigit
(format[curIndex]))
src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (2)
201
while (char.
IsAsciiDigit
(ch))
258
while (char.
IsAsciiDigit
(ch))
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (2)
1639
while (char.
IsAsciiDigit
(ch) && index < IndexLimit)
1680
while (char.
IsAsciiDigit
(ch) && width < WidthLimit)
src\libraries\System.Private.CoreLib\src\System\Text\ValueStringBuilder.AppendFormat.cs (2)
99
while (char.
IsAsciiDigit
(ch) && index < IndexLimit)
140
while (char.
IsAsciiDigit
(ch) && width < WidthLimit)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
446
if (char.
IsAsciiDigit
(_serializedText[_currentTokenStartIndex]) || _serializedText[_currentTokenStartIndex] is '-' or '+')
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
938
if ((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\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
164
(uint)(start + 1) < (uint)name.Length && char.
IsAsciiDigit
((char)ToUShort(name[start + 1])))
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
213
if (!char.
IsAsciiDigit
((char)IPv4AddressHelper.ToUShort(name[i])))
System\UncNameHelper.cs (2)
61
else if (!char.
IsAsciiDigit
(name[i]))
90
else if (char.IsLetter(name[i]) || char.
IsAsciiDigit
(name[i]))
System\Uri.cs (1)
3758
else if (char.
IsAsciiDigit
(ch) && (syntaxFlags & UriSyntaxFlags.AllowIPv4Host) != 0 &&
System.Private.Xml (54)
System\Xml\Core\XmlTextReaderImpl.cs (1)
7248
while (char.
IsAsciiDigit
(chars[pos]))
System\Xml\Schema\Inference\Infer.cs (41)
1791
if (char.
IsAsciiDigit
(s[i]))
1804
if (char.
IsAsciiDigit
(s[i]))
1817
if (char.
IsAsciiDigit
(s[i]))
1824
if (char.
IsAsciiDigit
(s[i]))
1830
if (char.
IsAsciiDigit
(s[i])) //".9999e+9
1846
if (char.
IsAsciiDigit
(s[i])) //-9
1860
if (char.
IsAsciiDigit
(s[i])) //"+9
1872
if (char.
IsAsciiDigit
(s[i])) //"P9"
1887
if (char.
IsAsciiDigit
(s[i]))
1904
if (char.
IsAsciiDigit
(s[i]))
1918
if (char.
IsAsciiDigit
(s[i]))
1935
if (char.
IsAsciiDigit
(s[i]))
1947
if (char.
IsAsciiDigit
(s[i]))
1968
if (char.
IsAsciiDigit
(s[i]))
1985
if (char.
IsAsciiDigit
(s[i]))
1997
if (char.
IsAsciiDigit
(s[i]))
2012
if (char.
IsAsciiDigit
(s[i]))
2024
if (char.
IsAsciiDigit
(s[i]))
2037
if (char.
IsAsciiDigit
(s[i]))
2049
if (char.
IsAsciiDigit
(s[i]))
2060
if (char.
IsAsciiDigit
(s[i]))
2109
if (char.
IsAsciiDigit
(s[i]))
2137
if (char.
IsAsciiDigit
(s[i]))
2163
if (char.
IsAsciiDigit
(s[i]))
2192
if (char.
IsAsciiDigit
(s[i]))
2199
if (!char.
IsAsciiDigit
(s[i]))
2202
if (!char.
IsAsciiDigit
(s[i]))
2226
if (!char.
IsAsciiDigit
(s[i]))
2229
if (!char.
IsAsciiDigit
(s[i]))
2267
if (!char.
IsAsciiDigit
(s[i]))
2270
if (!char.
IsAsciiDigit
(s[i]))
2277
if (!char.
IsAsciiDigit
(s[i]))
2280
if (!char.
IsAsciiDigit
(s[i]))
2298
if (!char.
IsAsciiDigit
(s[i]))
2301
if (!char.
IsAsciiDigit
(s[i]))
2308
if (!char.
IsAsciiDigit
(s[i]))
2311
if (!char.
IsAsciiDigit
(s[i]))
2317
if (!char.
IsAsciiDigit
(s[i]))
2320
if (!char.
IsAsciiDigit
(s[i]))
2338
if (!char.
IsAsciiDigit
(s[i]))
2351
if (char.
IsAsciiDigit
(s[i]))
System\Xml\Schema\XsdDuration.cs (2)
649
while (offset < offsetEnd && char.
IsAsciiDigit
(s[offset]))
663
while (offset < offsetEnd && char.
IsAsciiDigit
(s[offset]))
System\Xml\XPath\Internal\XPathScanner.cs (7)
185
else if (char.
IsAsciiDigit
(CurrentChar))
206
if (char.
IsAsciiDigit
(CurrentChar))
277
Debug.Assert(CurrentChar == '.' || char.
IsAsciiDigit
(CurrentChar));
280
while (char.
IsAsciiDigit
(CurrentChar))
287
while (char.
IsAsciiDigit
(CurrentChar))
297
Debug.Assert(char.
IsAsciiDigit
(CurrentChar));
301
while (char.
IsAsciiDigit
(CurrentChar))
System\Xml\Xsl\Runtime\DecimalFormatter.cs (3)
174
if (char.
IsAsciiDigit
(ch) || ch == EscChar)
258
if (char.
IsAsciiDigit
(ch))
268
Debug.Assert(char.
IsAsciiDigit
(ch) || ch == EscChar);
System.Reflection.Emit (4)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (4)
103
if (char.
IsAsciiDigit
(format[curIndex]) || format[curIndex] == '-')
113
while (char.
IsAsciiDigit
(format[curIndex]))
142
if (char.
IsAsciiDigit
(format[curIndex]) || format[curIndex] == '-')
153
while (char.
IsAsciiDigit
(format[curIndex]))
System.Runtime.Numerics (2)
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
98
while ((uint)i < (uint)format.Length && char.
IsAsciiDigit
(format[i]))
src\libraries\Common\src\System\Number.NumberBuffer.cs (1)
78
Debug.Assert(char.
IsAsciiDigit
((char)digit), $"Unexpected character found in Number: {digit}");
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\FindPal.cs (1)
250
if (char.
IsAsciiDigit
(c))
System.Windows.Forms.Tests (2)
RegexGenerator.g.cs (2)
112
char.
IsAsciiDigit
(span[i + 1]))
137
!char.
IsAsciiDigit
(slice[1]) || // Match a character in the set [0-9].