1 write to Rune
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (1)
78Rune = rune;
15 references to Rune
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)
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"/>. 88public int Value => SurrogateChar != 0 ? SurrogateChar : Rune.Value; 91=> SurrogateChar != 0 ? char.IsDigit(SurrogateChar) : Rune.IsDigit(Rune); 94=> SurrogateChar != 0 ? char.IsLetter(SurrogateChar) : Rune.IsLetter(Rune); 97=> SurrogateChar != 0 ? char.IsLetterOrDigit(SurrogateChar) : Rune.IsLetterOrDigit(Rune); 100=> SurrogateChar != 0 ? char.IsWhiteSpace(SurrogateChar) : Rune.IsWhiteSpace(Rune); 103public int Utf16SequenceLength => SurrogateChar != 0 ? 1 : Rune.Utf16SequenceLength; 119=> SurrogateChar != 0 ? SurrogateChar.ToString() : Rune.ToString(); 131var length = Rune.EncodeToUtf16(chars);