📄 cqlstring.c
字号:
/* $Id: cqlstring.c,v 1.2 2003/02/14 18:49:23 adam Exp $ Copyright (C) 2002-2003 Index Data ApsThis file is part of the YAZ toolkit.See the file LICENSE for details.*/#include <yaz/cql.h>struct cql_buf_info { const char *str; int off;};int getbuf(void *vp){ struct cql_buf_info *bi = (struct cql_buf_info *) vp; if (bi->str[bi->off] == 0) return 0; return bi->str[bi->off++];}void ungetbuf(int b, void *vp){ struct cql_buf_info *bi = (struct cql_buf_info *) vp; if (b) (bi->off--);}int cql_parser_string(CQL_parser cp, const char *str){ struct cql_buf_info b; b.str = str; b.off = 0; return cql_parser_stream(cp, getbuf, ungetbuf, &b);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -