Home --> Documentations --> PJLIB-UTIL Reference
Go to the documentation of this file.
19#ifndef __PJ_SCANNER_H__
20#define __PJ_SCANNER_H__
40#if defined(PJ_SCANNER_USE_BITWISE) && PJ_SCANNER_USE_BITWISE != 0
41# include <pjlib-util/scanner_cis_bitwise.h>
43# include <pjlib-util/scanner_cis_uint.h>
152 return PJ_CIS_ISSET(cis, c);
348 int begin_quote, int end_quote,
369 const char *begin_quotes,
370 const char *end_quotes, int qsize,
428 const char *until_spec, pj_str_t *out);
void pj_scan_get_unescape(pj_scanner *scanner, const pj_cis_t *spec, pj_str_t *out)
void pj_scan_save_state(const pj_scanner *scanner, pj_scan_state *state)
void pj_scan_init(pj_scanner *scanner, char *bufstart, pj_size_t buflen, unsigned options, pj_syn_err_func_ptr callback)
void(* pj_syn_err_func_ptr)(struct pj_scanner *scanner) Definition: scanner.h:187
void pj_scan_get_n(pj_scanner *scanner, unsigned N, pj_str_t *out)
void pj_scan_get_quote(pj_scanner *scanner, int begin_quote, int end_quote, pj_str_t *out)
int pj_scan_strcmp(pj_scanner *scanner, const char *s, int len)
int pj_scan_get_char(pj_scanner *scanner)
void pj_scan_skip_line(pj_scanner *scanner)
void pj_cis_add_num(pj_cis_t *cis)
int pj_scan_is_eof(const pj_scanner *scanner) Definition: scanner.h:252
void pj_scan_advance_n(pj_scanner *scanner, unsigned N, pj_bool_t skip)
pj_status_t pj_cis_init(pj_cis_buf_t *cs_buf, pj_cis_t *cis)
void pj_scan_get_until_chr(pj_scanner *scanner, const char *until_spec, pj_str_t *out)
void pj_cis_invert(pj_cis_t *cis)
void pj_cis_add_alpha(pj_cis_t *cis)
void pj_cis_add_str(pj_cis_t *cis, const char *str)
void pj_cis_buf_init(pj_cis_buf_t *cs_buf)
int pj_scan_stricmp_alnum(pj_scanner *scanner, const char *s, int len)
void pj_scan_get_until(pj_scanner *scanner, const pj_cis_t *spec, pj_str_t *out)
int pj_cis_match(const pj_cis_t *cis, pj_uint8_t c) Definition: scanner.h:150
pj_status_t pj_cis_dup(pj_cis_t *new_cis, pj_cis_t *existing)
int pj_scan_get_col(const pj_scanner *scanner) Definition: scanner.h:540
void pj_scan_restore_state(pj_scanner *scanner, pj_scan_state *state)
void pj_scan_get_until_ch(pj_scanner *scanner, int until_char, pj_str_t *out)
void pj_cis_del_str(pj_cis_t *cis, const char *str)
void pj_scan_get_quotes(pj_scanner *scanner, const char *begin_quotes, const char *end_quotes, int qsize, pj_str_t *out)
void pj_cis_add_range(pj_cis_t *cis, int cstart, int cend)
void pj_scan_get(pj_scanner *scanner, const pj_cis_t *spec, pj_str_t *out)
int pj_scan_peek_n(pj_scanner *scanner, pj_size_t len, pj_str_t *out)
int pj_scan_stricmp(pj_scanner *scanner, const char *s, int len)
void pj_scan_skip_whitespace(pj_scanner *scanner)
void pj_cis_del_range(pj_cis_t *cis, int cstart, int cend)
void pj_scan_get_newline(pj_scanner *scanner)
int pj_scan_peek(pj_scanner *scanner, const pj_cis_t *spec, pj_str_t *out)
void pj_scan_fini(pj_scanner *scanner)
int pj_scan_peek_until(pj_scanner *scanner, const pj_cis_t *spec, pj_str_t *out)
void pj_cis_add_cis(pj_cis_t *cis, const pj_cis_t *rhs)
@ PJ_SCAN_AUTOSKIP_WS_HEADER Definition: scanner.h:169
@ PJ_SCAN_AUTOSKIP_NEWLINE Definition: scanner.h:173
@ PJ_SCAN_AUTOSKIP_WS Definition: scanner.h:164
Definition: scanner_cis_bitwise.h:50
Definition: scanner_cis_bitwise.h:59
Definition: scanner.h:210
int line Definition: scanner.h:212
char * curptr Definition: scanner.h:211
char * start_line Definition: scanner.h:213
Definition: scanner.h:194
pj_syn_err_func_ptr callback Definition: scanner.h:201
char * end Definition: scanner.h:196
int skip_ws Definition: scanner.h:200
char * begin Definition: scanner.h:195
char * start_line Definition: scanner.h:199
int line Definition: scanner.h:198
char * curptr Definition: scanner.h:197
PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.
|