General Utility Library for C++14  2.7
escape.h
Go to the documentation of this file.
1 
23 #ifndef GUL14_ESCAPE_H_
24 #define GUL14_ESCAPE_H_
25 
26 #include <string>
27 #include "gul14/internal.h"
28 #include "gul14/string_view.h"
29 
30 namespace gul14 {
31 
67 GUL_EXPORT
68 std::string escape(string_view in);
69 
81 GUL_EXPORT
82 std::string unescape(string_view in);
83 
84 } // namespace gul14
85 
86 #endif
87 
88 /* vim:set noexpandtab softtabstop=4 tabstop=4 shiftwidth=4 textwidth=90 cindent: */
Definition of macros used internally by GUL.
Namespace gul14 contains all functions and classes of the General Utility Library.
Definition: doxygen.h:26
GUL_EXPORT std::string escape(string_view in)
Create a new string that looks like an ASCII-only C string literal of the input string.
GUL_EXPORT std::string unescape(string_view in)
Evaluate a string with escaped characters to get the original string back.
Provides a gul14::string_view that is fully compatible with C++17's std::string_view.