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)
22
Debug.Assert((typeof(TChar) == typeof(
Utf8Char
)) || (typeof(TChar) == typeof(Utf16Char)));
31
Debug.Assert((typeof(TChar) == typeof(
Utf8Char
)) || (typeof(TChar) == typeof(Utf16Char)));
100
if (typeof(TChar) == typeof(
Utf8Char
))
System\Number.BigInteger.cs (5)
781
if (typeof(TChar) == typeof(
Utf8Char
))
894
BigIntegerToDecChars((
Utf8Char
*)ptr + valueDigits, base1E9Value, valueDigits);
921
if (typeof(TChar) == typeof(
Utf8Char
))
1406
if (typeof(TChar) == typeof(
Utf8Char
))
1453
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)
707
return Number.ParseBigInteger(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, NumberFormatInfo.GetInstance(provider));
727
return Number.TryParseBigInteger(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, NumberFormatInfo.GetInstance(provider), out result) == Number.ParsingStatus.OK;
1693
return Number.TryFormatBigInteger(this, format, NumberFormatInfo.GetInstance(provider), MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Destination), out bytesWritten);
System\Numerics\Complex.cs (7)
2139
=> TryParse(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Text), style, provider, out result);
2170
if ((typeof(TChar) == typeof(
Utf8Char
))
2190
if ((typeof(TChar) == typeof(
Utf8Char
))
2268
TryFormat(MemoryMarshal.Cast<byte,
Utf8Char
>(utf8Destination), out bytesWritten, format, provider);
2273
Debug.Assert(typeof(TChar) == typeof(
Utf8Char
) || typeof(TChar) == typeof(Utf16Char));
2278
if ((typeof(TChar) == typeof(
Utf8Char
))
2288
if ((typeof(TChar) == typeof(
Utf8Char
))