NWUnicodeToLocal(3nw)


NWUnicodeToLocal -- converts Unicode character string to local (code page based) character string

Synopsis

   #include <unicode.h> 
   

int N_API NWUnicodeToLocal (void N_FAR * ruleHandle, void N_FAR dest, size_t maxLen, unicode N_FAR * src, unsigned char noMap, size_t N_FAR * len unsigned long noMapFlag);

Description

The parameters are as follows:

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

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

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

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

noMap
(IN) Specifies no map character. noMapFlag determines whether this parameter is active.

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

noMapFlag
(IN) Pass USE_NOMAP_CHAR or DONT_USE_NOMAP_CHAR.

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 character value prevents 0xFE10; noMap replaces characters for which there is no conversion rule.

Services

Unicode

NCP calls

None

References

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