_StringDiffer

Returns position where two strings begin to differ

#include "String and File String.au3"
_StringDiffer( $sString1, $sString2 [, $bCaseSensitive = False] )

parameters

$sString1 String 1 for checking difference in position
$sString2 String 2 for checking difference in position
$CaseSensitive False = Case insensitive, True = Case sensitive

return value

integer value Position where the strings begin to differ, 0 = no difference

related

examples

_StringDiffer( "abcd", "ABDD" ) ; position 3

_StringDiffer( "abcd", "aBcd" ) ; 0 = no difference

_StringDiffer( "abcd", "aBcd", True ) ; position 2

_StringDiffer( "abcde", "abcd", True ) ; position 5