NWUnicodeToCollation
Converts a Unicode string to an array of collation weights for use in comparison operations to provide proper sorting for the current country
#include <unicode.h>
N_EXTERN_LIBRARY(nint) NWUnicodeToCollation (
nptr ruleHandle,
punicode dest,
nuint32 maxLen,
const unicode N_FAR *src,
unicode noMap,
pnuint32 len);
uses netwin32
Function NWUnicodeToCollation
(ruleHandle : nptr;
dest : punicode;
maxLen : nuint32;
src : punicode;
noMap : unicode;
len : pnuint32
) : nint;
These are common return values; see Return Values (Return Values for C) for more information.
On Win32 clients, this routine calls wcsxfrm which results in some differences from other platforms. If there is insufficient space in the output buffer, Win32 clients set len = maxLen, do not null terminate the output buffer, and return status -1. Non-Win32 clients always return the number of unicode characters written into the output buffer and always null terminate.
NWUnicodeToCollation is similar to the C strxfrm.
For sample code, see Section 3.3, Example: NWGetUnicodeToCollationHandle.