Unmark gen_random_uuid() function leakproof.
[pgsql.git] / src / include / fe_utils / mbprint.h
blobd7f42f893d9f3f8c33c742815a4026aeef32b4f5
1 /*-------------------------------------------------------------------------
3 * Multibyte character printing support for frontend code
6 * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * src/include/fe_utils/mbprint.h
11 *-------------------------------------------------------------------------
13 #ifndef MBPRINT_H
14 #define MBPRINT_H
16 struct lineptr
18 unsigned char *ptr;
19 int width;
22 extern unsigned char *mbvalidate(unsigned char *pwcs, int encoding);
23 extern int pg_wcswidth(const char *pwcs, size_t len, int encoding);
24 extern void pg_wcsformat(const unsigned char *pwcs, size_t len, int encoding,
25 struct lineptr *lines, int count);
26 extern void pg_wcssize(const unsigned char *pwcs, size_t len, int encoding,
27 int *result_width, int *result_height,
28 int *result_format_size);
30 #endif /* MBPRINT_H */