class xf::data_analytics::text::re::reConfig¶
#include "reEngine_config.hpp"
Overview¶
Pre-compiling the regular expression and generating configurations under the requirement of reEngineKernel if the pattern is valid.
// fields std::string pattern
Methods¶
reConfig¶
reConfig ( const uint32_t instr_depth, const uint32_t char_class_num, const uint32_t capture_grp_num )
Allocates buffers for configurations and bit-set map, and initializes number of instructions/character-classes/capturing-groups.
Parameters:
| instr_depth | max number of instructions. | 
| char_class_num | max number of character classes. | 
| capture_grp_num | max number of capturing groups. | 
compile¶
ErrCode compile (std::string pattern)
Pre-compiles pattern and gives error code correspondingly.
Parameters:
| pattern | Input regular expression | 
getConfigBits¶
const uint64_t* getConfigBits ()
Prepares configurations under the requirement of L2 reEngineKernel