equal
deleted
inserted
replaced
13 #include "CLI.h" |
13 #include "CLI.h" |
14 |
14 |
15 using namespace relpipe::cli; |
15 using namespace relpipe::cli; |
16 using namespace relpipe::writer; |
16 using namespace relpipe::writer; |
17 |
17 |
|
18 /** |
|
19 * see https://hg.frantovo.cz/sql-api/file/tip/prototyp/prototyp.sql#l49 |
|
20 */ |
18 void processDataStream(ostream &output, istream* input) { |
21 void processDataStream(ostream &output, istream* input) { |
19 wregex devicePattern = wregex(L"(LABEL|UUID)=(.*)"); |
22 wregex devicePattern = wregex(L"(LABEL|UUID)=(.*)"); |
20 wregex linePattern = wregex(L"^([^\\s#]+)\\s+([^\\s]+)\\s+([^\\s]+)\\s+([^\\s]+)\\s+(\\d+)\\s+(\\d+)\\s*$"); |
23 wregex linePattern = wregex(L"^([^\\s#]+)\\s+([^\\s]+)\\s+([^\\s]+)\\s+([^\\s]+)\\s+(\\d+)\\s+(\\d+)\\s*$"); |
21 wstring_convert < codecvt_utf8<wchar_t>> convertor; // TODO: support also other encodings. |
24 wstring_convert < codecvt_utf8<wchar_t>> convertor; // TODO: support also other encodings. |
22 |
25 |