cqlstring.c File Reference

Implements query stream reader that reads from a C string. More...

#include <yaz/cql.h>

Go to the source code of this file.

Data Structures

struct  cql_buf_info

Functions

static int getbuf (void *vp)
static void ungetbuf (int b, void *vp)
int cql_parser_string (CQL_parser cp, const char *str)
 parses a CQL query (string)

Detailed Description

Implements query stream reader that reads from a C string.

Definition in file cqlstring.c.


Function Documentation

int cql_parser_string ( CQL_parser  cp,
const char *  str 
)

parses a CQL query (string)

Parameters:
cp CQL parser
str CQL string
Return values:
0 success
!=0 failure

Definition at line 33 of file cqlstring.c.

References cql_parser_stream(), getbuf(), cql_buf_info::off, cql_buf_info::str, and ungetbuf().

Referenced by cql2pqf().

static int getbuf ( void *  vp  )  [static]

Definition at line 18 of file cqlstring.c.

References cql_buf_info::off, and cql_buf_info::str.

Referenced by cql_parser_string().

static void ungetbuf ( int  b,
void *  vp 
) [static]

Definition at line 26 of file cqlstring.c.

References cql_buf_info::off.

Referenced by cql_parser_string().

Generated on Tue Aug 17 13:13:19 2010 for YAZ by  doxygen 1.6.3