Miscellaneous utilities.
More...
#include <string>
Go to the source code of this file.
|
std::string | esc_str (std::string const &s) |
| escape a string in a way that when double quoted, recovers original More...
|
|
std::ostream & | msg (int level) |
| message stream with given level More...
|
|
void | error (std::string const &m) |
| throw error after error message More...
|
|
Miscellaneous utilities.
- Author
- Chun-Chung Chen <cjj@u.nosp@m..was.nosp@m.hingt.nosp@m.on.e.nosp@m.du>
Definition in file utils.hh.
◆ error()
void error |
( |
std::string const & |
m | ) |
|
throw error after error message
throw error after error message
Definition at line 58 of file utils.cc.
◆ esc_str()
std::string esc_str |
( |
std::string const & |
s | ) |
|
escape a string in a way that when double quoted, recovers original
- Returns
- escaped string
escape a string in a way that when double quoted, recovers original
- Parameters
-
Definition at line 9 of file utils.cc.
◆ msg()
std::ostream& msg |
( |
int |
l | ) |
|
message stream with given level
message stream with given level
Definition at line 48 of file utils.cc.
◆ debug
ostream for debugging message
ostream for debugging message
Definition at line 53 of file utils.cc.
◆ info
ostream informative message
ostream informative message
Definition at line 54 of file utils.cc.
◆ msg_level
level below which messages are shown
message level to display
Definition at line 46 of file utils.cc.
◆ warn
ostream warning message
ostream warning message
Definition at line 55 of file utils.cc.