CompareStringA

(LCID, dwCmpFlags, lpString1, cchCount1, lpString2, cchCount2)
LCID LCID
DWORD dwCmpFlags
LPCSTR lpString1
int cchCount1
LPCSTR lpString2
int cchCount2

Compares two character strings of the same locale according to the supplied LCID.

Parameters

LCID

Locale context for the comparison. The strings are assumed to be represented in the default ANSI code page for this locale.

dwCmpFlags

Flags that indicate the character traits to use or ignore when comparing the two strings. Several flags can be combined (in the case of this function, there are no illegal combinations of flags), or none can be used at all. Compare flags include the following.

Value
Meaning
NORM_IGNORECASE
Ignore case; default is OFF.
NORM_IGNOREKANATYPE
Ignore Japanese hiragana/katakana character differences; default is OFF.
NORM_IGNORENONSPACE
Ignore nonspacing marks (accents, diacritics and vowel marks); default is OFF.
NORM_IGNORESYMBOLS
Ignore symbols; default is OFF.
NORM_IGNOREWIDTH
Ignore character width, default is OFF.

lpString1 and lpString2

The two strings to be compared.

cchCount1 and cchCount2

The character counts of the two strings. The count does not include the null-terminator (if any). If either cchCount1 or cchCount2 is pics/OLE00090001.gif1, the corresponding string is assumed to be null-terminated and the length will be calculated automatically.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database