📄 action.h
字号:
// An action (regexp) to be takenclass Action{public: ~Action(); String pattern; // The pattern to search for String commands; // Commands to be run OR replacement pattern typedef enum { Trigger, Replacement, Gag } action_t; action_t type; void *embedded_sub; void compile(); void checkMatch(const char*); // run commands if matching void checkReplacement(char *buf, int& len, char **new_out); // Take a string like "^blah" dosomething and produce an Action // if NULL, error ocurred: error result will be in res static Action* parse(const char *buf, String& res, action_t type); private: Action(const char *_pattern, const char *_commands, action_t type);};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -