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