virtual P6R::P6ERR P6R::p6ISafeString::wstrcmp ( const P6R::P6WCHAR *  s1,
const P6R::P6WCHAR *  s2,
P6R::P6SIZE  cchMax,
P6R::P6INT32 *  pRetval 
) [pure virtual]

Lexigraphically compares two NULL terminated strings.

This method is not affected by locale.

Parameters:
s1 [in] NULL terminated string to compare to s2.
s2 [in] NULL terminated string to compare to s1.
cchMax [in] The maximum number of characters to compare (typically the smallest buffer size in the comparison).
pRetval [out] The address of a P6INT32 in which will be placed the result of the comparison. If the result is zero then the string are equivalent. The result is one if s1 > s2, otherwise the result is -1 indicating that s1 < s2.
Returns:
SuccessP6R::eOk 
FailureP6R::eInvalidArgs1, s2 and/or pRetval is NULL, or cchMax is zero.
P6R::eTooBigcchMax characters were compared and no differences were found, and the NULL terminator of either string was not reached.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.