absl::CUnescape

CUnescape overloads

Synopses

Declared in <absl/strings/escaping.h>

Overload of CUnescape() with no error reporting.

bool
CUnescape(
    std::string_view source,
    std::string* dest);
» more...

Unescapes a source string and copies it into dest, rewriting C-style escape sequences (https://en.cppreference.com/w/cpp/language/escape) into their proper code point equivalents, returning true if successful.

bool
CUnescape(
    std::string_view source,
    std::string* dest,
    std::string* error);
» more...

Return Value

true on success, false if an error was encountered.

Parameters

NameDescription
sourceThe escaped string to unescape.
destThe output string that receives the unescaped result.
errorReceives the first error encountered, or nullptr to disable error reporting.