8 references to CommonPrefixLength
System.Formats.Asn1 (1)
System\Formats\Asn1\SetOfValueComparer.cs (1)
21
int diffIndex = x.
CommonPrefixLength
(y);
System.Formats.Tar (1)
src\libraries\Common\src\System\IO\PathInternal.cs (1)
60
int commonLength = first.AsSpan().
CommonPrefixLength
(second);
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\System\IO\PathInternal.cs (1)
60
int commonLength = first.AsSpan().
CommonPrefixLength
(second);
System.Private.CoreLib (3)
src\libraries\Common\src\System\IO\PathInternal.cs (1)
60
int commonLength = first.AsSpan().
CommonPrefixLength
(second);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
4894
CommonPrefixLength
((ReadOnlySpan<T>)span, other);
4965
return
CommonPrefixLength
(span, other);
System.Text.Json (1)
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (1)
640
indexOfFirstMismatch = span.
CommonPrefixLength
(literal);
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
406
addedLength = vsb.AsSpan(initialLength, addedLength).
CommonPrefixLength
(alternateSb.AsSpan());