#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) |
Definition at line 77 of file ParseRules.h.
anonymous enum |
Definition at line 86 of file ParseRules.h.
ParseRules::ParseRules | ( | ) |
char ParseRules::ink_tolower | ( | char | c | ) | [inline, static] |
Definition at line 571 of file ParseRules.h.
References parseRulesCTypeToLower.
Referenced by does_language_range_match(), ink_get_hex(), ink_inet_addr(), ink_tolower_buffer(), HttpCompat::lookup_param_in_strlist(), LowerCaseStr(), main(), memcpy_tolower(), ptr_len_casecmp(), ptr_len_ncasecmp(), strcasestr(), strncasecmp_eow(), strstr_eow(), unescape_str_tolower(), and HttpTransact::url_looks_dynamic().
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] |
Definition at line 555 of file ParseRules.h.
References parseRulesCTypeToUpper.
Referenced by main(), RecConfigOverrideFromEnvironment(), LogFilterString::toss_this_entry(), unescape_str(), unescape_str_tolower(), and LogFilterString::wipe_this_entry().
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] |
Definition at line 214 of file ParseRules.h.
References is_alpha_BIT, is_loalpha(), is_upalpha(), and parseRulesCType.
Referenced by is_alnum(), is_unreserved(), main(), mime_parse_day(), mime_parse_month(), unescape_str(), and unescape_str_tolower().
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] |
Definition at line 224 of file ParseRules.h.
References is_digit_BIT, and parseRulesCType.
Referenced by ConfigVolumes::BuildListFromString(), HtmlParser::ExtractURL(), http_parse_qvalue(), http_parse_status(), http_parse_version(), http_parser_parse_req(), http_parser_parse_resp(), ink_atoi64(), ink_atoui64(), ink_get_hex(), ink_inet_addr(), is_alnum(), is_unreserved(), main(), HttpConfig::parse_ports_list(), parseConfigLine(), processDurationString(), Store::read_config(), read_MachineList(), and url_port_set().
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] |
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] |
Definition at line 264 of file ParseRules.h.
References is_hex_BIT, and parseRulesCType.
Referenced by ink_atoi64(), ink_atoui64(), ink_inet_addr(), is_escape(), is_pchar(), main(), unescape_str(), and unescape_str_tolower().
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] |
Definition at line 627 of file ParseRules.h.
References CHAR_CR, CHAR_HT, CHAR_LF, CHAR_NP, CHAR_SP, CHAR_VT, is_space_BIT, and parseRulesCType.
Referenced by http_parse_status(), http_parser_parse_req(), http_parser_parse_resp(), main(), mime_parse_int(), mime_parse_int64(), mime_parse_uint(), HttpConfig::parse_ports_list(), and Store::read_config().
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] |
Definition at line 545 of file ParseRules.h.
References is_char(), is_ctl(), is_token_BIT, is_tspecials(), and parseRulesCType.
Referenced by main(), mime_parser_parse(), and MIMEHdrImpl::recompute_cooked_stuff().
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] |
Definition at line 254 of file ParseRules.h.
References CHAR_HT, CHAR_SP, is_ws_BIT, and parseRulesCType.
Referenced by http_parser_parse_req(), http_parser_parse_resp(), http_skip_ws(), is_wslfcr(), HttpCompat::lookup_param_in_strlist(), main(), mime_scanner_get(), HttpCompat::parse_mime_type_with_len(), and HttpCompat::parse_tok_list().
CTypeResult ParseRules::is_wslfcr | ( | char | c | ) | [inline, static] |
Definition at line 306 of file ParseRules.h.
References is_spcr(), is_splf(), is_ws(), is_wslfcr_BIT, and parseRulesCType.
Referenced by http_parser_parse_req(), HttpBodySet::init(), ink_atoi64(), ink_atoui64(), ink_inet_addr(), is_empty(), is_sep(), main(), mime_parser_parse(), plugin_init(), and ParentRecord::ProcessParents().
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] |
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().