mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add utf8.escape_xml and alias - string.escape_xml
This commit is contained in:
parent
91cb5ab7d8
commit
6810f9a03a
4 changed files with 37 additions and 0 deletions
|
|
@ -10,6 +10,9 @@ namespace util {
|
|||
/// @brief Function used for string serialization in text formats
|
||||
std::string escape(std::string_view s, bool escapeUnicode=true);
|
||||
|
||||
/// @brief Escape all special XML characters
|
||||
std::string escape_xml(std::string_view s);
|
||||
|
||||
/// @brief Function used for error messages
|
||||
std::string quote(const std::string& s);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue