General Utility Library for C++14  2.11
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 
28 #include "gul14/internal.h"
29 #include "gul14/string_view.h"
30 
31 namespace gul14 {
32 
74 GUL_EXPORT
75 std::string escape(string_view in);
76 
88 GUL_EXPORT
89 std::string unescape(string_view in);
90 
92 
93 } // namespace gul14
94 
95 #endif
96 
97 /* vim:set noexpandtab softtabstop=4 tabstop=4 shiftwidth=4 textwidth=90 cindent: */
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.
Definition of macros used internally by GUL.
Namespace gul14 contains all functions and classes of the General Utility Library.
Definition: doxygen.h:26
Provides a gul14::string_view that is fully compatible with C++17's std::string_view.