Skip to content

Rose::StringUtility::cEscape

Escapes characters that are special to C/C++.

Synopses

Declared in <src/Rose/StringUtility/Escape.h>

[[visibility]]
std::string
cEscape(
    char,
    char context = '\'');

Escapes characters that are special to C/C++.

[[visibility]]
std::string
cEscape(
    std::string const&,
    char context = '"');

Return Value

Escaped string.

Parameters

Name

Description

context

Quote character selecting string or character escaping.

Created with MrDocs