#include <sent/stddefs.h>
#include <windows.h>
#include <winnls.h>
#include <jlib.h>
Include dependency graph for charconv_win32.c:

Go to the source code of this file.
Defines | |
| #define | UNICODE_BUFFER_SIZE 4096 |
| Buffer length to use for unicode conversion. | |
Functions | |
| boolean | charconv_win32_setup (char *fromcode, char *tocode, boolean *enable_conv) |
| char * | charconv_win32 (char *instr, char *outstr, int maxoutlen) |
Variables | |
| static boolean | euctosjis = FALSE |
| TRUE if use libjcode for euc->sjis conv. | |
| static boolean | only_euc_conv = FALSE |
| Perform only euc->sjis. | |
| static unsigned int | from_cp |
| Source codepage. | |
| static unsigned int | to_cp |
| Target codepage. | |
| static wchar_t | unibuf [UNICODE_BUFFER_SIZE] |
| Local work area for unicode conversion. | |
Conversion from Japanese-euc ("euc-jp") is optionally supported by the libjcode library.
Definition in file charconv_win32.c.
Setup charset conversion for win32.
| fromcode | [in] input charset code name or codepage number string, NULL invalid | |
| tocode | [in] output charset code name or codepage number string, or NULL when disable conversion | |
| enable_conv | [out] store whether conversion should be enabled or not |
Definition at line 67 of file charconv_win32.c.
Referenced by j_printf_set_charconv().
| char* charconv_win32 | ( | char * | instr, | |
| char * | outstr, | |||
| int | maxoutlen | |||
| ) |
Apply charset conversion to a string using win32 functions
| instr | [in] source string | |
| outstr | [in] destination buffer | |
| maxoutlen | [in] allocated length of outstr in byte. |
Definition at line 203 of file charconv_win32.c.
Referenced by charconv().
1.5.0