ReactOS 0.4.16-dev-401-g45b008d
|
#include <windows.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
Go to the source code of this file.
Classes | |
struct | compat_t |
struct | csconv_t |
struct | rec_iconv_t |
struct | iso2022_esc_t |
Macros | |
#define | WINVER 0x0500 |
#define | STRICT |
#define | UNUSED |
#define | GetProcAddressA GetProcAddress |
#define | DEFAULT_LIBICONV_DLL "" |
#define | MB_CHAR_MAX 16 |
#define | UNICODE_MODE_BOM_DONE 1 |
#define | UNICODE_MODE_SWAPPED 2 |
#define | FLAG_USE_BOM 1 |
#define | FLAG_TRANSLIT 2 /* //TRANSLIT */ |
#define | FLAG_IGNORE 4 /* //IGNORE */ |
#define | COMPAT_IN 1 |
#define | COMPAT_OUT 2 |
#define | ISO2022_MODE(cs, shift) (((cs) << 8) | (shift)) |
#define | ISO2022_MODE_CS(mode) (((mode) >> 8) & 0xFF) |
#define | ISO2022_MODE_SHIFT(mode) ((mode) & 0xFF) |
#define | ISO2022_SI 0 |
#define | ISO2022_SO 1 |
#define | ISO2022JP_CS_ASCII 0 |
#define | ISO2022JP_CS_JISX0201_ROMAN 1 |
#define | ISO2022JP_CS_JISX0201_KANA 2 |
#define | ISO2022JP_CS_JISX0208_1978 3 |
#define | ISO2022JP_CS_JISX0208_1983 4 |
#define | ISO2022JP_CS_JISX0212 5 |
Typedefs | |
typedef unsigned char | uchar |
typedef unsigned short | ushort |
typedef unsigned int | uint |
typedef void * | iconv_t |
typedef struct compat_t | compat_t |
typedef struct csconv_t | csconv_t |
typedef struct rec_iconv_t | rec_iconv_t |
typedef iconv_t(* | f_iconv_open) (const char *tocode, const char *fromcode) |
typedef int(* | f_iconv_close) (iconv_t cd) |
typedef size_t(* | f_iconv) (iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) |
typedef int *(* | f_errno) (void) |
typedef int(* | f_mbtowc) (csconv_t *cv, const uchar *buf, int bufsize, ushort *wbuf, int *wbufsize) |
typedef int(* | f_wctomb) (csconv_t *cv, ushort *wbuf, int wbufsize, uchar *buf, int bufsize) |
typedef int(* | f_mblen) (csconv_t *cv, const uchar *buf, int bufsize) |
typedef int(* | f_flush) (csconv_t *cv, uchar *buf, int bufsize) |
typedef HRESULT(WINAPI * | CONVERTINETSTRING) (LPDWORD lpdwMode, DWORD dwSrcEncoding, DWORD dwDstEncoding, LPCSTR lpSrcStr, LPINT lpnSrcSize, LPBYTE lpDstStr, LPINT lpnDstSize) |
typedef HRESULT(WINAPI * | CONVERTINETMULTIBYTETOUNICODE) (LPDWORD lpdwMode, DWORD dwSrcEncoding, LPCSTR lpSrcStr, LPINT lpnMultiCharCount, LPWSTR lpDstStr, LPINT lpnWideCharCount) |
typedef HRESULT(WINAPI * | CONVERTINETUNICODETOMULTIBYTE) (LPDWORD lpdwMode, DWORD dwEncoding, LPCWSTR lpSrcStr, LPINT lpnWideCharCount, LPSTR lpDstStr, LPINT lpnMultiCharCount) |
typedef HRESULT(WINAPI * | ISCONVERTINETSTRINGAVAILABLE) (DWORD dwSrcEncoding, DWORD dwDstEncoding) |
typedef HRESULT(WINAPI * | LCIDTORFC1766A) (LCID Locale, LPSTR pszRfc1766, int nChar) |
typedef HRESULT(WINAPI * | LCIDTORFC1766W) (LCID Locale, LPWSTR pszRfc1766, int nChar) |
typedef HRESULT(WINAPI * | RFC1766TOLCIDA) (LCID *pLocale, LPSTR pszRfc1766) |
typedef HRESULT(WINAPI * | RFC1766TOLCIDW) (LCID *pLocale, LPWSTR pszRfc1766) |
typedef struct iso2022_esc_t | iso2022_esc_t |
Variables | |
struct { | |
int codepage | |
const char * name | |
} | codepage_alias [] |
static compat_t | cp932_compat [] |
static compat_t | cp20932_compat [] |
static compat_t * | cp51932_compat = cp932_compat |
static compat_t * | cp5022x_compat = cp932_compat |
static CONVERTINETSTRING | ConvertINetString |
static CONVERTINETMULTIBYTETOUNICODE | ConvertINetMultiByteToUnicode |
static CONVERTINETUNICODETOMULTIBYTE | ConvertINetUnicodeToMultiByte |
static ISCONVERTINETSTRINGAVAILABLE | IsConvertINetStringAvailable |
static LCIDTORFC1766A | LcidToRfc1766A |
static RFC1766TOLCIDA | Rfc1766ToLcidA |
static const char | iso2022_SI_seq [] = "\x0F" |
static const char | iso2022_SO_seq [] = "\x0E" |
static iso2022_esc_t | iso2022jp_esc [] |
#define COMPAT_IN 1 |
Definition at line 81 of file win_iconv.c.
#define COMPAT_OUT 2 |
Definition at line 82 of file win_iconv.c.
#define DEFAULT_LIBICONV_DLL "" |
Definition at line 36 of file win_iconv.c.
Definition at line 46 of file win_iconv.c.
#define FLAG_TRANSLIT 2 /* //TRANSLIT */ |
Definition at line 45 of file win_iconv.c.
#define FLAG_USE_BOM 1 |
Definition at line 44 of file win_iconv.c.
#define GetProcAddressA GetProcAddress |
Definition at line 26 of file win_iconv.c.
Definition at line 1662 of file win_iconv.c.
Definition at line 1663 of file win_iconv.c.
Definition at line 1664 of file win_iconv.c.
#define ISO2022_SI 0 |
Definition at line 1666 of file win_iconv.c.
#define ISO2022_SO 1 |
Definition at line 1667 of file win_iconv.c.
#define ISO2022JP_CS_ASCII 0 |
Definition at line 1682 of file win_iconv.c.
#define ISO2022JP_CS_JISX0201_KANA 2 |
Definition at line 1684 of file win_iconv.c.
#define ISO2022JP_CS_JISX0201_ROMAN 1 |
Definition at line 1683 of file win_iconv.c.
#define ISO2022JP_CS_JISX0208_1978 3 |
Definition at line 1685 of file win_iconv.c.
#define ISO2022JP_CS_JISX0208_1983 4 |
Definition at line 1686 of file win_iconv.c.
#define ISO2022JP_CS_JISX0212 5 |
Definition at line 1687 of file win_iconv.c.
#define MB_CHAR_MAX 16 |
Definition at line 39 of file win_iconv.c.
#define STRICT |
Definition at line 12 of file win_iconv.c.
#define UNICODE_MODE_BOM_DONE 1 |
Definition at line 41 of file win_iconv.c.
#define UNICODE_MODE_SWAPPED 2 |
Definition at line 42 of file win_iconv.c.
#define UNUSED |
Definition at line 21 of file win_iconv.c.
#define WINVER 0x0500 |
Definition at line 9 of file win_iconv.c.
Definition at line 68 of file win_iconv.c.
typedef HRESULT(WINAPI * CONVERTINETMULTIBYTETOUNICODE) (LPDWORD lpdwMode, DWORD dwSrcEncoding, LPCSTR lpSrcStr, LPINT lpnMultiCharCount, LPWSTR lpDstStr, LPINT lpnWideCharCount) |
Definition at line 666 of file win_iconv.c.
typedef HRESULT(WINAPI * CONVERTINETSTRING) (LPDWORD lpdwMode, DWORD dwSrcEncoding, DWORD dwDstEncoding, LPCSTR lpSrcStr, LPINT lpnSrcSize, LPBYTE lpDstStr, LPINT lpnDstSize) |
Definition at line 657 of file win_iconv.c.
typedef HRESULT(WINAPI * CONVERTINETUNICODETOMULTIBYTE) (LPDWORD lpdwMode, DWORD dwEncoding, LPCWSTR lpSrcStr, LPINT lpnWideCharCount, LPSTR lpDstStr, LPINT lpnMultiCharCount) |
Definition at line 674 of file win_iconv.c.
Definition at line 69 of file win_iconv.c.
Definition at line 75 of file win_iconv.c.
Definition at line 79 of file win_iconv.c.
typedef size_t(* f_iconv) (iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) |
Definition at line 74 of file win_iconv.c.
Definition at line 73 of file win_iconv.c.
Definition at line 72 of file win_iconv.c.
Definition at line 78 of file win_iconv.c.
Definition at line 76 of file win_iconv.c.
Definition at line 77 of file win_iconv.c.
Definition at line 52 of file win_iconv.c.
Definition at line 682 of file win_iconv.c.
typedef struct iso2022_esc_t iso2022_esc_t |
Definition at line 1674 of file win_iconv.c.
Definition at line 686 of file win_iconv.c.
Definition at line 691 of file win_iconv.c.
typedef struct rec_iconv_t rec_iconv_t |
Definition at line 70 of file win_iconv.c.
Definition at line 696 of file win_iconv.c.
Definition at line 700 of file win_iconv.c.
Definition at line 48 of file win_iconv.c.
Definition at line 50 of file win_iconv.c.
Definition at line 49 of file win_iconv.c.
Definition at line 1338 of file win_iconv.c.
Referenced by make_csconv().
size_t iconv | ( | iconv_t | cd, |
const char ** | inbuf, | ||
size_t * | inbytesleft, | ||
char ** | outbuf, | ||
size_t * | outbytesleft | ||
) |
Definition at line 771 of file win_iconv.c.
Referenced by conv_charset(), convert_to_unicode(), joliet_strlen(), rdp_in_unistr(), rdp_out_unistr(), test(), ui_clip_handle_data(), and xclip_send_data_with_convert().
Definition at line 756 of file win_iconv.c.
Referenced by check_enc(), rdp_in_unistr(), rdp_out_unistr(), sic_close(), ui_clip_handle_data(), xclip_send_data_with_convert(), xmlCharEncCloseFunc(), and xmlFindCharEncodingHandler().
Definition at line 730 of file win_iconv.c.
Referenced by check_enc(), rdp_in_unistr(), rdp_out_unistr(), test(), ui_clip_handle_data(), xclip_send_data_with_convert(), and xmlFindCharEncodingHandler().
Definition at line 1900 of file win_iconv.c.
Referenced by make_csconv().
|
static |
Definition at line 1700 of file win_iconv.c.
Referenced by make_csconv().
|
static |
Definition at line 1804 of file win_iconv.c.
Referenced by make_csconv().
|
static |
Definition at line 1371 of file win_iconv.c.
Referenced by make_csconv().
|
static |
Definition at line 1386 of file win_iconv.c.
Referenced by make_csconv().
Definition at line 712 of file win_iconv.c.
Referenced by make_csconv().
Definition at line 920 of file win_iconv.c.
Referenced by win_iconv_open().
Definition at line 1297 of file win_iconv.c.
Referenced by make_csconv().
|
static |
Definition at line 1427 of file win_iconv.c.
Referenced by make_csconv().
|
static |
Definition at line 1445 of file win_iconv.c.
Referenced by make_csconv().
Definition at line 1102 of file win_iconv.c.
Referenced by kernel_wctomb().
Definition at line 1021 of file win_iconv.c.
Referenced by make_csconv().
Definition at line 1282 of file win_iconv.c.
Referenced by make_csconv().
Definition at line 1139 of file win_iconv.c.
Referenced by dbcs_mblen(), eucjp_mblen(), iso2022jp_flush(), iso2022jp_mbtowc(), iso2022jp_wctomb(), kernel_mbtowc(), kernel_wctomb(), mbcs_mblen(), mlang_mbtowc(), mlang_wctomb(), utf16_mbtowc(), utf16_wctomb(), utf32_mbtowc(), utf32_wctomb(), and utf8_mblen().
Definition at line 1114 of file win_iconv.c.
Referenced by make_csconv().
Definition at line 1056 of file win_iconv.c.
Referenced by utf32_mbtowc(), and win_iconv().
|
static |
Definition at line 1465 of file win_iconv.c.
Referenced by make_csconv().
Definition at line 1047 of file win_iconv.c.
Referenced by utf32_wctomb(), and win_iconv().
|
static |
Definition at line 1516 of file win_iconv.c.
Referenced by make_csconv(), and utf16_wctomb().
|
static |
Definition at line 1568 of file win_iconv.c.
Referenced by make_csconv().
|
static |
Definition at line 1607 of file win_iconv.c.
Referenced by make_csconv(), and utf32_wctomb().
Definition at line 1319 of file win_iconv.c.
Referenced by make_csconv().
|
static |
Definition at line 798 of file win_iconv.c.
Referenced by win_iconv_open().
Definition at line 780 of file win_iconv.c.
Referenced by iconv_open().
int codepage |
Definition at line 156 of file win_iconv.c.
Referenced by __crtLCMapStringA(), __crtLCMapStringW(), allocate_resource_data(), CharNextExA(), CharPrevExA(), check_enc(), cmp_codepage(), copy_name_table_string(), CreateItem(), CreateXmlWriterOutputWithEncodingCodePage(), DdeCreateStringHandleA(), DdeCreateStringHandleW(), export_forcecodepage(), ExtractFilesFromZip(), FNFDINOTIFY(), fnIMLangFontLink2_CodePagesToCodePage(), fnIMLangFontLink2_CodePageToCodePages(), fnIMLangFontLink_CodePagesToCodePage(), fnIMLangFontLink_CodePageToCodePages(), get_codepage_table(), get_encoding_from_codepage(), GetCPInfo(), GetCPInfoExA(), GetCPInfoExW(), GetLocaleInfoA(), IEParseDisplayNameWithBCW(), init_stringtable(), InternetSetOptionW(), IsDBCSLeadByteEx(), IsValidCodePage(), match_languages(), mbtowc_flags(), ME_EndToUnicode(), ME_HandleMessage(), ME_SetText(), ME_ToUnicode(), MSI_DatabaseExport(), msi_load_string_table(), msi_save_string_table(), msi_set_string_table_codepage(), MSVCRT_locale_to_LCID(), must_use_null_useddefaultchar(), parse_file(), PropertyStorage_ReadProperty(), request_get_codepage(), SetLocaleInfoA(), SHPropStgWriteMultiple(), START_TEST(), test_DdeCreateStringHandleW(), test_fgetwc_locale(), test_GdiGetCodePage(), test_SHPropStg_functions(), test_undefined_byte_char(), utf16_mbtowc(), utf32_mbtowc(), validate_codepage(), WDML_CreateString(), WDML_QueryString(), wine_cp_get_table(), and winhttp_request_get_ResponseText().
struct { ... } codepage_alias[] |
Referenced by name_to_codepage().
|
static |
Definition at line 705 of file win_iconv.c.
Referenced by ConvertINetString(), fnIMultiLanguage3_ConvertStringToUnicode(), fnIMultiLanguage3_ConvertStringToUnicodeEx(), iso2022jp_mbtowc(), load_mlang(), mlang_mbtowc(), and MLangConvertCharset_DoConversionToUnicode().
|
static |
Definition at line 704 of file win_iconv.c.
Referenced by fnIMultiLanguage3_ConvertString(), fnIMultiLanguage3_ConvertStringInIStream(), and load_mlang().
|
static |
Definition at line 706 of file win_iconv.c.
Referenced by ConvertINetString(), fnIMultiLanguage3_ConvertStringFromUnicode(), fnIMultiLanguage3_ConvertStringFromUnicodeEx(), iso2022jp_wctomb(), load_mlang(), mlang_wctomb(), MLangConvertCharset_DoConversionFromUnicode(), and SHUnicodeToAnsiCP().
|
static |
Definition at line 639 of file win_iconv.c.
Referenced by make_csconv().
|
static |
Definition at line 655 of file win_iconv.c.
Referenced by make_csconv().
|
static |
Definition at line 652 of file win_iconv.c.
Referenced by make_csconv().
|
static |
Definition at line 626 of file win_iconv.c.
Referenced by make_csconv().
|
static |
Definition at line 707 of file win_iconv.c.
Referenced by fnIMultiLanguage3_IsConvertible(), and load_mlang().
Definition at line 1670 of file win_iconv.c.
Referenced by iso2022jp_flush(), iso2022jp_mbtowc(), and iso2022jp_wctomb().
Definition at line 1672 of file win_iconv.c.
Referenced by iso2022jp_mbtowc(), and iso2022jp_wctomb().
|
static |
Definition at line 1689 of file win_iconv.c.
Referenced by iso2022jp_flush(), iso2022jp_mbtowc(), and iso2022jp_wctomb().
|
static |
Definition at line 708 of file win_iconv.c.
Referenced by load_mlang(), and test_GetAcceptLanguagesA().
Definition at line 157 of file win_iconv.c.
Referenced by make_csconv().
|
static |
Definition at line 709 of file win_iconv.c.
Referenced by load_mlang().