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