PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | lineptr |
Functions | |
unsigned char * | mbvalidate (unsigned char *pwcs, int encoding) |
int | pg_wcswidth (const char *pwcs, size_t len, int encoding) |
void | pg_wcsformat (const unsigned char *pwcs, size_t len, int encoding, struct lineptr *lines, int count) |
void | pg_wcssize (const unsigned char *pwcs, size_t len, int encoding, int *result_width, int *result_height, int *result_format_size) |
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().
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().