|
void | openTagStart (const char *tag, int tag_len) |
|
void | anyTagEnd (const char *tag, int tag_len, int close_it) |
|
void | attribute (const char *tag, int tag_len, const char *attr, int attr_len, const char *value, int val_len, const char *sep) |
|
void | closeTag (const char *tag, int tag_len) |
|
void | text (const char *value, int len) |
|
Definition at line 104 of file filter_http_rewrite.cpp.
◆ Event()
mp::filter::HttpRewrite::Event::Event |
( |
const Content * |
p, |
|
|
std::map< std::string, std::string > & |
vars, |
|
|
std::list< boost::regex > & |
skip_list |
|
) |
| |
◆ ~Event()
mp::filter::HttpRewrite::Event::~Event |
( |
| ) |
|
◆ anyTagEnd()
void mp::filter::HttpRewrite::Event::anyTagEnd |
( |
const char * |
tag, |
|
|
int |
tag_len, |
|
|
int |
close_it |
|
) |
| |
|
privatevirtual |
◆ attribute()
void mp::filter::HttpRewrite::Event::attribute |
( |
const char * |
tag, |
|
|
int |
tag_len, |
|
|
const char * |
attr, |
|
|
int |
attr_len, |
|
|
const char * |
value, |
|
|
int |
val_len, |
|
|
const char * |
sep |
|
) |
| |
|
privatevirtual |
Implements metaproxy_1::HTMLParserEvent.
Definition at line 411 of file filter_http_rewrite.cpp.
421 std::string t(tag, tag_len);
422 if (it->tag.empty() || regex_match(t, it->tag))
424 std::string a(attr, attr_len);
425 if (!it->attr.empty() && regex_match(a, it->attr))
432 wrbuf_putc(
m_w,
' ');
433 wrbuf_write(
m_w, attr, attr_len);
436 wrbuf_puts(
m_w,
"=");
437 wrbuf_puts(
m_w, sep);
442 std::string s(value, val_len);
444 wrbuf_puts(
m_w, s.c_str());
447 wrbuf_write(
m_w, value, val_len);
448 wrbuf_puts(
m_w, sep);
std::list< Within > within_list
◆ closeTag()
void mp::filter::HttpRewrite::Event::closeTag |
( |
const char * |
tag, |
|
|
int |
tag_len |
|
) |
| |
|
privatevirtual |
◆ openTagStart()
void mp::filter::HttpRewrite::Event::openTagStart |
( |
const char * |
tag, |
|
|
int |
tag_len |
|
) |
| |
|
privatevirtual |
Implements metaproxy_1::HTMLParserEvent.
Definition at line 373 of file filter_http_rewrite.cpp.
375 wrbuf_putc(
m_w,
'<');
376 wrbuf_write(
m_w, tag, tag_len);
378 std::string t(tag, tag_len);
382 if (!it->tag.empty() && regex_match(t, it->tag))
384 if (!it->attr.empty() && regex_match(
"#text", it->attr))
◆ result()
const char * mp::filter::HttpRewrite::Event::result |
( |
| ) |
|
◆ text()
void mp::filter::HttpRewrite::Event::text |
( |
const char * |
value, |
|
|
int |
len |
|
) |
| |
|
privatevirtual |
◆ m_content
const Content* metaproxy_1::filter::HttpRewrite::Event::m_content |
|
private |
◆ m_skips
std::list<boost::regex>& metaproxy_1::filter::HttpRewrite::Event::m_skips |
|
private |
◆ m_vars
std::map<std::string, std::string>& metaproxy_1::filter::HttpRewrite::Event::m_vars |
|
private |
◆ m_w
WRBUF metaproxy_1::filter::HttpRewrite::Event::m_w |
|
private |
◆ s_within
std::stack<std::list<Within>::const_iterator> metaproxy_1::filter::HttpRewrite::Event::s_within |
|
private |
The documentation for this class was generated from the following file: