3 writes to _value
Microsoft.AspNetCore.App.Analyzers (3)
Infrastructure\VirtualChars\System.Text\Rune.cs (3)
72
_value
= expanded;
110
_value
= value;
117
_value
= scalarValue;
50 references to _value
Microsoft.AspNetCore.App.Analyzers (50)
Infrastructure\VirtualChars\System.Text\Rune.cs (50)
120
public static bool operator ==(Rune left, Rune right) => left.
_value
== right.
_value
;
122
public static bool operator !=(Rune left, Rune right) => left.
_value
!= right.
_value
;
124
public static bool operator <(Rune left, Rune right) => left.
_value
< right.
_value
;
126
public static bool operator <=(Rune left, Rune right) => left.
_value
<= right.
_value
;
128
public static bool operator >(Rune left, Rune right) => left.
_value
> right.
_value
;
130
public static bool operator >=(Rune left, Rune right) => left.
_value
>= right.
_value
;
141
private string DebuggerDisplay => FormattableString.Invariant($"U+{
_value
:X4} '{(IsValid(
_value
) ? ToString() : "\uFFFD")}'");
147
public bool IsAscii => UnicodeUtility.IsAsciiCodePoint(
_value
);
153
public bool IsBmp => UnicodeUtility.IsBmpCodePoint(
_value
);
158
public int Plane => UnicodeUtility.GetPlane(
_value
);
172
public int Utf16SequenceLength => UnicodeUtility.GetUtf16SequenceLength(
_value
);
181
public int Utf8SequenceLength => UnicodeUtility.GetUtf8SequenceLength(
_value
);
186
public int Value => (int)
_value
;
262
public int CompareTo(Rune other) =>
_value
.CompareTo(other.
_value
);
891
return ((char)
_value
).ToString();
896
UnicodeUtility.GetUtf16SurrogatesFromSupplementaryPlaneScalar(
_value
, out buffer[0], out buffer[1]);
990
destination[0] = (char)
_value
;
996
UnicodeUtility.GetUtf16SurrogatesFromSupplementaryPlaneScalar(
_value
, out destination[0], out destination[1]);
1028
destination[0] = (byte)
_value
;
1035
if (
_value
<= 0x7FFu)
1038
destination[0] = (byte)((
_value
+ (0b110u << 11)) >> 6);
1039
destination[1] = (byte)((
_value
& 0x3Fu) + 0x80u);
1046
if (
_value
<= 0xFFFFu)
1049
destination[0] = (byte)((
_value
+ (0b1110 << 16)) >> 12);
1050
destination[1] = (byte)(((
_value
& (0x3Fu << 6)) >> 6) + 0x80u);
1051
destination[2] = (byte)((
_value
& 0x3Fu) + 0x80u);
1059
destination[0] = (byte)((
_value
+ (0b11110 << 21)) >> 18);
1060
destination[1] = (byte)(((
_value
& (0x3Fu << 12)) >> 12) + 0x80u);
1061
destination[2] = (byte)(((
_value
& (0x3Fu << 6)) >> 6) + 0x80u);
1062
destination[3] = (byte)((
_value
& 0x3Fu) + 0x80u);
1127
uint baseNum = value.
_value
- '0';
1138
return CharUnicodeInfo.GetNumericValue((char)value.
_value
);
1165
return CharUnicodeInfo.GetUnicodeCategory((char)value.
_value
);
1219
return ((value.
_value
+ 1) & ~0x80u) <= 0x20u;
1226
return UnicodeUtility.IsInRangeInclusive(value.
_value
, '0', '9');
1238
return ((value.
_value
- 'A') & ~0x20u) <= (uint)('Z' - 'A'); // [A-Za-z]
1262
return UnicodeUtility.IsInRangeInclusive(value.
_value
, 'a', 'z');
1274
return UnicodeUtility.IsInRangeInclusive(value.
_value
, '0', '9');
1301
return UnicodeUtility.IsInRangeInclusive(value.
_value
, 'A', 'Z');
1323
char.IsWhiteSpace((char)value.
_value
);
1361
return UnsafeCreate(Utf16Utility.ConvertAllAsciiCharsInUInt32ToLowercase(value.
_value
));
1416
return UnsafeCreate(Utf16Utility.ConvertAllAsciiCharsInUInt32ToUppercase(value.
_value
));