19 references to Utf16SequenceLength
GenerateDocumentationAndConfigFiles (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
101/// <inheritdoc cref="Rune.Utf16SequenceLength" /> 102public 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); 41characters[index].Rune is { Utf16SequenceLength: 1, Value: '\r' } && 42characters[index + 1].Rune is { Utf16SequenceLength: 1, Value: '\n' };
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\Classification\AbstractFallbackEmbeddedLanguageClassifier.cs (1)
50if (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" /> 102public int Utf16SequenceLength => SurrogateChar != 0 ? 1 : Rune.Utf16SequenceLength;
System.Formats.Tar (1)
System\Formats\Tar\TarHeader.Write.cs (1)
1241utf16TruncatedLength += rune.Utf16SequenceLength;
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (1)
256totalCharCount += thisRune.Utf16SequenceLength;
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (1)
241charCount = value.Utf16SequenceLength;
src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (1)
213for (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)
231srcIdx += scalarValue.Utf16SequenceLength;
Test.Utilities (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (2)
101/// <inheritdoc cref="Rune.Utf16SequenceLength" /> 102public int Utf16SequenceLength => SurrogateChar != 0 ? 1 : Rune.Utf16SequenceLength;