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)
841
if (typeof(TChar) == typeof(
Utf8Char
))
953
BigIntegerToDecChars((
Utf8Char
*)ptr + valueDigits, base1E9Value, valueDigits);
980
if (typeof(TChar) == typeof(
Utf8Char
))
1582
if (typeof(TChar) == typeof(
Utf8Char
))
1630
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.TryParseBigIntegerPartial(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)
814
return Complex<double>.TryParse(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, provider, out Unsafe.As<Complex, Complex<double>>(ref result), out _);
828
return Complex<double>.TryParsePartial(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, provider, out Unsafe.As<Complex, Complex<double>>(ref result), out bytesConsumed);
871
TryFormat(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Destination), out bytesWritten, format, provider);
876
Debug.Assert(typeof(TChar) == typeof(
Utf8Char
) || typeof(TChar) == typeof(Utf16Char));
881
if ((typeof(TChar) == typeof(
Utf8Char
))
891
if ((typeof(TChar) == typeof(
Utf8Char
))
System\Numerics\Complex.Generic.cs (8)
1896
=> TryParse(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, provider, out result, out _);
1904
=> TryParsePartial(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, provider, out result, out bytesConsumed);
1961
if ((typeof(TChar) == typeof(
Utf8Char
))
1982
if ((typeof(TChar) == typeof(
Utf8Char
))
2077
TryFormat(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Destination), out bytesWritten, format, provider);
2082
Debug.Assert(typeof(TChar) == typeof(
Utf8Char
) || typeof(TChar) == typeof(Utf16Char));
2087
if ((typeof(TChar) == typeof(
Utf8Char
))
2097
if ((typeof(TChar) == typeof(
Utf8Char
))