| 26 | #include "cv_narrow.h" |
| 27 | |
| 28 | CHARSET_ENTRY(CS_unicode_ucs2) |
| 29 | { |
| 30 | static const USHORT space = 0x0020; |
| 31 | |
| 32 | csptr->charset_version = CHARSET_VERSION_1; |
| 33 | csptr->charset_name = "UNICODE"; |
| 34 | csptr->charset_flags |= CHARSET_ASCII_BASED; |
| 35 | csptr->charset_min_bytes_per_char = 2; |
| 36 | csptr->charset_max_bytes_per_char = 2; |
| 37 | csptr->charset_space_length = sizeof(space); |
| 38 | csptr->charset_space_character = (const BYTE*) &space; // 0x0020 |
| 39 | csptr->charset_fn_well_formed = NULL; |
| 40 | CV_convert_init(&csptr->charset_to_unicode, |
| 41 | CV_wc_copy, |
| 42 | NULL, NULL); |
| 43 | CV_convert_init(&csptr->charset_from_unicode, |
| 44 | CV_wc_copy, |
| 45 | NULL, NULL); |
| 46 | CHARSET_RETURN; |
| 47 | } |
nothing calls this directly
no test coverage detected