(v0.19-24-g0617ca1 with changes)
#include <fstream>
#include <memory>
#include "escapism.h"
Go to the source code of this file.
|
int | main (int argc, const char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
Definition at line 8 of file escaper.cpp.
18 parser.fParse(argc,argv);
22 for (
const auto& in: strings) {
25 escaper->deEscape(in,out);
27 escaper->escape(in,out);
31 std::cout << outputSep;
35 for (
const auto&
f: files) {
36 std::unique_ptr<std::istream> in;
40 in.reset(
new std::ifstream(
f));
42 for (std::string line; std::getline(*in, line, inputSep.fGetValue());) {
45 escaper->deEscape(line,out);
47 escaper->escape(line,out);
51 std::cout << outputSep;
References escapism::addAllowedNamesToOption(), f(), options::single< T >::fGetValue(), and escapism::newEscaper().