Header And Logo

PostgreSQL
| The world's most advanced open source database.

mbprint.h

Go to the documentation of this file.
00001 /* src/bin/psql/mbprint.h */
00002 #ifndef MBPRINT_H
00003 #define MBPRINT_H
00004 
00005 
00006 struct lineptr
00007 {
00008     unsigned char *ptr;
00009     int         width;
00010 };
00011 
00012 extern unsigned char *mbvalidate(unsigned char *pwcs, int encoding);
00013 extern int  pg_wcswidth(const char *pwcs, size_t len, int encoding);
00014 extern void pg_wcsformat(const unsigned char *pwcs, size_t len, int encoding, struct lineptr * lines, int count);
00015 extern void pg_wcssize(const unsigned char *pwcs, size_t len, int encoding,
00016            int *width, int *height, int *format_size);
00017 
00018 #endif   /* MBPRINT_H */