cUnescape overloads

Synopses

Declared in <folly/String.h>

Similar to cUnescape above, but returns the escaped string.

template<class String>
String
cUnescape(
    StringPiece str,
    bool strict = true);

overloadbrief C‐Unescape a string.

template<class String>
void
cUnescape(
    StringPiece str,
    String& out,
    bool strict = true);

Return Value

The unescaped string.

Parameters

Name

Description

str

The input string to unescape.

strict

Whether to throw on an unrecognized escape sequence.

out

The output string that the unescaped result is appended to.

Created with MrDocs