19 references to Utf16SequenceLength
GenerateDocumentationAndConfigFiles (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
101
/// <inheritdoc cref="Rune.
Utf16SequenceLength
" />
102
public int Utf16SequenceLength => SurrogateChar != 0 ? 1 : Rune.
Utf16SequenceLength
;
Microsoft.CodeAnalysis.CSharp.Features (4)
ConvertToRawString\ConvertToRawStringHelpers.cs (4)
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' };
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\Classification\AbstractFallbackEmbeddedLanguageClassifier.cs (1)
50
if (vc.Span.Length > vc.Rune.
Utf16SequenceLength
)
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
101
/// <inheritdoc cref="Rune.
Utf16SequenceLength
" />
102
public int Utf16SequenceLength => SurrogateChar != 0 ? 1 : Rune.
Utf16SequenceLength
;
System.Formats.Tar (1)
System\Formats\Tar\TarHeader.Write.cs (1)
1241
utf16TruncatedLength += rune.
Utf16SequenceLength
;
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (1)
256
totalCharCount += thisRune.
Utf16SequenceLength
;
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (1)
241
charCount = value.
Utf16SequenceLength
;
src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (1)
213
for (int i = 0; i < thisRune.
Utf16SequenceLength
; i++)
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
1052
/// The <see cref="
Utf16SequenceLength
"/> property can be queried ahead of time to determine
src\libraries\System.Private.CoreLib\src\System\Text\SpanRuneEnumerator.cs (1)
50
_remaining = _remaining.Slice(_current.
Utf16SequenceLength
);
src\libraries\System.Private.CoreLib\src\System\Text\StringRuneEnumerator.cs (1)
48
_nextIndex += _current.
Utf16SequenceLength
;
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (1)
231
srcIdx += scalarValue.
Utf16SequenceLength
;
Test.Utilities (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
101
/// <inheritdoc cref="Rune.
Utf16SequenceLength
" />
102
public int Utf16SequenceLength => SurrogateChar != 0 ? 1 : Rune.
Utf16SequenceLength
;