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

Function common_8bit_init

src/intl/cs_narrow.cpp:28–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include "cv_narrow.h"
27
28static 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
51CHARSET_ENTRY(CS_iso_ISO8859_1)

Callers 1

CHARSET_ENTRYFunction · 0.85

Calls 1

CV_convert_initFunction · 0.85

Tested by

no test coverage detected