Returns position where two strings begin to differ
#include "String and File String.au3" _StringDiffer( $sString1, $sString2 [, $bCaseSensitive = False] ) |
$sString1 | String 1 for checking difference in position |
$sString2 | String 2 for checking difference in position |
$CaseSensitive | False = Case insensitive, True = Case sensitive |
integer value | Position where the strings begin to differ, 0 = no difference |
_StringDiffer( "abcd", "ABDD" ) ; position 3
_StringDiffer( "abcd", "aBcd" ) ; 0 = no difference
_StringDiffer( "abcd", "aBcd", True ) ; position 2
_StringDiffer( "abcde", "abcd", True ) ; position 5