NWUnicodeToCollation(3nw)


NWUnicodeToCollation -- converts Unicode string to special collation Unicode string

Synopsis

   #include <unicode.h> 
   

int N_API NWUnicodeToCollation (void N_FAR * ruleHandle, unicode N_FAR * dest, size_t maxLen, unicode N_FAR * src, unicode noMap, size_t N_FAR * len);

Description

The parameters are as follows:

ruleHandle
(IN) Points to the rule table handle for unicode-to-collation conversion.

dest
(OUT) Points to the buffer for resulting Unicode collation string.

maxLen
(IN) Specifies the maximum number of Unicode characters in dest.

src
(IN) Points to the buffer with source Unicode.

noMap
(IN) Specifies no map character.

len
(OUT) Points to the number of characters copied into dest.

Return values

0x0000
Successful

0xFE10
UNI_HANDLE_BAD

0xFE0D
UNI_NO_DEFAULT

0xFE0E
UNI_RULES_CORRUPT

0xFE0F
UNI_HANDLE_MISMATCH

Notices

A non-zero noMap value prevents 0xFE10; noMap replaces characters for which there is no conversion rule.

NWUnicodeToCollation is similar to the C strxfrm.

Services

Unicode

NCP calls

None

References

NWGetCollationHandle(3nw), NWUnicodeCompare(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.