Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7246f7f3
Commit
7246f7f3
authored
Feb 15, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added IRegExp2::Pattern implementation.
parent
08a16a28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
4 deletions
+36
-4
vbregexp.c
dlls/vbscript/vbregexp.c
+36
-4
No files found.
dlls/vbscript/vbregexp.c
View file @
7246f7f3
...
...
@@ -84,6 +84,8 @@ typedef struct {
IRegExp
IRegExp_iface
;
LONG
ref
;
WCHAR
*
pattern
;
}
RegExp2
;
static
inline
RegExp2
*
impl_from_IRegExp2
(
IRegExp2
*
iface
)
...
...
@@ -135,6 +137,7 @@ static ULONG WINAPI RegExp2_Release(IRegExp2 *iface)
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
heap_free
(
This
->
pattern
);
heap_free
(
This
);
}
...
...
@@ -186,15 +189,44 @@ static HRESULT WINAPI RegExp2_Invoke(IRegExp2 *iface, DISPID dispIdMember,
static
HRESULT
WINAPI
RegExp2_get_Pattern
(
IRegExp2
*
iface
,
BSTR
*
pPattern
)
{
RegExp2
*
This
=
impl_from_IRegExp2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pPattern
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pPattern
);
if
(
!
pPattern
)
return
E_POINTER
;
if
(
!
This
->
pattern
)
{
*
pPattern
=
NULL
;
return
S_OK
;
}
*
pPattern
=
SysAllocString
(
This
->
pattern
);
return
*
pPattern
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
WINAPI
RegExp2_put_Pattern
(
IRegExp2
*
iface
,
BSTR
pattern
)
{
RegExp2
*
This
=
impl_from_IRegExp2
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
wine_dbgstr_w
(
pattern
));
return
E_NOTIMPL
;
WCHAR
*
p
;
DWORD
size
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
wine_dbgstr_w
(
pattern
));
if
(
!
pattern
)
{
heap_free
(
This
->
pattern
);
This
->
pattern
=
NULL
;
return
S_OK
;
}
size
=
(
SysStringLen
(
pattern
)
+
1
)
*
sizeof
(
WCHAR
);
p
=
heap_alloc
(
size
);
if
(
!
p
)
return
E_OUTOFMEMORY
;
heap_free
(
This
->
pattern
);
This
->
pattern
=
p
;
memcpy
(
p
,
pattern
,
size
);
return
S_OK
;
}
static
HRESULT
WINAPI
RegExp2_get_IgnoreCase
(
IRegExp2
*
iface
,
VARIANT_BOOL
*
pIgnoreCase
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment