19 references to IsDigit
System.Text.Json (19)
System\Text\Json\JsonHelpers.Date.cs (1)
310while (sourceIndex < fractionEnd && IsDigit(curByte = source[sourceIndex]))
System\Text\Json\Reader\Utf8JsonReader.cs (6)
986if (JsonHelpers.IsDigit(first) || first == '-') 1060else if (JsonHelpers.IsDigit(marker) || marker == '-') 1556if (!JsonHelpers.IsDigit(nextByte)) 1610if (!JsonHelpers.IsDigit(nextByte)) 1649if (!JsonHelpers.IsDigit(nextByte)) 1687if (!JsonHelpers.IsDigit(nextByte))
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (7)
358if (JsonHelpers.IsDigit(first) || first == '-') 420else if (JsonHelpers.IsDigit(marker) || marker == '-') 1283if (!JsonHelpers.IsDigit(nextByte)) 1355if (!JsonHelpers.IsDigit(nextByte)) 1393if (!JsonHelpers.IsDigit(nextByte)) 1450if (!JsonHelpers.IsDigit(nextByte)) 1515if (!JsonHelpers.IsDigit(nextByte))
System\Text\Json\Serialization\Converters\Value\TimeOnlyConverter.cs (1)
56if (!JsonHelpers.IsDigit(firstChar) || firstSeparator < 0 || source[firstSeparator] == (byte)'.')
System\Text\Json\Serialization\Converters\Value\TimeSpanConverter.cs (1)
55if (!JsonHelpers.IsDigit(firstChar) && firstChar != '-')
System\Text\Json\Writer\JsonWriterHelper.cs (3)
178while (i < utf8FormattedNumber.Length && JsonHelpers.IsDigit(utf8FormattedNumber[i])) 201while (i < utf8FormattedNumber.Length && JsonHelpers.IsDigit(utf8FormattedNumber[i])) 243while (i < utf8FormattedNumber.Length && JsonHelpers.IsDigit(utf8FormattedNumber[i]))