File: stringutil.h

package info (click to toggle)
pgq 3.2.6-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 836 kB
  • sloc: sql: 3,412; ansic: 1,990; python: 302; makefile: 89; sh: 2
file content (12 lines) | stat: -rw-r--r-- 324 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12

enum PgqEncode {
	TBUF_QUOTE_IDENT,
	TBUF_QUOTE_LITERAL,
	TBUF_QUOTE_URLENC,
	TBUF_QUOTE_JSON,
};

StringInfo pgq_init_varbuf(void);
Datum pgq_finish_varbuf(StringInfo buf);
bool pgq_strlist_contains(const char *liststr, const char *str);
void pgq_encode_cstring(StringInfo tbuf, const char *str, enum PgqEncode encoding);