1#ifndef ROSE_StringUtility_Escape_H
2#define ROSE_StringUtility_Escape_H
9namespace StringUtility {
32ROSE_UTIL_API std::string
cEscape(
const std::string&,
char context =
'"');
33ROSE_UTIL_API std::string
cEscape(
char,
char context =
'\'');
44ROSE_UTIL_API std::string
cUnescape(
const std::string&);
64ROSE_UTIL_API std::string
csvEscape(
const std::string&);
80ROSE_UTIL_API std::string escapeNewlineAndDoubleQuoteCharacters(
const std::string&);
ROSE_UTIL_API std::string escapeNewLineCharaters(const std::string &)
Escapes line feeds and double quotes.
ROSE_UTIL_API std::string cEscape(const std::string &, char context='"')
Escapes characters that are special to C/C++.
ROSE_UTIL_API std::string cUnescape(const std::string &)
Unescapes C++ string literals.
ROSE_UTIL_API std::string yamlEscape(const std::string &)
Escapes characters that are special to YAML strings.
ROSE_UTIL_API std::string htmlEscape(const std::string &)
Escapes HTML special characters.
ROSE_UTIL_API std::string csvEscape(const std::string &)
Escapes characters that are special in CSV tables.
ROSE_UTIL_API std::string bourneEscape(const std::string &)
Escapes characters that are special to the Bourne shell.
ROSE_UTIL_API std::string jsonEscape(const std::string &)
Escapes characters that are special inside a JSON string.