(vl-string-mismatch string1 string2 [position1 [position2 [case_flag]]])
The vl-string-mismatch function returns the length of the longest common substring of two specified text strings, starting at specified positions.
string1 specifies the first text string to be matched.
string2 specifies the second text string to be matched.
position1 specifies the position to search from in the first string as an integer (0 if omitted). The position set to 0 specifies the first character.
position2 specifies the position to search from in the second as an integer (0 if omitted). The position set to 0 specifies the first character.
case_flag represents any value of any type.
The function returns an integer reporting the longest common substring.
Examples
: (vl-string-mismatch "New York" "New Jersey")
4
: (vl-string-mismatch "New York" "Rio de Janeiro")
0
: (vl-string-mismatch "Today in New York" "Tomorrow in New Jersey" 6 9)
7