Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
escape.hh
Go to the documentation of this file.
1 #ifndef VCSN_MISC_ESCAPE_HH
2 # define VCSN_MISC_ESCAPE_HH
3 
4 # include <iosfwd>
5 # include <string>
6 
7 # include <vcsn/misc/export.hh>
8 
9 namespace vcsn LIBVCSN_API
10 {
12  std::ostream& str_escape(std::ostream& os, const std::string& str);
13 
15  std::string str_escape(const std::string& c);
16 
19  std::ostream& str_escape(std::ostream& os, int c);
20 
22  std::string str_escape(int c);
23 }
24 
25 #endif // !VCSN_MISC_ESCAPE_HH
std::ostream & str_escape(std::ostream &os, const std::string &str)
Output a string, escaping special characters.
Definition: escape.cc:43
std::ostringstream os
The output stream: the corresponding C++ snippet to compile.
Definition: translate.cc:331
#define LIBVCSN_API
Definition: export.hh:9