/
githubmirror
/
postgres
Обзор
Документация
Войти
/
githubmirror
/
postgres
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/bin/psql/stringutils.h
30 строк
766 B
Tom Lane
Pre-beta mechanical code beautification, step 1: run pgindent.
13 май 2026, 17:34
13 май 2026, 17:34
020794e
Код
Авторство
О чём код?
/* * psql - the PostgreSQL interactive terminal * * Copyright (c) 2000-2026, PostgreSQL Global Development Group * * src/bin/psql/stringutils.h */ #ifndef STRINGUTILS_H #define STRINGUTILS_H /* * The cooler version of strtok() which knows about quotes and doesn't * overwrite your input */ extern char *strtokx(const char *s, const char *whitespace, const char *delim, const char *quote, char escape, bool e_strings, bool del_quotes, int encoding); extern void strip_quotes(char *source, char quote, char escape, int encoding); extern char *quote_if_needed(const char *source, const char *entails_quote, char quote, char escape, bool force_quote, int encoding); #endif /* STRINGUTILS_H */