ZFFramework
 
Loading...
Searching...
No Matches
ZFProtocolZFRegExp.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFProtocolZFRegExp_h_
7#define _ZFI_ZFProtocolZFRegExp_h_
8
9#include "ZFCore/ZFProtocol.h"
12
17public:
25 virtual void nativeRegExpDestroy(
26 ZF_IN ZFRegExp *regExp
27 , ZF_IN void *nativeRegExp
29
31 virtual void pattern(
32 ZF_IN ZFRegExp *regExp
33 , ZF_IN const zfchar *pattern
36
39 ZF_IN ZFRegExp *regExp
40 , ZF_IN const zfchar *name
42
44 virtual void find(
45 ZF_IN ZFRegExp *regExp
46 , ZF_OUT ZFRegExpResult &result
47 , ZF_IN const zfchar *src
48 , ZF_IN_OPT zfindex srcLength = zfindexMax()
50
52 virtual void replace(
53 ZF_IN ZFRegExp *regExp
54 , ZF_OUT zfstring &ret
55 , ZF_OUT ZFRegExpResult &result
56 , ZF_IN const zfchar *replacePattern
57 , ZF_IN const zfchar *src
58 , ZF_IN_OPT zfindex srcLength = zfindexMax()
59 , ZF_IN_OPT zfindex maxReplaceCount = zfindexMax()
62
64#endif // #ifndef _ZFI_ZFProtocolZFRegExp_h_
65
#define ZFLIB_ZFAlgorithm
used to export symbols
Definition ZFAlgorithmDef.h:14
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
#define zfpurevirtual
dummy macro shows that a method is pure virtual method
Definition ZFCoreTypeDef_ClassType.h:68
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_OUT
dummy macro that shows the param used as required output
Definition ZFCoreTypeDef_ClassType.h:188
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zfindexMax()
(zfindex)-1, indicate a max index value, see zfindex
Definition ZFCoreTypeDef_CoreType.h:159
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
protocol definitions for ZFFramework
#define ZFPROTOCOL_INTERFACE_END(ModuleName)
for more information, please refer to ZFPROTOCOL_INTERFACE_BEGIN
Definition ZFProtocol.h:414
#define ZFPROTOCOL_INTERFACE_BEGIN(ZFLIB_, ModuleName)
declare a protocol interface for ZFFramework
Definition ZFProtocol.h:408
regular expression utils
virtual void nativeRegExpDestroy(ZFRegExp *regExp, void *nativeRegExp)=0
destroy a native reg exp
virtual zfindex namedGroupIndexForName(ZFRegExp *regExp, const zfchar *name)=0
see ZFRegExp::namedGroupIndexForName
virtual void replace(ZFRegExp *regExp, zfstring &ret, ZFRegExpResult &result, const zfchar *replacePattern, const zfchar *src, zfindex srcLength=((zfindex) -1), zfindex maxReplaceCount=((zfindex) -1))=0
see ZFRegExp::replace
virtual void pattern(ZFRegExp *regExp, const zfchar *pattern, ZFRegExpOptionFlags flag=ZFRegExpOptionFlags::EnumDefault())=0
see ZFRegExp::pattern
virtual void * nativeRegExpCreate(ZFRegExp *regExp)=0
create a native reg exp
virtual void find(ZFRegExp *regExp, ZFRegExpResult &result, const zfchar *src, zfindex srcLength=((zfindex) -1))=0
see ZFRegExp::find
regular expression utils
Definition ZFRegExp.h:144
see v_ZFRegExpOption, ZFRegExpOptionFlagsToString, ZFRegExpOptionFlagsFromString
Definition ZFRegExp.h:54
static zfuint EnumDefault(void)
default value for ZFRegExpOptionFlags
Definition ZFRegExp.h:54
match result info for ZFRegExp
Definition ZFRegExp.h:61