1 write to Rune
Microsoft.CodeAnalysis.Workspaces (1)
VirtualChar.cs (1)
78
Rune
= rune;
29 references to Rune
Microsoft.CodeAnalysis.CSharp.Features (11)
ConvertBetweenRegularAndVerbatimString\AbstractConvertBetweenRegularAndVerbatimStringCodeRefactoringProvider.cs (1)
179
if (ch.Span.Length == 2 && ch.
Rune
.Value != 0)
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (2)
457
while (current < length && IsCSharpWhitespace(leadingWhitespace1[current]) && leadingWhitespace1[current].
Rune
== leadingWhitespace2[current].
Rune
)
ConvertToRawString\ConvertToRawStringHelpers.cs (8)
21
if (characters.First().
Rune
.Value == '"' ||
22
characters.Last().
Rune
.Value == '"')
35
=> ch.
Rune
.Utf16SequenceLength == 1 && SyntaxFacts.IsNewLine((char)ch.Value);
38
=> ch.
Rune
.Utf16SequenceLength == 1 && SyntaxFacts.IsWhitespace((char)ch.Value);
43
characters[index].
Rune
is { Utf16SequenceLength: 1, Value: '\r' } &&
44
characters[index + 1].
Rune
is { Utf16SequenceLength: 1, Value: '\n' };
88
if (ch.
Rune
.Value == 0)
100
var category = Rune.GetUnicodeCategory(ch.
Rune
);
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (1)
EmbeddedLanguages\AspNetCoreVirtualChar.cs (1)
28
get => VirtualChar.
Rune
.Value;
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
EmbeddedLanguages\VirtualChars\VisualBasicVirtualCharServiceTests.vb (1)
91
Return $"[{ConvertToString(ChrW(vc.
Rune
.Value))},[{vc.Span.Start - _statementPrefix.Length},{vc.Span.End - _statementPrefix.Length}]]"
Microsoft.CodeAnalysis.Workspaces (16)
IVirtualCharService.cs (1)
50
/// VirtualChar in the result array with a matching <see cref="VirtualChar.
Rune
"/> property.
VirtualChar.cs (15)
30
/// The value of this <see cref="VirtualChar"/> as a <see cref="
Rune
"/> if such a representation is possible.
31
/// <see cref="
Rune
"/>s can represent Unicode codepoints that can appear in a <see cref="string"/> except for
40
/// cref="
Rune
"/>. If <see cref="
Rune
"/> is not <see cref="Rune.ReplacementChar"/>, this will be <c>0</c>.
59
/// if <paramref name="surrogateChar"/> is not actually a surrogate character. The resultant <see cref="
Rune
"/>
86
/// cref="
Rune
"/>.
88
public int Value => SurrogateChar != 0 ? SurrogateChar :
Rune
.Value;
91
=> SurrogateChar != 0 ? char.IsDigit(SurrogateChar) : Rune.IsDigit(
Rune
);
94
=> SurrogateChar != 0 ? char.IsLetterOrDigit(SurrogateChar) : Rune.IsLetterOrDigit(
Rune
);
97
=> SurrogateChar != 0 ? char.IsWhiteSpace(SurrogateChar) : Rune.IsWhiteSpace(
Rune
);
117
=>
Rune
== other.
Rune
&&
124
hashCode = hashCode * -1521134295 +
Rune
.GetHashCode();
136
=> SurrogateChar != 0 ? SurrogateChar.ToString() :
Rune
.ToString();
148
var length =
Rune
.EncodeToUtf16(chars);