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: */
escape.h
Declaration of escape(), unescape().
gul14::unescape
GUL_EXPORT std::string unescape(string_view in)
Evaluate a string with escaped characters to get the original string back.
gul14::string_view
basic_string_view< char > string_view
A view to a contiguous sequence of chars.
Definition: string_view.h:628
string_view.h
Provides a gul14::string_view that is fully compatible with C++17's std::string_view.
internal.h
Definition of macros used internally by GUL.
gul14
Namespace gul14 contains all functions and classes of the General Utility Library.
Definition: doxygen.h:26
gul14::hex_string
std::string hex_string(Integer v)
Return the hexadecimal ASCII representation of an integer value.
Definition: string_util.h:106
string_util.h
Declarations of string utility functions for the General Utility Library.
gul14::escape
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.