carb::tokens::escapeString

Defined in carb/tokens/TokensUtils.h

inline std::string carb::tokens::escapeString(const std::string &str)

A helper function that escapes necessary symbols in the provided string so that they won’t be recognized as related to token parsing.

Parameters

str – a string that requires preprocessing to evade the token resolution (a string provided by a user or some other data that must not be a part of token resolution)

Returns

a string with necessary modification so it won’t participate in token resolution