Home --> Documentations --> PJLIB-UTIL Reference

Data Structures | Typedefs | Enumerations | Functions
scanner.h File Reference

Text Scanning. More...

Go to the source code of this file.

Data Structures

struct  pj_scanner
 
struct  pj_scan_state
 

Typedefs

typedef void(* pj_syn_err_func_ptr )(struct pj_scanner *scanner)
 

Enumerations

enum  { PJ_SCAN_AUTOSKIP_WS = 1, PJ_SCAN_AUTOSKIP_WS_HEADER = 3, PJ_SCAN_AUTOSKIP_NEWLINE = 4 }
 

Functions

void pj_cis_buf_init (pj_cis_buf_t *cs_buf)
 
pj_status_t pj_cis_init (pj_cis_buf_t *cs_buf, pj_cis_t *cis)
 
pj_status_t pj_cis_dup (pj_cis_t *new_cis, pj_cis_t *existing)
 
void pj_cis_add_range (pj_cis_t *cis, int cstart, int cend)
 
void pj_cis_add_alpha (pj_cis_t *cis)
 
void pj_cis_add_num (pj_cis_t *cis)
 
void pj_cis_add_str (pj_cis_t *cis, const char *str)
 
void pj_cis_add_cis (pj_cis_t *cis, const pj_cis_t *rhs)
 
void pj_cis_del_range (pj_cis_t *cis, int cstart, int cend)
 
void pj_cis_del_str (pj_cis_t *cis, const char *str)
 
void pj_cis_invert (pj_cis_t *cis)
 
int pj_cis_match (const pj_cis_t *cis, pj_uint8_t c)
 
void pj_scan_init (pj_scanner *scanner, char *bufstart, pj_size_t buflen, unsigned options, pj_syn_err_func_ptr callback)
 
void pj_scan_fini (pj_scanner *scanner)
 
int pj_scan_is_eof (const pj_scanner *scanner)
 
int pj_scan_peek (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_peek_until (pj_scanner *scanner, const pj_cis_t *spec, pj_str_t *out)
 
void pj_scan_get (pj_scanner *scanner, const pj_cis_t *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_get_quote (pj_scanner *scanner, int begin_quote, int end_quote, pj_str_t *out)
 
void pj_scan_get_quotes (pj_scanner *scanner, const char *begin_quotes, const char *end_quotes, int qsize, pj_str_t *out)
 
void pj_scan_get_n (pj_scanner *scanner, unsigned N, pj_str_t *out)
 
int pj_scan_get_char (pj_scanner *scanner)
 
void pj_scan_get_until (pj_scanner *scanner, const pj_cis_t *spec, pj_str_t *out)
 
void pj_scan_get_until_ch (pj_scanner *scanner, int until_char, pj_str_t *out)
 
void pj_scan_get_until_chr (pj_scanner *scanner, const char *until_spec, pj_str_t *out)
 
void pj_scan_advance_n (pj_scanner *scanner, unsigned N, pj_bool_t skip)
 
int pj_scan_strcmp (pj_scanner *scanner, const char *s, int len)
 
int pj_scan_stricmp (pj_scanner *scanner, const char *s, int len)
 
int pj_scan_stricmp_alnum (pj_scanner *scanner, const char *s, int len)
 
void pj_scan_get_newline (pj_scanner *scanner)
 
void pj_scan_skip_whitespace (pj_scanner *scanner)
 
void pj_scan_skip_line (pj_scanner *scanner)
 
void pj_scan_save_state (const pj_scanner *scanner, pj_scan_state *state)
 
void pj_scan_restore_state (pj_scanner *scanner, pj_scan_state *state)
 
int pj_scan_get_col (const pj_scanner *scanner)
 

Detailed Description

Text Scanning.

 


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.