std-string-mismatch | ![]() |
STD-STRING-MISMATCH
returns the length of the longest common prefix of both strings or 0 if none is found. It is the same as the VLISP extension VL-STRING-MISMATCH
.
(std-string-mismatch "STD-FUN" "STD-VAR") => 3 (std-string-mismatch "STD-VAR" "*STD-VAR*") => 0
str1, str2: strings
A positive integer number (0 or higher).
None.
(std-require 'STDSTR)
Defined in STDSTR