Show / Hide Table of Contents

Method StringUtil.CommonPrefix


Overload

Returns the number of characters common to the start of each string.

public static int CommonPrefix(ReadOnlySpan<char> s1, ReadOnlySpan<char> s2)
Parameters
s1  (ReadOnlySpan<char>)
s2  (ReadOnlySpan<char>)
Returns
int