[The CHString class is part of the WMI Provider Framework which is now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.]
The CompareNoCase method uses the _wcsicmp function to compare a CHString string with another string.
int CompareNoCase( LPCWSTR lpsz );
The other string used for comparison.
The CompareNoCase method returns the following values.
The CompareNoCase method, which performs a case-insensitive comparison of the strings, is not affected by locale.
The following code example shows the use of CHstring::CompareNoCase:
CHString s1( L"abc" ); CHString s2( L"ABD" ); // Compare with a CHString. assert( s1.CompareNoCase( s2 ) == 0 ); // Compare with LPCWSTR string. assert( s1.CompareNoCase( L"ABE" ) < 0 );
|Minimum supported client||Windows Vista|
|Minimum supported server||Windows Server 2008|
|Header||chstring.h (include FwCommon.h)|