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

Function escape_string

libhsclient/escape.cpp:27–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25};
26
27void
28escape_string(char *& wp, const char *start, const char *finish)
29{
30 while (start != finish) {
31 const unsigned char c = *start;
32 if (c >= special_char_noescape_min) {
33 wp[0] = c; /* no need to escape */
34 } else {
35 wp[0] = special_char_escape_prefix;
36 ++wp;
37 wp[0] = c + special_char_escape_shift;
38 }
39 ++start;
40 ++wp;
41 }
42}
43
44void
45escape_string(string_buffer& ar, const char *start, const char *finish)

Callers 2

dbcb_resp_entryMethod · 0.85
append_delim_valueFunction · 0.85

Calls 2

make_spaceMethod · 0.80
space_wroteMethod · 0.80

Tested by

no test coverage detected