| 27 | #include "../intl/cv_narrow.h" |
| 28 | |
| 29 | CHARSET_ENTRY(CS_big_5) |
| 30 | { |
| 31 | #include "../intl/charsets/cs_big5.h" |
| 32 | static const ASCII POSIX[] = "BIG_5"; |
| 33 | |
| 34 | csptr->charset_version = CHARSET_VERSION_1; |
| 35 | csptr->charset_name = POSIX; |
| 36 | csptr->charset_flags |= CHARSET_ASCII_BASED; |
| 37 | csptr->charset_min_bytes_per_char = 1; |
| 38 | csptr->charset_max_bytes_per_char = 2; |
| 39 | csptr->charset_space_length = 1; |
| 40 | csptr->charset_space_character = (const BYTE*) " "; |
| 41 | csptr->charset_fn_well_formed = CVBIG5_check_big5; |
| 42 | |
| 43 | CV_convert_init(&csptr->charset_to_unicode, |
| 44 | CVBIG5_big5_to_unicode, |
| 45 | to_unicode_mapping_array, |
| 46 | to_unicode_map); |
| 47 | CV_convert_init(&csptr->charset_from_unicode, |
| 48 | CVBIG5_unicode_to_big5, |
| 49 | from_unicode_mapping_array, |
| 50 | from_unicode_map); |
| 51 | |
| 52 | CHARSET_RETURN; |
| 53 | } |
nothing calls this directly
no test coverage detected