Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b7990be8
Commit
b7990be8
authored
Apr 29, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Move basic_string<char>:swap implementation.
parent
46f1d8a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
string.c
dlls/msvcp90/string.c
+22
-22
No files found.
dlls/msvcp90/string.c
View file @
b7990be8
...
...
@@ -780,6 +780,28 @@ size_t __thiscall MSVCP_basic_string_char_length(basic_string_char *this)
return
this
->
size
;
}
/* ?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXAAV12@@Z */
/* ?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXAEAV12@@Z */
DEFINE_THISCALL_WRAPPER
(
MSVCP_basic_string_char_swap
,
8
)
void
__thiscall
MSVCP_basic_string_char_swap
(
basic_string_char
*
this
,
basic_string_char
*
str
)
{
if
(
this
!=
str
)
{
char
tmp
[
sizeof
(
this
->
data
)];
const
size_t
size
=
this
->
size
;
const
size_t
res
=
this
->
res
;
memcpy
(
tmp
,
this
->
data
.
buf
,
sizeof
(
this
->
data
));
memcpy
(
this
->
data
.
buf
,
str
->
data
.
buf
,
sizeof
(
this
->
data
));
memcpy
(
str
->
data
.
buf
,
tmp
,
sizeof
(
this
->
data
));
this
->
size
=
str
->
size
;
this
->
res
=
str
->
res
;
str
->
size
=
size
;
str
->
res
=
res
;
}
}
/* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z */
/* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
DEFINE_THISCALL_WRAPPER
(
MSVCP_basic_string_char_append_substr
,
16
)
...
...
@@ -1262,28 +1284,6 @@ size_t __thiscall MSVCP_basic_string_wchar_length(basic_string_wchar *this)
return
this
->
size
;
}
/* ?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXAAV12@@Z */
/* ?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXAEAV12@@Z */
DEFINE_THISCALL_WRAPPER
(
MSVCP_basic_string_char_swap
,
8
)
void
__thiscall
MSVCP_basic_string_char_swap
(
basic_string_char
*
this
,
basic_string_char
*
str
)
{
if
(
this
!=
str
)
{
char
tmp
[
sizeof
(
this
->
data
)];
const
size_t
size
=
this
->
size
;
const
size_t
res
=
this
->
res
;
memcpy
(
tmp
,
this
->
data
.
buf
,
sizeof
(
this
->
data
));
memcpy
(
this
->
data
.
buf
,
str
->
data
.
buf
,
sizeof
(
this
->
data
));
memcpy
(
str
->
data
.
buf
,
tmp
,
sizeof
(
this
->
data
));
this
->
size
=
str
->
size
;
this
->
res
=
str
->
res
;
str
->
size
=
size
;
str
->
res
=
res
;
}
}
/* ?swap@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXAAV12@@Z */
/* ?swap@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXAEAV12@@Z */
DEFINE_THISCALL_WRAPPER
(
MSVCP_basic_string_wchar_swap
,
8
)
...
...
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