32 #ifndef _QORE_INTERN_QORE_ENCODING_PRIVATE_H 33 #define _QORE_INTERN_QORE_ENCODING_PRIVATE_H 35 hashdecl qore_encoding_private {
37 unsigned char minwidth;
40 DLLLOCAL qore_encoding_private(
unsigned char n_minwidth = 1,
mbcs_get_unicode_t gu = 0,
bool ac =
true) : get_unicode(gu), minwidth(n_minwidth), ascii_compat(ac) {
43 DLLLOCAL
unsigned getMinCharWidth()
const {
47 DLLLOCAL
bool isAsciiCompat()
const {
51 DLLLOCAL
unsigned getUnicode(
const char* p)
const {
53 return get_unicode(p);
56 DLLLOCAL
static qore_encoding_private*
get(
QoreEncoding& enc) {
60 DLLLOCAL
static const qore_encoding_private*
get(
const QoreEncoding& enc) {
defines string encoding functions in Qore
Definition: QoreEncoding.h:83
unsigned(* mbcs_get_unicode_t)(const char *p)
returns the unicode code point for the given character, assumes there is enough data for the characte...
Definition: QoreEncoding.h:66