2000-01-19 00:30:24 +01:00
|
|
|
/*
|
|
|
|
* psql - the PostgreSQL interactive terminal
|
|
|
|
*
|
2000-01-29 17:58:54 +01:00
|
|
|
* Copyright 2000 by PostgreSQL Global Development Group
|
2000-01-19 00:30:24 +01:00
|
|
|
*
|
2001-10-28 07:26:15 +01:00
|
|
|
* $Header: /cvsroot/pgsql/src/bin/psql/stringutils.h,v 1.16 2001/10/28 06:25:58 momjian Exp $
|
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,
|
|
|
|
const char *delim,
|
|
|
|
const char *quote,
|
2000-02-08 00:10:11 +01:00
|
|
|
int escape,
|
1999-11-05 00:14:30 +01:00
|
|
|
char *was_quoted,
|
2000-01-15 06:38:50 +01:00
|
|
|
unsigned int *token_pos,
|
|
|
|
int encoding);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* STRINGUTILS_H */
|