MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / append_delim_value

Function append_delim_value

libhsclient/hstcpcli.cpp:213–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211namespace {
212
213void
214append_delim_value(string_buffer& buf, const char *start, const char *finish)
215{
216 if (start == 0) {
217 /* null */
218 const char t[] = "\t\0";
219 buf.append(t, t + 2);
220 } else {
221 /* non-null */
222 buf.append_literal("\t");
223 escape_string(buf, start, finish);
224 }
225}
226
227};
228

Callers 1

Calls 3

escape_stringFunction · 0.85
appendMethod · 0.80
append_literalMethod · 0.80

Tested by

no test coverage detected