MCPcopy Create free account
hub / github.com/acl-dev/acl / push_back

Method push_back

lib_acl_cpp/src/hsocket/hsrow.cpp:39–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void hsrow::push_back(const char* value, size_t dlen)
40{
41 if (icolum_ >= ncolum_) {
42 logger_error("icolum_(%d) >= ncolum_(%d)",
43 icolum_, ncolum_);
44 return;
45 }
46
47 static const char* dummy_ = "";
48 if (*value == 0) {
49 row_.push_back(dummy_);
50 icolum_++;
51 return;
52 }
53
54 string* buf = &colums_[icolum_];
55 buf->clear();
56 unescape(value, dlen, *buf);
57 row_.push_back(buf->c_str());
58 icolum_++;
59}
60
61const std::vector<const char*>& hsrow::get_row(void) const
62{

Callers 15

acl_foreachFunction · 0.45
create_cookiesMethod · 0.45
http_header.cppFile · 0.45
add_res_cookieMethod · 0.45
set_charsetMethod · 0.45
appendMethod · 0.45
HttpCookieMethod · 0.45
HttpCookie.cppFile · 0.45
setCookieMethod · 0.45
acl_foreachFunction · 0.45
putMethod · 0.45

Calls 3

unescapeFunction · 0.50
clearMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected