Public Types | Public Member Functions | Static Public Member Functions

ParseRules Class Reference

#include <ParseRules.h>

Public Types

enum  {
  CHAR_SP = 32, CHAR_HT = 9, CHAR_LF = 10, CHAR_VT = 11,
  CHAR_NP = 12, CHAR_CR = 13
}

Public Member Functions

 ParseRules ()

Static Public Member Functions

static CTypeResult is_type (char c, uint32_t bit)
static CTypeResult is_char (char c)
static CTypeResult is_upalpha (char c)
static CTypeResult is_loalpha (char c)
static CTypeResult is_alpha (char c)
static CTypeResult is_digit (char c)
static CTypeResult is_ctl (char c)
static CTypeResult is_hex (char c)
static CTypeResult is_ws (char c)
static CTypeResult is_cr (char c)
static CTypeResult is_lf (char c)
static CTypeResult is_spcr (char c)
static CTypeResult is_splf (char c)
static CTypeResult is_wslfcr (char c)
static CTypeResult is_tspecials (char c)
static CTypeResult is_token (char c)
static CTypeResult is_extra (char c)
static CTypeResult is_safe (char c)
static CTypeResult is_unsafe (char c)
static CTypeResult is_national (char c)
static CTypeResult is_reserved (char c)
static CTypeResult is_unreserved (char c)
static CTypeResult is_punct (char c)
static CTypeResult is_end_of_url (char c)
static CTypeResult is_eow (char c)
static CTypeResult is_wildmat (char c)
static CTypeResult is_sep (char c)
static CTypeResult is_empty (char c)
static CTypeResult is_alnum (char c)
static CTypeResult is_space (char c)
static CTypeResult is_control (char c)
static CTypeResult is_mime_sep (char c)
static CTypeResult is_http_field_name (char c)
static CTypeResult is_http_field_value (char c)
static CTypeResult is_escape (const char *seq)
static CTypeResult is_uchar (const char *seq)
static CTypeResult is_pchar (const char *seq)
static CTypeResult strncasecmp_eow (const char *s1, const char *s2, int n)
static const char * strcasestr (const char *s1, const char *s2)
static int strlen_eow (const char *s)
static const char * strstr_eow (const char *s1, const char *s2)
static char ink_toupper (char c)
static char ink_tolower (char c)
static void ink_tolower_buffer (char *ptr, unsigned int n)
static const char * memchr (const char *s, char c, int max_length)
static const char * strchr (const char *s, char c)
static unsigned char * scan_while (unsigned char *ptr, unsigned int n, uint32_t bitmask)

Detailed Description

Definition at line 77 of file ParseRules.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
CHAR_SP 
CHAR_HT 
CHAR_LF 
CHAR_VT 
CHAR_NP 
CHAR_CR 

Definition at line 86 of file ParseRules.h.


Constructor & Destructor Documentation

ParseRules::ParseRules (  ) 

Member Function Documentation

char ParseRules::ink_tolower ( char  c  )  [inline, static]
void ParseRules::ink_tolower_buffer ( char *  ptr,
unsigned int  n 
) [static]

Definition at line 128 of file ParseRules.cc.

References ink_tolower().

char ParseRules::ink_toupper ( char  c  )  [inline, static]
CTypeResult ParseRules::is_alnum ( char  c  )  [inline, static]

Definition at line 234 of file ParseRules.h.

References is_alnum_BIT, is_alpha(), is_digit(), and parseRulesCType.

Referenced by main().

CTypeResult ParseRules::is_alpha ( char  c  )  [inline, static]
CTypeResult ParseRules::is_char ( char  c  )  [inline, static]

Definition at line 184 of file ParseRules.h.

References is_char_BIT, and parseRulesCType.

Referenced by is_token(), main(), and parseConfigLine().

CTypeResult ParseRules::is_control ( char  c  )  [inline, static]

Definition at line 646 of file ParseRules.h.

References is_control_BIT, and parseRulesCType.

Referenced by main().

CTypeResult ParseRules::is_cr ( char  c  )  [inline, static]

Definition at line 274 of file ParseRules.h.

References CHAR_CR.

