PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | PG_UTF8 pg_get_utf8_id() |
Typedefs | |
typedef unsigned int | pg_wchar |
Functions | |
static int | pg_get_utf8_id (void) |
static pg_wchar | utf8_to_unicode (const unsigned char *c) |
static int | utf_charcheck (const unsigned char *c) |
static void | mb_utf_validate (unsigned char *pwcs) |
int | pg_wcswidth (const char *pwcs, size_t len, int encoding) |
void | pg_wcssize (const unsigned char *pwcs, size_t len, int encoding, int *result_width, int *result_height, int *result_format_size) |
void | pg_wcsformat (const unsigned char *pwcs, size_t len, int encoding, struct lineptr *lines, int count) |
unsigned char * | mbvalidate (unsigned char *pwcs, int encoding) |
#define PG_UTF8 pg_get_utf8_id() |
|
static |
Definition at line 136 of file mbprint.c.
References i, len, and utf_charcheck().
Referenced by mbvalidate().
unsigned char* mbvalidate | ( | unsigned char * | pwcs, |
int | encoding | ||
) |
Definition at line 392 of file mbprint.c.
References encoding, mb_utf_validate(), and PG_UTF8.
Referenced by printTableAddCell(), and printTableAddHeader().
|
static |
void pg_wcsformat | ( | const unsigned char * | pwcs, |
size_t | len, | ||
int | encoding, | ||
struct lineptr * | lines, | ||
int | count | ||
) |
Definition at line 294 of file mbprint.c.
References encoding, exit(), i, len, PG_UTF8, PQdsplen(), PQmblen(), lineptr::ptr, sprintf, utf8_to_unicode(), and lineptr::width.
Referenced by print_aligned_text(), and print_aligned_vertical().
void pg_wcssize | ( | const unsigned char * | pwcs, |
size_t | len, | ||
int | encoding, | ||
int * | result_width, | ||
int * | result_height, | ||
int * | result_format_size | ||
) |
Definition at line 211 of file mbprint.c.
References encoding, len, PQdsplen(), and PQmblen().
Referenced by print_aligned_text(), and print_aligned_vertical().
int pg_wcswidth | ( | const char * | pwcs, |
size_t | len, | ||
int | encoding | ||
) |
Definition at line 177 of file mbprint.c.
References encoding, len, PQdsplen(), and PQmblen().
Referenced by describeOneTableDetails().
|
static |
Definition at line 53 of file mbprint.c.
Referenced by convert_case(), initcap_wbnext(), pg_saslprep(), pg_utf_dsplen(), pg_wcsformat(), read_char(), unicode_assigned(), unicode_is_normalized(), and unicode_normalize_func().
|
static |