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

Function CHARSET_ENTRY

src/intl/cs_unicode_ucs2.cpp:28–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include "cv_narrow.h"
27
28CHARSET_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}

Callers

nothing calls this directly

Calls 1

CV_convert_initFunction · 0.85

Tested by

no test coverage detected