1 write to Rune
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (1)
77
Rune
= rune;
30 references to Rune
Microsoft.CodeAnalysis.CSharp.Features (13)
ConvertBetweenRegularAndVerbatimString\AbstractConvertBetweenRegularAndVerbatimStringCodeRefactoringProvider.cs (1)
179
if (ch.Span.Length == 2 && ch.
Rune
.Value != 0)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (2)
118
characters.First().
Rune
.Value == '"')
123
characters.Last().
Rune
.Value == '"')
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (2)
325
while (current < length && IsCSharpWhitespace(leadingWhitespace1[current]) && leadingWhitespace1[current].
Rune
== leadingWhitespace2[current].
Rune
)
ConvertToRawString\ConvertToRawStringHelpers.cs (8)
19
if (characters.First().
Rune
.Value == '"' ||
20
characters.Last().
Rune
.Value == '"')
33
=> ch.
Rune
.Utf16SequenceLength == 1 && SyntaxFacts.IsNewLine((char)ch.Value);
36
=> ch.
Rune
.Utf16SequenceLength == 1 && SyntaxFacts.IsWhitespace((char)ch.Value);
41
characters[index].
Rune
is { Utf16SequenceLength: 1, Value: '\r' } &&
42
characters[index + 1].
Rune
is { Utf16SequenceLength: 1, Value: '\n' };
112
if (ch.
Rune
.Value == 0)
124
var category = Rune.GetUnicodeCategory(ch.
Rune
);
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (1)
EmbeddedLanguages\AspNetCoreVirtualChar.cs (1)
27
get => VirtualChar.
Rune
.Value;
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\Classification\AbstractFallbackEmbeddedLanguageClassifier.cs (1)
50
if (vc.Span.Length > vc.
Rune
.Utf16SequenceLength)
Microsoft.CodeAnalysis.Workspaces (15)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\IVirtualCharService.cs (1)
50
/// VirtualChar in the result array with a matching <see cref="VirtualChar.
Rune
"/> property.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (14)
29
/// The value of this <see cref="VirtualChar"/> as a <see cref="
Rune
"/> if such a representation is possible.
30
/// <see cref="
Rune
"/>s can represent Unicode codepoints that can appear in a <see cref="string"/> except for
39
/// cref="
Rune
"/>. If <see cref="
Rune
"/> is not <see cref="Rune.ReplacementChar"/>, this will be <c>0</c>.
58
/// if <paramref name="surrogateChar"/> is not actually a surrogate character. The resultant <see cref="
Rune
"/>
85
/// cref="
Rune
"/>.
87
public int Value => SurrogateChar != 0 ? SurrogateChar :
Rune
.Value;
90
=> SurrogateChar != 0 ? char.IsDigit(SurrogateChar) : Rune.IsDigit(
Rune
);
93
=> SurrogateChar != 0 ? char.IsLetter(SurrogateChar) : Rune.IsLetter(
Rune
);
96
=> SurrogateChar != 0 ? char.IsLetterOrDigit(SurrogateChar) : Rune.IsLetterOrDigit(
Rune
);
99
=> SurrogateChar != 0 ? char.IsWhiteSpace(SurrogateChar) : Rune.IsWhiteSpace(
Rune
);
102
public int Utf16SequenceLength => SurrogateChar != 0 ? 1 :
Rune
.Utf16SequenceLength;
118
=> SurrogateChar != 0 ? SurrogateChar.ToString() :
Rune
.ToString();
130
var length =
Rune
.EncodeToUtf16(chars);