Ignore:
Timestamp:
Jan 10, 2018, 11:06:11 PM (13 months ago)
Author:
faldebey
Message:

Update to CoRE testing system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/combine/stringGen.h

    r5613 r5825  
    44#include <string>
    55#include <vector>
     6#include <re/re_cc.h>
    67#include <re/re_parser.h>
    78
     
    1415
    1516public:
    16     std::vector<std::string> generate(re::RE *re);
    17     std::string generate(std::string re, std::vector<std::string> flags, re::RE_Syntax syntax);
    18     static std::string stringifyVec(std::vector<std::string> elements, std::string separator="");
    19    
     17    StringGenerator(std::string re, std::vector<std::string> flags, re::RE_Syntax syntax);
     18
     19    std::vector<re::CC* > generate(re::RE *re, bool Complement=false, bool getOne=false);
     20    std::string generate();
     21    std::string stringifyVec(std::vector<re::CC *> elements);
     22
     23    ~StringGenerator();
    2024
    2125private:
    22         std::vector<std::string> references;
    23         static bool hasFlag(std::string flag, std::vector<std::string> flags);
     26
     27        std::string mRegex;
     28        std::vector<std::string> mFlags;
     29        re::RE_Syntax mSyntax;
     30        std::vector<std::vector<re::CC *>> mReferences;
     31
     32    re::CC * const asciiCC;
     33    re::CC * const unicodeCC;
     34    re::CC * const forbiddenCC;
     35    re::CC * const allCodepointsCC;
     36
     37    re::CC * getRandomCodepointCC(re::CC * cc);
     38    re::CC * getAllCodepoints();
    2439
    2540};
Note: See TracChangeset for help on using the changeset viewer.