diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-01-07 00:36:55 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-01-07 00:36:55 +0000 |
commit | cbd0823fde1b3feb4cfa9ef3a5affca5a4554d5e (patch) | |
tree | 774564c97de455c40428ae5fa23638893fd1bbc0 /src/functionregex.h | |
parent | 3c7e81d3baba06cb1bf37de84aeaa6cad277652a (diff) | |
download | build-cbd0823fde1b3feb4cfa9ef3a5affca5a4554d5e.tar.gz build-cbd0823fde1b3feb4cfa9ef3a5affca5a4554d5e.tar.bz2 build-cbd0823fde1b3feb4cfa9ef3a5affca5a4554d5e.tar.xz build-cbd0823fde1b3feb4cfa9ef3a5affca5a4554d5e.zip |
Updated the general rules to use the new regex function, they're safer now,
and everything works. Unfortunately, with this release, you'll have to rebuild
with the shell script...
Diffstat (limited to '')
-rw-r--r-- | src/functionregex.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/functionregex.h b/src/functionregex.h new file mode 100644 index 0000000..2096a64 --- /dev/null +++ b/src/functionregex.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #ifndef FUNCTION_REG_EX_H | ||
2 | #define FUNCTION_REG_EX_H | ||
3 | |||
4 | #include "function.h" | ||
5 | |||
6 | namespace Bu | ||
7 | { | ||
8 | class RegEx; | ||
9 | } | ||
10 | |||
11 | class FunctionRegEx : public Function | ||
12 | { | ||
13 | public: | ||
14 | FunctionRegEx(); | ||
15 | virtual ~FunctionRegEx(); | ||
16 | |||
17 | virtual Bu::FString getName() const; | ||
18 | virtual Variable call( Variable &input, VarList lParams ); | ||
19 | |||
20 | Bu::FString replace( Bu::RegEx &re, const Bu::FString &sSrc, | ||
21 | const Bu::FString &sPat ); | ||
22 | }; | ||
23 | |||
24 | #endif | ||