Referenced by http_parser_parse_req(), http_parser_parse_resp(), and mime_scanner_get().

CTypeResult ParseRules::is_ctl ( char  c  )  [inline, static]

Definition at line 244 of file ParseRules.h.

References is_ctl_BIT, and parseRulesCType.

Referenced by is_end_of_url(), is_token(), is_unsafe(), and main().

CTypeResult ParseRules::is_digit ( char  c  )  [inline, static]
CTypeResult ParseRules::is_empty ( char  c  )  [inline, static]

Definition at line 617 of file ParseRules.h.

References is_empty_BIT, is_wslfcr(), and parseRulesCType.

Referenced by main().

CTypeResult ParseRules::is_end_of_url ( char  c  )  [inline, static]

Definition at line 463 of file ParseRules.h.

References is_ctl(), is_end_of_url_BIT, and parseRulesCType.

Referenced by main().

CTypeResult ParseRules::is_eow ( char  c  )  [inline, static]

Definition at line 587 of file ParseRules.h.

References is_eow_BIT, and parseRulesCType.

Referenced by main(), strlen_eow(), strncasecmp_eow(), and strstr_eow().

CTypeResult ParseRules::is_escape ( const char *  seq  )  [inline, static]

Definition at line 474 of file ParseRules.h.

References is_hex().

Referenced by is_uchar().

CTypeResult ParseRules::is_extra ( char  c  )  [inline, static]

Definition at line 316 of file ParseRules.h.

References is_extra_BIT, and parseRulesCType.

Referenced by is_unreserved(), and main().

CTypeResult ParseRules::is_hex ( char  c  )  [inline, static]
CTypeResult ParseRules::is_http_field_name ( char  c  )  [inline, static]

Definition at line 672 of file ParseRules.h.

References is_http_field_name_BIT, is_mime_sep(), and parseRulesCType.

Referenced by HttpBodySet::init(), and main().

CTypeResult ParseRules::is_http_field_value ( char  c  )  [inline, static]

Definition at line 684 of file ParseRules.h.

References CHAR_CR, CHAR_LF, is_http_field_value_BIT, and parseRulesCType.

Referenced by main().

CTypeResult ParseRules::is_lf ( char  c  )  [inline, static]

Definition at line 280 of file ParseRules.h.

References CHAR_LF.

Referenced by http_parser_parse_req(), http_parser_parse_resp(), and mime_scanner_get().

CTypeResult ParseRules::is_loalpha ( char  c  )  [inline, static]

Definition at line 204 of file ParseRules.h.

References is_loalpha_BIT, and parseRulesCType.

Referenced by is_alpha(), and main().

CTypeResult ParseRules::is_mime_sep ( char  c  )  [inline, static]

Definition at line 658 of file ParseRules.h.

References is_mime_sep_BIT, and parseRulesCType.

Referenced by is_http_field_name(), and main().

CTypeResult ParseRules::is_national ( char  c  )  [inline, static]

Definition at line 387 of file ParseRules.h.

References is_national_BIT, and parseRulesCType.

Referenced by is_unreserved(), and main().

CTypeResult ParseRules::is_pchar ( const char *  seq  )  [inline, static]

Definition at line 489 of file ParseRules.h.

References is_hex(), is_pchar_BIT, is_unreserved(), and parseRulesCType.

Referenced by main().

CTypeResult ParseRules::is_punct ( char  c  )  [inline, static]

Definition at line 419 of file ParseRules.h.

References is_punct_BIT, and parseRulesCType.

Referenced by main().

CTypeResult ParseRules::is_reserved ( char  c  )  [inline, static]

Definition at line 367 of file ParseRules.h.

References is_reserved_BIT, and parseRulesCType.

Referenced by main().

CTypeResult ParseRules::is_safe ( char  c  )  [inline, static]

Definition at line 335 of file ParseRules.h.

References is_safe_BIT, and parseRulesCType.

Referenced by is_unreserved(), and main().

CTypeResult ParseRules::is_sep ( char  c  )  [inline, static]

Definition at line 607 of file ParseRules.h.

References is_sep_BIT, is_wslfcr(), and parseRulesCType.

