Post
by micsto » 07 Sep 2007, 09:27
Posted by: Michael Stoll \(MICSTO\)
Hi James,
that's the way M!Table compares strings:
int CMTblSortVal::CmpString( LPCTSTR lpcts1, LPCTSTR lpcts2, BOOL
bCaseInsensitive /*=FALSE*/, BOOL bStringSort /*=FALSE*/ )
{
DWORD dwCmpFlags = 0;
if ( bCaseInsensitive )
dwCmpFlags |= NORM_IGNORECASE;
if ( bStringSort )
dwCmpFlags |= SORT_STRINGSORT;
int iCmp = CompareString( LOCALE_USER_DEFAULT, dwCmpFlags, lpcts1, -1,
lpcts2, -1 );
if ( iCmp == CSTR_EQUAL )
return 0;
else if ( iCmp == CSTR_GREATER_THAN )
return 1;
else
return -1;
}
As you can see, LOCALE_USER_DEFAULT is used.
Regards
Michael