CompareStringA(3w)

CompareStringA3w

Usage

INT CompareStringA
(
LCID lcid,
DWORD style,
LPCSTR str1,
INT len1,
LPCSTR str2,
INT len2
)

Overview

Compare two locale sensitive strings.

Params

lcid [In] LCID for the comparison.

style [In] Flags for the comparison (NORM_ constants from "winnls.h").

str1 [In] First string to compare.

len1 [In] Length of str1, or -1 if str1 is NUL terminated.

str2 [In] Second string to compare.

len2 [In] Length of str2, or -1 if str2 is NUL terminated.

Returns

Success: CSTR_LESS_THAN, CSTR_EQUAL or CSTR_GREATER_THAN depending on whether str1 is less than, equal to or greater than str2 respectively.

Failure: FALSE. Use GetLastError(3w) to determine the cause.

Implementation

Declared in "winnls.h".

Implemented in "dlls/kernel32/locale.c".

Debug channel "nls".

Releases

5 releases since Debian 2.1 (Slink); the text changed 4 times.

  1. 2.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.