YAZ  5.34.0
Data Structures | Functions
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) More...
 

Detailed Description

Implements query stream reader that reads from a C string.

Definition in file cqlstring.c.

Function Documentation

◆ cql_parser_string()

int cql_parser_string ( CQL_parser  cp,
const char *  str 
)

parses a CQL query (string)

Parameters
cpCQL parser
strCQL string
Return values
0success
!=0failure

Definition at line 35 of file cqlstring.c.

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

Referenced by cql2pqf().

◆ getbuf()

static int getbuf ( void *  vp)
static

Definition at line 20 of file cqlstring.c.

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

Referenced by cql_parser_string().

◆ ungetbuf()

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

Definition at line 28 of file cqlstring.c.

References cql_buf_info::off.

Referenced by cql_parser_string().