Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISafeString::bwstrsubcmp ( const P6BWCSTR s1,
const P6BWCSTR s2,
P6INT32 pRetval 
)
pure virtual

Case-sensitively compares the two P6R::P6BWCSTR's using the length of the second P6BWCSTR to limit the comparison.

This is exactly the same as the bstrncmp() method, but instead of specifying a separate count of characters to compare, the length of the second P6BWCSTR is used.

Parameters
s1[ in ] A pointer to the first P6BWCSTR to compare.
s2[ in ] A pointer to the second P6BWCSTR to compare.
pRetval[ out ] The address of a P6R:P6INT32 in which will be placed the result of comparison. A value of zero indicate equality, -1 indicates s1 < s2 and 1 indicate s1 > s2.
Returns
SuccessP6R::eOkThe comparison was successful.
FailureP6R::eInvalidArgs1, s2 or pRetval is NULL