Summary

Class:System.Buffers.Text.Utf8Constants
Assembly:System.Memory
File(s):C:\GitHub\corefx\src\System.Memory\src\System\Buffers\Text\Utf8Constants.cs
Covered lines:1
Uncovered lines:0
Coverable lines:1
Total lines:34
Line coverage:100%

Metrics

MethodCyclomatic complexity NPath complexity Sequence coverage Branch coverage
.cctor()10100100

File(s)

C:\GitHub\corefx\src\System.Memory\src\System\Buffers\Text\Utf8Constants.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3// See the LICENSE file in the project root for more information.
 4
 5namespace System.Buffers.Text
 6{
 7    internal static partial class Utf8Constants
 8    {
 9        public const byte Colon = (byte)':';
 10        public const byte Comma = (byte)',';
 11        public const byte Minus = (byte)'-';
 12        public const byte Period = (byte)'.';
 13        public const byte Plus = (byte)'+';
 14        public const byte Slash = (byte)'/';
 15        public const byte Space = (byte)' ';
 16        public const byte Hyphen = (byte)'-';
 17
 18        public const byte Separator = (byte)',';
 19
 20        // Invariant formatting uses groups of 3 for each number group separated by commas.
 21        //   ex. 1,234,567,890
 22        public const int GroupSize = 3;
 23
 124        public static readonly TimeSpan s_nullUtcOffset = TimeSpan.MinValue;  // Utc offsets must range from -14:00 to 1
 25
 26        public const int DateTimeMaxUtcOffsetHours = 14; // The UTC offset portion of a TimeSpan or DateTime can be no m
 27
 28        public const int DateTimeNumFractionDigits = 7;  // TimeSpan and DateTime formats allow exactly up to many digit
 29        public const int MaxDateTimeFraction = 9999999;  // ... and hence, the largest fraction expressible is this.
 30
 31        public const ulong BillionMaxUIntValue = (ulong)uint.MaxValue * Billion; // maximum value that can be split into
 32        public const uint Billion = 1000000000; // 10^9, used to split int64/uint64 into three uint32 {1-2 digits}{9 dig
 33    }
 34}

Methods/Properties

.cctor()