escapeString#

Fully qualified name: carb::tokens::escapeString

Defined in carb/tokens/TokensUtils.h

inline std::string carb::tokens::escapeString(
carb::cpp::string_view 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_view 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