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);
28 references to Utf8Char
System.Runtime.Numerics (28)
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)
797
if (typeof(TChar) == typeof(
Utf8Char
))
909
BigIntegerToDecChars((
Utf8Char
*)ptr + valueDigits, base1E9Value, valueDigits);
936
if (typeof(TChar) == typeof(
Utf8Char
))
1536
if (typeof(TChar) == typeof(
Utf8Char
))
1581
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;
111
return (typeof(TChar) == typeof(
Utf8Char
))
120
if (typeof(TChar) == typeof(
Utf8Char
))
System\Numerics\BigInteger.cs (3)
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) == Number.ParsingStatus.OK;
1868
return Number.TryFormatBigInteger(this, format, NumberFormatInfo.GetInstance(provider), MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Destination), out bytesWritten);
System\Numerics\Complex.cs (7)
2137
=> TryParse(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, provider, out result);
2168
if ((typeof(TChar) == typeof(
Utf8Char
))
2188
if ((typeof(TChar) == typeof(
Utf8Char
))
2266
TryFormat(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Destination), out bytesWritten, format, provider);
2271
Debug.Assert(typeof(TChar) == typeof(
Utf8Char
) || typeof(TChar) == typeof(Utf16Char));
2276
if ((typeof(TChar) == typeof(
Utf8Char
))
2286
if ((typeof(TChar) == typeof(
Utf8Char
))