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
0ea4e668
Commit
0ea4e668
authored
May 12, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
May 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _tolower_l implementation.
parent
1e981e5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
2 deletions
+45
-2
ctype.c
dlls/msvcrt/ctype.c
+43
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+2
-2
No files found.
dlls/msvcrt/ctype.c
View file @
0ea4e668
...
...
@@ -380,6 +380,49 @@ int CDECL MSVCRT__toupper(int c)
}
/*********************************************************************
* _tolower_l (MSVCRT.@)
*/
int
CDECL
MSVCRT__tolower_l
(
int
c
,
MSVCRT__locale_t
locale
)
{
if
(
!
locale
)
locale
=
get_locale
();
if
(
c
<
256
)
return
locale
->
locinfo
->
pclmap
[
c
];
if
(
locale
->
locinfo
->
pctype
[(
c
>>
8
)
&
255
]
&
MSVCRT__LEADBYTE
)
{
WCHAR
wide
,
upper
;
char
str
[
2
],
*
p
=
str
;
*
p
++
=
(
c
>>
8
)
&
255
;
*
p
++
=
c
&
255
;
if
(
!
MultiByteToWideChar
(
locale
->
locinfo
->
lc_codepage
,
MB_ERR_INVALID_CHARS
,
str
,
2
,
&
wide
,
1
))
return
c
;
upper
=
tolowerW
(
wide
);
if
(
upper
==
wide
)
return
c
;
WideCharToMultiByte
(
locale
->
locinfo
->
lc_codepage
,
0
,
&
upper
,
1
,
str
,
2
,
NULL
,
NULL
);
return
str
[
0
]
+
(
str
[
1
]
<<
8
);
}
return
c
;
}
/*********************************************************************
* tolower (MSVCRT.@)
*/
int
CDECL
MSVCRT_tolower
(
int
c
)
{
return
MSVCRT__tolower_l
(
c
,
NULL
);
}
/*********************************************************************
* _tolower (MSVCRT.@)
*/
int
CDECL
MSVCRT__tolower
(
int
c
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
0ea4e668
...
...
@@ -977,7 +977,7 @@
@ cdecl _time64(ptr) MSVCRT__time64
@ extern _timezone MSVCRT___timezone
@ cdecl _tolower(long) MSVCRT__tolower
# stub _tolower_l(long ptr)
@ cdecl _tolower_l(long ptr) MSVCRT__tolower_l
@ cdecl _toupper(long) MSVCRT__toupper
@ cdecl _toupper_l(long ptr) MSVCRT__toupper_l
@ cdecl _towlower_l(long ptr) MSVCRT__towlower_l
...
...
@@ -1425,7 +1425,7 @@
# stub tmpfile_s(ptr)
@ cdecl tmpnam(ptr) MSVCRT_tmpnam
# stub tmpnam_s(ptr long)
@ cdecl tolower(long)
ntdll.
tolower
@ cdecl tolower(long)
MSVCRT_
tolower
@ cdecl toupper(long) MSVCRT_toupper
@ cdecl towlower(long) ntdll.towlower
@ cdecl towupper(long) ntdll.towupper
...
...
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