NWLocalToUnicode(3nw)
NWLocalToUnicode --
converts a local (code page based) character string to a Unicode character string
Synopsis
#include <unicode.h>
int N_API NWLocalToUnicode
(void N_FAR
ruleHandle,
unicode N_FAR
dest,
size_t maxLen,
unsigned char N_FAR
src,
unicode noMap,
size_t N_FAR
len
unsigned long noMapFlag);
Description
The parameters are as follows:
- ruleHandle
-
(IN) Points to the rule table handle for local to Unicode conversion.
- dest
-
(OUT) Points to the buffer for storing resulting Unicode string.
- maxLen
-
(IN) Specifies the maximum number of Unicode characters in dest.
- src
-
(IN) Points to the source-local character string.
- 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) Specifies whether to use the map character; 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 prevents 0xFE10; noMap replaces characters for which there is no conversion rule.
Services
Unicode
NCP calls
None
References
NWGetLocalToUnicodeHandle(3nw),
NWUnicodeToLocal(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.