1/6/2024 0 Comments Compare anything appsAny of the parameter values was invalid.īoth CompareString and CompareStringEx are optimized to run at the highest speed when dwCmpFlags is set to 0 or NORM_IGNORECASE, cchCount1 and cchCount2 are set to -1, and the locale does not support any linguistic compressions, as when traditional Spanish sorting treats "ch" as a single character.īoth CompareString and CompareStringEx ignore Arabic kashidas during the comparison. The values supplied for flags were invalid. To get extended error information, the application can call GetLastError, which can return one of the following error codes: The function returns 0 if it does not succeed. The string indicated by lpString1 is greater in lexical value than the string indicated by lpString2. The two strings are equivalent for sorting purposes, although not necessarily identical. The string indicated by lpString1 is equivalent in lexical value to the string indicated by lpString2. The string indicated by lpString1 is less in lexical value than the string indicated by lpString2. Then, the meaning of 0 is consistent with the C runtime. To maintain the C runtime convention of comparing strings, the value 2 can be subtracted from a nonzero return value. Returns one of the following values if successful. Windows Vista, Windows 7: Reserved must set to NULL. Pointer to an NLSVERSIONINFOEX structure that contains the version information about the relevant NLS capability usually retrieved from GetNLSVersionEx. In this case, the function determines the length automatically. The application can supply a negative value if the string is null-terminated. Length of the string indicated by lpString2, excluding the terminating null character. Length of the string indicated by lpString1, excluding the terminating null character. Windows 7: Treat digits as numbers during sorting, for example, sort "2" before "10". This flag does not have to be used when your application calls CompareStringOrdinal. Note that most scenarios for CompareStringEx use this flag. Use the default linguistic rules for casing, instead of file system rules. The full-width form is a formatting distinction used in Chinese and Japanese scripts. Ignore the difference between half-width and full-width characters, for example, C a t = cat.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |