79 references to Utf8Constants
System.Private.CoreLib (79)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.Default.cs (5)
32if (source[19] != Utf8Constants.Space) 40if (sign != Utf8Constants.Plus && sign != Utf8Constants.Minus) 62if (source[23] != Utf8Constants.Colon) 84if (!TryCreateDateTimeOffset(dateTime: dateTime, offsetNegative: sign == Utf8Constants.Minus, offsetHours: offsetHours, offsetMinutes: offsetMinutes, out value))
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.G.cs (5)
41if (source[2] != Utf8Constants.Slash) 65if (source[5] != Utf8Constants.Slash) 91if (source[10] != Utf8Constants.Space) 115if (source[13] != Utf8Constants.Colon) 139if (source[16] != Utf8Constants.Colon)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.Helpers.cs (3)
16if (((uint)offsetHours) > Utf8Constants.DateTimeMaxUtcOffsetHours) 28if (offsetHours == Utf8Constants.DateTimeMaxUtcOffsetHours && offsetMinutes != 0) 162Debug.Assert(fraction >= 0 && fraction <= Utf8Constants.MaxDateTimeFraction); // All of our callers to date parse the fraction from fixed 7-digit fields so this value is trusted.
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.O.cs (11)
47if (source[4] != Utf8Constants.Hyphen) 71if (source[7] != Utf8Constants.Hyphen) 119if (source[13] != Utf8Constants.Colon) 143if (source[16] != Utf8Constants.Colon) 167if (source[19] != Utf8Constants.Period) 197if (offsetChar != 'Z' && offsetChar != Utf8Constants.Plus && offsetChar != Utf8Constants.Minus) 227Debug.Assert(offsetChar == Utf8Constants.Plus || offsetChar == Utf8Constants.Minus); 252if (source[30] != Utf8Constants.Colon) 276if (!TryCreateDateTimeOffset(year: year, month: month, day: day, hour: hour, minute: minute, second: second, fraction: fraction, offsetNegative: offsetChar == Utf8Constants.Minus, offsetHours: offsetHours, offsetMinutes: offsetMinutes, out value))
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.R.cs (5)
47if (source[4] != Utf8Constants.Space) 69if (source[7] != Utf8Constants.Space) 121if (source[16] != Utf8Constants.Space) 143if (source[19] != Utf8Constants.Colon) 165if (source[22] != Utf8Constants.Colon)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Float.cs (3)
126case Utf8Constants.Minus: 129goto case Utf8Constants.Plus; 132case Utf8Constants.Plus:
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Signed.N.cs (12)
37if (c == Utf8Constants.Period) 50if (c == Utf8Constants.Comma) 53if (c == Utf8Constants.Period) 129if (c == Utf8Constants.Period) 142if (c == Utf8Constants.Comma) 145if (c == Utf8Constants.Period) 221if (c == Utf8Constants.Period) 234if (c == Utf8Constants.Comma) 237if (c == Utf8Constants.Period) 316if (c == Utf8Constants.Period) 329if (c == Utf8Constants.Comma) 332if (c == Utf8Constants.Period)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.N.cs (12)
31if (c == Utf8Constants.Period) 44if (c == Utf8Constants.Comma) 47if (c == Utf8Constants.Period) 112if (c == Utf8Constants.Period) 125if (c == Utf8Constants.Comma) 128if (c == Utf8Constants.Period) 193if (c == Utf8Constants.Period) 206if (c == Utf8Constants.Comma) 209if (c == Utf8Constants.Period) 274if (c == Utf8Constants.Period) 287if (c == Utf8Constants.Comma) 290if (c == Utf8Constants.Period)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Number.cs (7)
41case Utf8Constants.Minus: 43goto case Utf8Constants.Plus; 45case Utf8Constants.Plus: 128if (c == Utf8Constants.Period) 236case Utf8Constants.Minus: 238goto case Utf8Constants.Plus; 240case Utf8Constants.Plus:
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.BigG.cs (7)
28if (c == Utf8Constants.Minus) 48if (srcIndex == source.Length || source[srcIndex++] != Utf8Constants.Colon) 63if (srcIndex == source.Length || source[srcIndex++] != Utf8Constants.Colon) 78if (srcIndex == source.Length || source[srcIndex++] != Utf8Constants.Colon) 93if (srcIndex == source.Length || source[srcIndex++] != Utf8Constants.Period) 120if (srcIndex != source.Length && (source[srcIndex] == Utf8Constants.Period || source[srcIndex] == Utf8Constants.Colon))
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.cs (2)
73if (digitCount > Utf8Constants.DateTimeNumFractionDigits) 133Debug.Assert(fraction <= Utf8Constants.MaxDateTimeFraction); // This value comes from TryParseTimeSpanFraction() which already rejects any fraction string longer than 7 digits.
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpanSplitter.cs (7)
56if (c == Utf8Constants.Minus) 166if (srcIndex != source.Length && (source[srcIndex] == Utf8Constants.Period || source[srcIndex] == Utf8Constants.Colon)) 188if (c == Utf8Constants.Colon || (c == Utf8Constants.Period && neverParseAsFraction)) 199return c == Utf8Constants.Colon ? ComponentParseResult.Colon : ComponentParseResult.Period; 201else if (c == Utf8Constants.Period)