| 27 | #include "cv_narrow.h" |
| 28 | |
| 29 | CHARSET_ENTRY(CS_jis_0208_1990) |
| 30 | { |
| 31 | static const USHORT space = 0x0020; |
| 32 | |
| 33 | #include "../intl/charsets/cs_jis_0208_1990.h" |
| 34 | |
| 35 | csptr->charset_version = CHARSET_VERSION_1; |
| 36 | csptr->charset_name = "JIS_0208_1990"; |
| 37 | csptr->charset_flags |= CHARSET_ASCII_BASED; |
| 38 | csptr->charset_min_bytes_per_char = 2; |
| 39 | csptr->charset_max_bytes_per_char = 2; |
| 40 | csptr->charset_space_length = 2; |
| 41 | csptr->charset_space_character = (const BYTE*) &space; // 0x20 |
| 42 | csptr->charset_fn_well_formed = NULL; |
| 43 | |
| 44 | CV_convert_init(&csptr->charset_to_unicode, |
| 45 | CV_wc_to_wc, |
| 46 | to_unicode_mapping_array, to_unicode_map); |
| 47 | CV_convert_init(&csptr->charset_from_unicode, |
| 48 | CV_wc_to_wc, |
| 49 | from_unicode_mapping_array, |
| 50 | from_unicode_map); |
| 51 | CHARSET_RETURN; |
| 52 | } |
| 53 | |
| 54 | |
| 55 | CHARSET_ENTRY(CS_sjis) |
nothing calls this directly
no test coverage detected