|
|
1.1 ! root 1: #ifndef CAP_REGEXP_H ! 2: #define CAP_REGEXP_H 1 ! 3: ! 4: #include <regexp.h> ! 5: #include "String.h" ! 6: ! 7: class Regexp { ! 8: String subject; ! 9: int offset[NSUBEXP]; ! 10: int len[NSUBEXP]; ! 11: regexp* prog; ! 12: public: ! 13: Regexp(const char*); ! 14: Regexp(const String&); ! 15: ~Regexp(); ! 16: int exec(const String&); ! 17: int result(unsigned& start, unsigned& length, unsigned = 0); ! 18: String subst(const String&); ! 19: }; ! 20: ! 21: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.