7 instantiations of Rune
Microsoft.AspNetCore.App.Analyzers (7)
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (2)
164
result.Add(VirtualChar.Create(new
Rune
('"'), new TextSpan(offset + index, 2)));
175
result.Add(VirtualChar.Create(new
Rune
(tokenText[index]), span));
Infrastructure\VirtualChars\System.Text\Rune.cs (4)
134
public static explicit operator Rune(char ch) => new
Rune
(ch);
136
public static explicit operator Rune(uint value) => new
Rune
(value);
138
public static explicit operator Rune(int value) => new
Rune
(value);
1119
internal static Rune UnsafeCreate(uint scalarValue) => new
Rune
(scalarValue, false);
Infrastructure\VirtualChars\VirtualCharSequence.Chunks.cs (1)
159
: VirtualChar.Create(new
Rune
(ch), span);
72 references to Rune
Microsoft.AspNetCore.App.Analyzers (72)
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (3)
202
if (
Rune
.TryCreate(ch, out
var
rune))
209
Rune
.TryCreate(ch, info.Get(tokenText, index + 1), out rune))
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (3)
321
if (
Rune
.TryCreate(ch, out
var
rune))
332
if (
Rune
.TryCreate(ch, nextCh, out rune))
Infrastructure\VirtualChars\RuneExtensions.cs (1)
13
public static bool TryGetEscapeCharacter(
Rune
rune, out char escapedChar)
Infrastructure\VirtualChars\System.Text\Rune.cs (57)
29
internal readonly struct Rune : IComparable<
Rune
>, IEquatable<
Rune
>
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;
134
public static explicit operator
Rune
(char ch) => new Rune(ch);
136
public static explicit operator
Rune
(uint value) => new Rune(value);
138
public static explicit operator
Rune
(int value) => new Rune(value);
163
public static
Rune
ReplacementChar => UnsafeCreate(UnicodeUtility.ReplacementChar);
224
private static
Rune
ChangeCaseCultureAware(
Rune
rune, CultureInfo culture, bool toUpper)
262
public int CompareTo(
Rune
other) => _value.CompareTo(other._value);
290
public static OperationStatus DecodeFromUtf16(ReadOnlySpan<char> source, out
Rune
result, out int charsConsumed)
374
public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> source, out
Rune
result, out int bytesConsumed)
547
public static OperationStatus DecodeLastFromUtf16(ReadOnlySpan<char> source, out
Rune
result, out int charsConsumed)
607
public static OperationStatus DecodeLastFromUtf8(ReadOnlySpan<byte> source, out
Rune
value, out int bytesConsumed)
684
OperationStatus operationStatus = DecodeFromUtf8(source, out
Rune
tempRune, out int tempBytesConsumed);
751
public override bool Equals(object obj) => (obj is
Rune
other) && Equals(other);
753
public bool Equals(
Rune
other) => this == other;
765
public static
Rune
GetRuneAt(string input, int index)
905
public static bool TryCreate(char ch, out
Rune
result)
924
public static bool TryCreate(char highSurrogate, char lowSurrogate, out
Rune
result)
953
public static bool TryCreate(int value, out
Rune
result) => TryCreate((uint)value, out result);
958
public static bool TryCreate(uint value, out
Rune
result)
1085
public static bool TryGetRuneAt(string input, int index, out
Rune
value)
1119
internal static
Rune
UnsafeCreate(uint scalarValue) => new Rune(scalarValue, false);
1123
public static double GetNumericValue(
Rune
value)
1145
public static UnicodeCategory GetUnicodeCategory(
Rune
value)
1157
private static UnicodeCategory GetUnicodeCategoryNonAscii(
Rune
value)
1208
public static bool IsControl(
Rune
value)
1222
public static bool IsDigit(
Rune
value)
1234
public static bool IsLetter(
Rune
value)
1246
public static bool IsLetterOrDigit(
Rune
value)
1258
public static bool IsLower(
Rune
value)
1270
public static bool IsNumber(
Rune
value)
1282
public static bool IsPunctuation(
Rune
value)
1287
public static bool IsSeparator(
Rune
value)
1292
public static bool IsSymbol(
Rune
value)
1297
public static bool IsUpper(
Rune
value)
1309
public static bool IsWhiteSpace(
Rune
value)
1327
public static
Rune
ToLower(
Rune
value, CultureInfo culture)
1352
public static
Rune
ToLowerInvariant(
Rune
value)
1382
public static
Rune
ToUpper(
Rune
value, CultureInfo culture)
1407
public static
Rune
ToUpperInvariant(
Rune
value)
Infrastructure\VirtualChars\VirtualChar.cs (8)
34
public readonly
Rune
Rune;
52
public static VirtualChar Create(
Rune
rune, TextSpan span)
67
return new VirtualChar(rune:
Rune
.ReplacementChar, surrogateChar, span);
70
private VirtualChar(
Rune
rune, char surrogateChar, TextSpan span)
72
if (!(surrogateChar == 0 || rune ==
Rune
.ReplacementChar))
95
=> SurrogateChar != 0 ? char.IsDigit(SurrogateChar) :
Rune
.IsDigit(Rune);
98
=> SurrogateChar != 0 ? char.IsLetterOrDigit(SurrogateChar) :
Rune
.IsLetterOrDigit(Rune);
101
=> SurrogateChar != 0 ? char.IsWhiteSpace(SurrogateChar) :
Rune
.IsWhiteSpace(Rune);