10 references to TextUtilities
Microsoft.CodeAnalysis (10)
Text\CompositeText.cs (2)
533
Debug.Assert(resultLine.ToString().All(static c => !
TextUtilities
.IsAnyLineBreakCharacter(c)));
556
if (
TextUtilities
.IsAnyLineBreakCharacter(previousSegmentLastChar))
Text\SourceText.cs (1)
1124
else if (!
TextUtilities
.IsAnyLineBreakCharacter(c))
Text\SubText.cs (1)
192
Debug.Assert(resultLine.ToString().All(static c => !
TextUtilities
.IsAnyLineBreakCharacter(c)));
Text\TextLine.cs (6)
49
if (span.Start > 0 && !
TextUtilities
.IsAnyLineBreakCharacter(text[span.Start - 1]))
57
endIncludesLineBreak =
TextUtilities
.IsAnyLineBreakCharacter(text[span.End - 1]);
62
var lineBreakLen =
TextUtilities
.GetLengthOfLineBreak(text, span.End);
90
Debug.Assert(span.Start == 0 ||
TextUtilities
.IsAnyLineBreakCharacter(text[span.Start - 1]));
91
Debug.Assert(span.End == text.Length ||
TextUtilities
.IsAnyLineBreakCharacter(text[span.End - 1]));
142
TextUtilities
.GetStartAndLengthOfLineBreakEndingAt(_text, _endIncludingBreaks - 1, out startLineBreak, out lineBreakLength);