| 26 | #include "cv_narrow.h" |
| 27 | |
| 28 | static void common_8bit_init(charset* csptr, |
| 29 | const ASCII* name, |
| 30 | const USHORT* to_unicode_tbl, |
| 31 | const UCHAR* from_unicode_tbl1, |
| 32 | const USHORT* from_unicode_tbl2) |
| 33 | { |
| 34 | csptr->charset_version = CHARSET_VERSION_1; |
| 35 | csptr->charset_name = name; |
| 36 | csptr->charset_flags |= CHARSET_ASCII_BASED; |
| 37 | csptr->charset_min_bytes_per_char = 1; |
| 38 | csptr->charset_max_bytes_per_char = 1; |
| 39 | csptr->charset_space_length = 1; |
| 40 | csptr->charset_space_character = (const BYTE*) " "; |
| 41 | csptr->charset_fn_well_formed = NULL; |
| 42 | CV_convert_init(&csptr->charset_to_unicode, |
| 43 | CV_nc_to_unicode, |
| 44 | to_unicode_tbl, NULL); |
| 45 | CV_convert_init(&csptr->charset_from_unicode, |
| 46 | CV_unicode_to_nc, |
| 47 | from_unicode_tbl1, from_unicode_tbl2); |
| 48 | } |
| 49 | |
| 50 | |
| 51 | CHARSET_ENTRY(CS_iso_ISO8859_1) |
no test coverage detected