parser_f.h File Reference

Parser helper functions. More...

#include "../str.h"

Include dependency graph for parser_f.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SP(_c)   ((_c)=='\t' || (_c)==' ')

Functions

char * eat_line (char *buffer, unsigned int len)
static char * eat_lws_end (const char *p, const char *pend)
static char * eat_space_end (const char *p, const char *pend)
static char * eat_token2_end (const char *p, const char *pend, char delim)
static char * eat_token_end (const char *p, const char *pend)
static char * find_not_quoted (str *_s, char _c)
static int is_empty_end (const char *p, const char *pend)


Detailed Description

Parser helper functions.

Definition in file parser_f.h.


Define Documentation

#define SP ( _c   )     ((_c)=='\t' || (_c)==' ')

Definition at line 43 of file parser_f.h.

Referenced by eat_lws_end(), perl_exec2(), and perlvdb_perlmethod().


Function Documentation

char* eat_line ( char *  buffer,
unsigned int  len 
)

returns pointer to next line or after the end of buffer

Definition at line 34 of file parser_f.c.

Referenced by extract_mediainfo(), extract_mediaip(), extract_parsed_hdrs(), extract_rtcp(), and parse_first_line().

static char* eat_lws_end ( const char *  p,
const char *  pend 
) [inline, static]

Definition at line 44 of file parser_f.h.

References SP.

Referenced by get_hdr_field(), and parse_cseq().

static char* eat_space_end ( const char *  p,
const char *  pend 
) [inline, static]

static char* eat_token2_end ( const char *  p,
const char *  pend,
char  delim 
) [inline, static]

Definition at line 66 of file parser_f.h.

Referenced by parse_first_line(), and t_reply_matching().

static char* eat_token_end ( const char *  p,
const char *  pend 
) [inline, static]

static char* find_not_quoted ( str _s,
char  _c 
) [inline, static]

Definition at line 84 of file parser_f.h.

References via_body::i, _str::len, and _str::s.

Referenced by assemble_msg(), get_raw_uri(), is_rpid_user_e164(), and parse_nameaddr().

static int is_empty_end ( const char *  p,
const char *  pend 
) [inline, static]

Definition at line 74 of file parser_f.h.

References eat_space_end().

Referenced by parse_first_line().


Generated on Thu May 24 02:00:40 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6