Referenced by main().

CTypeResult ParseRules::is_space ( char  c  )  [inline, static]
CTypeResult ParseRules::is_spcr ( char  c  )  [inline, static]

Definition at line 296 of file ParseRules.h.

References CHAR_CR, CHAR_SP, is_spcr_BIT, and parseRulesCType.

Referenced by is_wslfcr(), and main().

CTypeResult ParseRules::is_splf ( char  c  )  [inline, static]

Definition at line 286 of file ParseRules.h.

References CHAR_LF, CHAR_SP, is_splf_BIT, and parseRulesCType.

Referenced by is_wslfcr(), and main().

CTypeResult ParseRules::is_token ( char  c  )  [inline, static]
CTypeResult ParseRules::is_tspecials ( char  c  )  [inline, static]

Definition at line 513 of file ParseRules.h.

References CHAR_HT, CHAR_SP, is_tspecials_BIT, and parseRulesCType.

Referenced by is_token(), and main().

CTypeResult ParseRules::is_type ( char  c,
uint32_t  bit 
) [inline, static]

Definition at line 178 of file ParseRules.h.

References parseRulesCType.

Referenced by scan_while().

CTypeResult ParseRules::is_uchar ( const char *  seq  )  [inline, static]

Definition at line 480 of file ParseRules.h.

References is_escape(), and is_unreserved().

CTypeResult ParseRules::is_unreserved ( char  c  )  [inline, static]

Definition at line 409 of file ParseRules.h.

References is_alpha(), is_digit(), is_extra(), is_national(), is_safe(), is_unreserved_BIT, and parseRulesCType.

Referenced by is_pchar(), is_uchar(), and main().

CTypeResult ParseRules::is_unsafe ( char  c  )  [inline, static]

Definition at line 345 of file ParseRules.h.

References is_ctl(), is_unsafe_BIT, and parseRulesCType.

Referenced by main().

CTypeResult ParseRules::is_upalpha ( char  c  )  [inline, static]

Definition at line 194 of file ParseRules.h.

References is_upalpha_BIT, and parseRulesCType.

Referenced by is_alpha(), and main().

CTypeResult ParseRules::is_wildmat ( char  c  )  [inline, static]

Definition at line 597 of file ParseRules.h.

References is_wildmat_BIT, and parseRulesCType.

Referenced by main().

CTypeResult ParseRules::is_ws ( char  c  )  [inline, static]
CTypeResult ParseRules::is_wslfcr ( char  c  )  [inline, static]
const char * ParseRules::memchr ( const char *  s,
char  c,
int  max_length 
) [inline, static]

Definition at line 780 of file ParseRules.h.

unsigned char * ParseRules::scan_while ( unsigned char *  ptr,
unsigned int  n,
uint32_t  bitmask 
) [static]

Definition at line 44 of file ParseRules.cc.

References is_type().

const char * ParseRules::strcasestr ( const char *  s1,
const char *  s2 
) [inline, static]

Definition at line 765 of file ParseRules.h.

References ink_tolower(), and strncasecmp_eow().

Referenced by MimeTable::get_entry_path().

const char * ParseRules::strchr ( const char *  s,
char  c 
) [inline, static]

Definition at line 789 of file ParseRules.h.

Referenced by HttpTransact::try_to_expand_host_name().

int ParseRules::strlen_eow ( const char *  s  )  [inline, static]

Definition at line 733 of file ParseRules.h.

References is_eow().

Referenced by strstr_eow().

CTypeResult ParseRules::strncasecmp_eow ( const char *  s1,
const char *  s2,
int  n 
) [inline, static]

Definition at line 711 of file ParseRules.h.

References a, ink_tolower(), and is_eow().

Referenced by HttpCompat::do_header_values_rfc2068_14_43_match(), strcasestr(), and strstr_eow().

const char * ParseRules::strstr_eow ( const char *  s1,
const char *  s2 
) [inline, static]

Definition at line 750 of file ParseRules.h.

References ink_tolower(), is_eow(), strlen_eow(), and strncasecmp_eow().


The documentation for this class was generated from the following files: