2 * Copyright 2013 Piotr Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #pragma makedep regtypelib
23 #include
"vbscript_defs.h"
26 helpstring("Microsoft VBScript Regular Expressions 1.0"),
28 uuid(3f4daca7
-160d
-11d2
-a8e9
-00104b365c9f
),
31 library VBScript_RegExp_10
33 importlib
("stdole2.tlb");
41 uuid(3f4daca0
-160d
-11d2
-a8e9
-00104b365c9f
),
43 interface IRegExp
: IDispatch
45 [id(DISPID_REGEXP_PATTERN
), propget]
46 HRESULT Pattern
([out, retval] BSTR *pPattern
);
48 [id(DISPID_REGEXP_PATTERN
), propput]
49 HRESULT Pattern
([in] BSTR pPattern
);
51 [id(DISPID_REGEXP_IGNORECASE
), propget]
52 HRESULT IgnoreCase
([out, retval] VARIANT_BOOL *pIgnoreCase
);
54 [id(DISPID_REGEXP_IGNORECASE
), propput]
55 HRESULT IgnoreCase
([in] VARIANT_BOOL pIgnoreCase
);
57 [id(DISPID_REGEXP_GLOBAL
), propget]
58 HRESULT Global
([out, retval] VARIANT_BOOL *pGlobal
);
60 [id(DISPID_REGEXP_GLOBAL
), propput]
61 HRESULT Global
([in] VARIANT_BOOL pGlobal
);
63 [id(DISPID_REGEXP_EXECUTE
)]
65 [in] BSTR sourceString
,
66 [out, retval] IDispatch
**ppMatches
);
68 [id(DISPID_REGEXP_TEST
)]
70 [in] BSTR sourceString
,
71 [out, retval] VARIANT_BOOL *pMatch
);
73 [id(DISPID_REGEXP_REPLACE
)]
75 [in] BSTR sourceString
,
76 [in] BSTR replaceString
,
77 [out, retval] BSTR *pDestString
);
86 uuid(3f4daca1
-160d
-11d2
-a8e9
-00104b365c9f
)
88 interface IMatch
: IDispatch
90 [id(DISPID_VALUE
), propget]
91 HRESULT Value
([out, retval] BSTR *pValue
);
93 [id(DISPID_MATCH_FIRSTINDEX
), propget]
94 HRESULT FirstIndex
([out, retval] LONG *pFirstIndex
);
96 [id(DISPID_MATCH_LENGTH
), propget]
97 HRESULT Length
([out, retval] LONG *pLength
);
106 uuid(3f4daca2
-160d
-11d2
-a8e9
-00104b365c9f
)
108 interface IMatchCollection
: IDispatch
110 [id(DISPID_VALUE
), propget]
113 [out, retval] IDispatch
**ppMatch
);
115 [id(DISPID_MATCHCOLLECTION_COUNT
), propget]
116 HRESULT Count
([out, retval] LONG *pCount
);
118 [id(DISPID_NEWENUM
), propget]
119 HRESULT _NewEnum
([out, retval] IUnknown
**ppEnum
);
123 uuid(3f4daca4
-160d
-11d2
-a8e9
-00104b365c9f
)
127 [default] interface IRegExp
;
132 uuid(3f4daca5
-160d
-11d2
-a8e9
-00104b365c9f
)
136 [default] interface IMatch
;
141 uuid(3f4daca6
-160d
-11d2
-a8e9
-00104b365c9f
)
143 coclass MatchCollection
145 [default] interface IMatchCollection
;