2000-01-19 00:30:24 +01:00
|
|
|
/*
|
|
|
|
* psql - the PostgreSQL interactive terminal
|
|
|
|
*
|
2010-01-02 17:58:17 +01:00
|
|
|
* Copyright (c) 2000-2010, PostgreSQL Global Development Group
|
2000-01-19 00:30:24 +01:00
|
|
|
*
|
2010-09-20 22:08:53 +02:00
|
|
|
* src/bin/psql/stringutils.h
|
2000-01-19 00:30:24 +01:00
|
|
|
*/
|
1996-07-09 08:22:35 +02:00
|
|
|
#ifndef STRINGUTILS_H
|
|
|
|
#define STRINGUTILS_H
|
|
|
|
|
1999-11-04 22:56:02 +01:00
|
|
|
/* The cooler version of strtok() which knows about quotes and doesn't
|
|
|
|
* overwrite your input */
|
1999-11-05 00:14:30 +01:00
|
|
|
extern char *strtokx(const char *s,
|
2002-10-19 02:22:14 +02:00
|
|
|
const char *whitespace,
|
1999-11-05 00:14:30 +01:00
|
|
|
const char *delim,
|
|
|
|
const char *quote,
|
2002-10-19 02:22:14 +02:00
|
|
|
char escape,
|
2006-06-01 03:28:00 +02:00
|
|
|
bool e_strings,
|
2002-10-19 02:22:14 +02:00
|
|
|
bool del_quotes,
|
2000-01-15 06:38:50 +01:00
|
|
|
int encoding);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* STRINGUTILS_H */
|