Ignore:
Timestamp:
Mar 8, 2018, 1:56:35 PM (19 months ago)
Author:
cameron
Message:

Line break controls for Unicode/LF/Null - initial check in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/icgrep.cpp

    r5892 r5894  
    3737static cl::list<std::string> inputFiles(cl::Positional, cl::desc("<regex> <input file ...>"), cl::OneOrMore);
    3838
     39static cl::opt<bool> UnixBreaks("Unix-line-breaks", cl::desc("Enable Unix line breaks"));
    3940static cl::opt<bool> ByteMode("enable-byte-mode", cl::desc("Process regular expressions in byte mode"));
    4041
     
    197198    }
    198199               
     200    if (UnixBreaks) {
     201        grepEngine->setRecordBreak(grep::GrepRecordBreakKind::LF);
     202    } else if (grep::NullDataFlag) {
     203        grepEngine->setRecordBreak(grep::GrepRecordBreakKind::Null);
     204    }
     205   
    199206    grepEngine->grepCodeGen(REs);
    200207
Note: See TracChangeset for help on using the changeset viewer.