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
a71acb30
Commit
a71acb30
authored
Nov 16, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Added wctrans and towctrans implementation.
parent
965543ac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
+29
-2
locale.c
dlls/msvcp90/locale.c
+22
-0
msvcp90.spec
dlls/msvcp90/msvcp90.spec
+2
-2
wctype.h
include/msvcrt/wctype.h
+5
-0
No files found.
dlls/msvcp90/locale.c
View file @
a71acb30
...
...
@@ -26,6 +26,7 @@
#include "limits.h"
#include "math.h"
#include "stdio.h"
#include "wctype.h"
#include "wine/list.h"
...
...
@@ -8541,6 +8542,27 @@ locale* __cdecl locale_global(locale *ret, const locale *loc)
return
ret
;
}
/* wctrans */
wctrans_t
__cdecl
wctrans
(
const
char
*
property
)
{
static
const
char
str_tolower
[]
=
"tolower"
;
static
const
char
str_toupper
[]
=
"toupper"
;
if
(
!
strcmp
(
property
,
str_tolower
))
return
2
;
if
(
!
strcmp
(
property
,
str_toupper
))
return
1
;
return
0
;
}
/* towctrans */
wint_t
__cdecl
towctrans
(
wint_t
c
,
wctrans_t
category
)
{
if
(
category
==
1
)
return
towupper
(
c
);
return
towlower
(
c
);
}
DEFINE_RTTI_DATA0
(
locale_facet
,
0
,
".?AVfacet@locale@std@@"
);
DEFINE_RTTI_DATA1
(
collate_char
,
0
,
&
locale_facet_rtti_base_descriptor
,
".?AV?$collate@D@std@@"
);
DEFINE_RTTI_DATA1
(
collate_wchar
,
0
,
&
locale_facet_rtti_base_descriptor
,
".?AV?$collate@_W@std@@"
);
...
...
dlls/msvcp90/msvcp90.spec
View file @
a71acb30
...
...
@@ -5807,8 +5807,8 @@
@ stub _Wcsxfrm
# extern _Xbig
@ stub __Wcrtomb_lk
@
stub towctrans
@
stub wctrans
@
cdecl towctrans(long long)
@
cdecl wctrans(str)
@ cdecl wctype(str)
#Functions not exported in native dll:
...
...
include/msvcrt/wctype.h
View file @
a71acb30
...
...
@@ -68,6 +68,11 @@ wchar_t __cdecl towlower(wchar_t);
wchar_t
__cdecl
towupper
(
wchar_t
);
#endif
/* _WCTYPE_DEFINED */
typedef
wchar_t
wctrans_t
;
wint_t
__cdecl
towctrans
(
wint_t
,
wctrans_t
);
wctrans_t
__cdecl
wctrans
(
const
char
*
);
wctype_t
__cdecl
wctype
(
const
char
*
);
#ifdef __cplusplus
}
#endif
...
...
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