equal
deleted
inserted
replaced
19 #include <stdexcept> |
19 #include <stdexcept> |
20 #include <libxml++-2.6/libxml++/libxml++.h> |
20 #include <libxml++-2.6/libxml++/libxml++.h> |
21 |
21 |
22 #include "lib/INIReader.h" |
22 #include "lib/INIReader.h" |
23 #include "lib/BasicUnescapingINIHandler.h" |
23 #include "lib/BasicUnescapingINIHandler.h" |
|
24 #include "lib/JavaPropertiesUnescapingINIHandler.h" |
24 #include "lib/XMLNameCodec.h" |
25 #include "lib/XMLNameCodec.h" |
25 |
26 |
26 using namespace relpipe::in::ini::lib; |
27 using namespace relpipe::in::ini::lib; |
27 |
28 |
28 namespace relpipe { |
29 namespace relpipe { |
108 } |
109 } |
109 |
110 |
110 void process() { |
111 void process() { |
111 HierarchicalINIContentHandler handler(parser); |
112 HierarchicalINIContentHandler handler(parser); |
112 std::shared_ptr<INIReader> reader(INIReader::create(*input)); |
113 std::shared_ptr<INIReader> reader(INIReader::create(*input)); |
113 BasicUnescapingINIContentHandler unescapingHandler(handler, true); |
114 BasicUnescapingINIContentHandler unescapingHandler(handler, false); |
114 reader->addHandler(&unescapingHandler); |
115 JavaPropertiesUnescapingINIContentHandler javaHandler(handler, true); |
|
116 reader->addHandler(&javaHandler); |
115 reader->process(); |
117 reader->process(); |
116 } |
118 } |
117 }; |
119 }; |
118 |
120 |
119 } |
121 } |