MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / CHARSET_ENTRY

Function CHARSET_ENTRY

src/intl/cs_ksc.cpp:29–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#include "cv_narrow.h"
28
29CHARSET_ENTRY(CS_ksc_5601)
30{
31 static const char space = 0x20;
32
33#include "../intl/charsets/cs_ksc5601.h"
34
35 csptr->charset_version = CHARSET_VERSION_1;
36 csptr->charset_name = "KSC_5601";
37 csptr->charset_flags |= CHARSET_ASCII_BASED;
38 csptr->charset_min_bytes_per_char = 1;
39 csptr->charset_max_bytes_per_char = 2;
40 csptr->charset_space_length = 1;
41 csptr->charset_space_character = (const BYTE*) &space;
42 csptr->charset_fn_well_formed = CVKSC_check_ksc;
43
44 CV_convert_init(&csptr->charset_to_unicode,
45 CVKSC_ksc_to_unicode,
46 to_unicode_mapping_array,
47 to_unicode_map);
48 CV_convert_init(&csptr->charset_from_unicode,
49 CVKSC_unicode_to_ksc,
50 from_unicode_mapping_array,
51 from_unicode_map);
52
53 CHARSET_RETURN;
54}

Callers

nothing calls this directly

Calls 1

CV_convert_initFunction · 0.85

Tested by

no test coverage detected