| 609 | } |
| 610 | |
| 611 | string Utf8SafeCHexEscape(const StringPiece& src) { |
| 612 | const int dest_length = src.size() * 4 + 1; // Maximum possible expansion |
| 613 | unique_ptr<char[]> dest(new char[dest_length]); |
| 614 | const int len = CEscapeInternal(src.data(), src.size(), |
| 615 | dest.get(), dest_length, true, true); |
| 616 | DCHECK_GE(len, 0); |
| 617 | return string(dest.get(), len); |
| 618 | } |
| 619 | |
| 620 | // ---------------------------------------------------------------------- |
| 621 | // BackslashEscape and BackslashUnescape |
nothing calls this directly
no test coverage detected