22 #ifndef HYPERTABLE_LOADDATAESCAPE_H
23 #define HYPERTABLE_LOADDATAESCAPE_H
34 bool escape(
const char *in_buf,
size_t in_len,
const char **out_bufp,
36 bool escape(
const char *in_buf,
size_t in_len, std::string &out) {
39 bool rval =
escape(in_buf, in_len, &out_buf, &out_len);
41 out.append(out_buf, out_len);
44 bool unescape(
const char *in_buf,
size_t in_len,
const char **out_bufp,
56 #endif // HYPERTABLE_LOADDATAESCAPE_H
void set_field_separator(char fs)
bool escape(const char *in_buf, size_t in_len, const char **out_bufp, size_t *out_lenp)
A dynamic, resizable and reference counted memory buffer.
A dynamic, resizable memory buffer.
A String class based on std::string.
bool unescape(const char *in_buf, size_t in_len, const char **out_bufp, size_t *out_lenp)
bool escape(const char *in_buf, size_t in_len, std::string &out)