Lines Matching defs:src
12 // Copies 'src' to 'dest', escaping dangerous characters using
13 // C-style escape sequences. 'src' and 'dest' should not overlap.
17 int CEscapeString(const char* src, int src_len, char* dest,
19 const char* src_end = src + src_len;
22 for (; src < src_end; src++) {
26 unsigned char c = *src;
35 // Note that if we emit \xNN and the src character after that is a hex
59 // Copies 'src' to result, escaping dangerous characters using
60 // C-style escape sequences. 'src' and 'dest' should not overlap.
62 string CEscape(const StringPiece& src) {
63 const int dest_length = src.size() * 4 + 1; // Maximum possible expansion
65 const int len = CEscapeString(src.data(), src.size(),