Vcsn  2.1
Be Rational
escape.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iosfwd>
4 #include <string>
5 
6 #include <vcsn/misc/export.hh>
7 
8 namespace vcsn LIBVCSN_API
9 {
11  std::ostream& str_escape(std::ostream& os, const std::string& str);
12 
14  std::string str_escape(const std::string& c);
15 
18  std::ostream& str_escape(std::ostream& os, int c);
19 
21  std::string str_escape(int c);
22 }
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:374
#define LIBVCSN_API
Definition: export.hh:8