diff options
Diffstat (limited to 'src/regex.h')
| -rw-r--r-- | src/regex.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/regex.h b/src/regex.h deleted file mode 100644 index f0aa5d5..0000000 --- a/src/regex.h +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. | ||
| 3 | * | ||
| 4 | * This file is part of the libbu++ library and is released under the | ||
| 5 | * terms of the license contained in the file LICENSE. | ||
| 6 | */ | ||
| 7 | |||
| 8 | #ifndef BU_REG_EX_H | ||
| 9 | #define BU_REG_EX_H | ||
| 10 | |||
| 11 | #include "bu/string.h" | ||
| 12 | |||
| 13 | #include <stdint.h> | ||
| 14 | |||
| 15 | namespace Bu | ||
| 16 | { | ||
| 17 | class RegEx | ||
| 18 | { | ||
| 19 | public: | ||
| 20 | RegEx(); | ||
| 21 | RegEx( const Bu::String &sSrc ); | ||
| 22 | virtual ~RegEx(); | ||
| 23 | |||
| 24 | void compile( const Bu::String &sSrc ); | ||
| 25 | int getNumSubStrings(); | ||
| 26 | bool execute( const Bu::String &sSrc ); | ||
| 27 | void getSubStringRange( int nIndex, int &iStart, int &iEnd ); | ||
| 28 | Bu::String getSubString( int nIndex ); | ||
| 29 | const Bu::String &getSource() | ||
| 30 | { | ||
| 31 | return sSrc; | ||
| 32 | } | ||
| 33 | |||
| 34 | private: | ||
| 35 | Bu::String sSrc; | ||
| 36 | Bu::String sTest; | ||
| 37 | void *pRegEx; | ||
| 38 | bool bCompiled; | ||
| 39 | int nSubStr; | ||
| 40 | void *paSubStr; | ||
| 41 | }; | ||
| 42 | }; | ||
| 43 | |||
| 44 | #endif | ||
