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);

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);

Return Value

true on success, false if an error was encountered.

Parameters

Name

Description

source

The escaped string to unescape.

dest

The output string that receives the unescaped result.

error

Receives the first error encountered, or nullptr to disable error reporting.

Created with MrDocs