5 instantiations of Utf8Char
System.Runtime.Numerics (5)
System\Number.Polyfill.cs (5)
58
public static Utf8Char CastFrom(byte value) =>
new
(value);
59
public static Utf8Char CastFrom(char value) =>
new
((byte)value);
60
public static Utf8Char CastFrom(int value) =>
new
((byte)value);
61
public static Utf8Char CastFrom(uint value) =>
new
((byte)value);
62
public static Utf8Char CastFrom(ulong value) =>
new
((byte)value);
36 references to Utf8Char
System.Runtime.Numerics (36)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder_1.cs (3)
23
Debug.Assert((typeof(TChar) == typeof(
Utf8Char
)) || (typeof(TChar) == typeof(Utf16Char)));
32
Debug.Assert((typeof(TChar) == typeof(
Utf8Char
)) || (typeof(TChar) == typeof(Utf16Char)));
104
if (typeof(TChar) == typeof(
Utf8Char
))
System\Number.BigInteger.cs (5)
821
if (typeof(TChar) == typeof(
Utf8Char
))
933
BigIntegerToDecChars((
Utf8Char
*)ptr + valueDigits, base1E9Value, valueDigits);
960
if (typeof(TChar) == typeof(
Utf8Char
))
1562
if (typeof(TChar) == typeof(
Utf8Char
))
1610
if ((typeof(TChar) == typeof(
Utf8Char
))
System\Number.Polyfill.cs (10)
53
internal readonly struct Utf8Char(byte ch) : IUtfChar<
Utf8Char
>
58
public static
Utf8Char
CastFrom(byte value) => new(value);
59
public static
Utf8Char
CastFrom(char value) => new((byte)value);
60
public static
Utf8Char
CastFrom(int value) => new((byte)value);
61
public static
Utf8Char
CastFrom(uint value) => new((byte)value);
62
public static
Utf8Char
CastFrom(ulong value) => new((byte)value);
63
public static uint CastToUInt32(
Utf8Char
value) => value.value;
64
public bool Equals(
Utf8Char
other) => value == other.value;
114
return (typeof(TChar) == typeof(
Utf8Char
))
123
if (typeof(TChar) == typeof(
Utf8Char
))
System\Numerics\BigInteger.cs (4)
836
return Number.ParseBigInteger(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, NumberFormatInfo.GetInstance(provider));
856
return Number.TryParseBigInteger(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, NumberFormatInfo.GetInstance(provider), out result, out _) == Number.ParsingStatus.OK;
868
return Number.TryParseBigInteger(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, NumberFormatInfo.GetInstance(provider), out result, out bytesConsumed) == Number.ParsingStatus.OK;
1886
return Number.TryFormatBigInteger(this, format, NumberFormatInfo.GetInstance(provider), MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Destination), out bytesWritten);
System\Numerics\Complex.cs (6)
831
return Complex<double>.TryParse(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, provider, out Unsafe.As<Complex, Complex<double>>(ref result), out _);
845
return Complex<double>.TryParse(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, provider, out Unsafe.As<Complex, Complex<double>>(ref result), out bytesConsumed);
888
TryFormat(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Destination), out bytesWritten, format, provider);
893
Debug.Assert(typeof(TChar) == typeof(
Utf8Char
) || typeof(TChar) == typeof(Utf16Char));
898
if ((typeof(TChar) == typeof(
Utf8Char
))
908
if ((typeof(TChar) == typeof(
Utf8Char
))
System\Numerics\Complex.Generic.cs (8)
1460
=> TryParse(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, provider, out result, out _);
1468
=> TryParse(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, provider, out result, out bytesConsumed);
1510
if ((typeof(TChar) == typeof(
Utf8Char
))
1531
if ((typeof(TChar) == typeof(
Utf8Char
))
1626
TryFormat(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Destination), out bytesWritten, format, provider);
1631
Debug.Assert(typeof(TChar) == typeof(
Utf8Char
) || typeof(TChar) == typeof(Utf16Char));
1636
if ((typeof(TChar) == typeof(
Utf8Char
))
1646
if ((typeof(TChar) == typeof(
Utf8Char
))