@EXPCMP
— Compares two strings after expanding
escapes.
Syntax:
%@EXPCMP[
string1,
string2,
flags]
string1 | the first string to compare |
string2 | the second string to compare |
flags | 1 : case insensitive |
Use commas to separate arguments. If you need a comma in either string, either enclose the
string in double quotes, or else use \c
or \x002c
to represent the
comma.
If you need a double quote in either string, use \q
or \x0022
to
represent it.
This function returns 0 if the two strings match, or nonzero if they don’t.
rem Case sensitive:
echo %@expcmp[Cr\ue8me br\ufbl\u00e9e \u20ac3.50,CR\uc8ME BR\udbL\u00c9E \u20ac3.50]
rem Case insensitive:
echo %@expcmp[Cr\ue8me br\ufbl\u00e9e \u20ac3.50,CR\uc8ME BR\udbL\u00c9E \u20ac3.50,1]