patrick
/
plasp
Archived
1
0
Fork 0

Added function for escaping ASP variables.

This commit is contained in:
Patrick Lühne 2016-06-12 22:12:43 +02:00
parent e9d48bcb7d
commit 979d9509c1
1 changed files with 11 additions and 0 deletions

View File

@ -40,6 +40,17 @@ inline std::string unescapeASP(const std::string &string)
////////////////////////////////////////////////////////////////////////////////////////////////////
inline std::string escapeASPVariable(const std::string &string)
{
auto escaped = escapeASP(string);
escaped.front() = std::toupper(escaped.front());
return escaped;
}
////////////////////////////////////////////////////////////////////////////////////////////////////
}
}