relpipe-in-fstab.cpp
branchv_0
changeset 2 6615824d69b7
parent 1 21ef3f6cd5e9
child 3 e8be873f1eab
equal deleted inserted replaced
1:21ef3f6cd5e9 2:6615824d69b7
    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