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
49d3236d
Commit
49d3236d
authored
Nov 02, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Nov 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbsnicmp_l implementation.
parent
5098bab5
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
48 additions
and
27 deletions
+48
-27
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
mbcs.c
dlls/msvcrt/mbcs.c
+40
-19
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+2
-2
No files found.
dlls/msvcr100/msvcr100.spec
View file @
49d3236d
...
...
@@ -1162,7 +1162,7 @@
@ cdecl _mbsnextc(str)
@ cdecl _mbsnextc_l(str ptr)
@ cdecl _mbsnicmp(str str long)
@
stub _mbsnicmp_l
@
cdecl _mbsnicmp_l(str str long ptr)
@ stub _mbsnicoll(str str long)
@ stub _mbsnicoll_l
@ cdecl _mbsninc(str long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
49d3236d
...
...
@@ -1519,7 +1519,7 @@
@ cdecl _mbsnextc(str)
@ cdecl _mbsnextc_l(str ptr)
@ cdecl _mbsnicmp(str str long)
@
stub _mbsnicmp_l
@
cdecl _mbsnicmp_l(str str long ptr)
@ stub _mbsnicoll(str str long)
@ stub _mbsnicoll_l
@ cdecl _mbsninc(str long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
49d3236d
...
...
@@ -1530,7 +1530,7 @@
@ cdecl _mbsnextc(str)
@ cdecl _mbsnextc_l(str ptr)
@ cdecl _mbsnicmp(str str long)
@
stub _mbsnicmp_l
@
cdecl _mbsnicmp_l(str str long ptr)
@ stub _mbsnicoll(str str long)
@ stub _mbsnicoll_l
@ cdecl _mbsninc(str long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
49d3236d
...
...
@@ -834,7 +834,7 @@
@ cdecl _mbsnextc(str)
@ cdecl _mbsnextc_l(str ptr)
@ cdecl _mbsnicmp(str str long)
@
stub _mbsnicmp_l
@
cdecl _mbsnicmp_l(str str long ptr)
@ stub _mbsnicoll(str str long)
@ stub _mbsnicoll_l
@ cdecl _mbsninc(str long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
49d3236d
...
...
@@ -812,7 +812,7 @@
@ cdecl _mbsnextc(str)
@ cdecl _mbsnextc_l(str ptr)
@ cdecl _mbsnicmp(str str long)
@
stub _mbsnicmp_l
@
cdecl _mbsnicmp_l(str str long ptr)
@ stub _mbsnicoll(str str long)
@ stub _mbsnicoll_l
@ cdecl _mbsninc(str long)
...
...
dlls/msvcrt/mbcs.c
View file @
49d3236d
...
...
@@ -1297,28 +1297,49 @@ int CDECL _mbsnbcmp(const unsigned char* str, const unsigned char* cmp, size_t l
*
* Compare two multibyte strings case insensitively to 'len' characters.
*/
int
CDECL
_mbsnicmp
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
,
size_t
len
)
int
CDECL
_mbsnicmp
_l
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
,
size_t
len
,
_locale_t
locale
)
{
/* FIXME: No tolower() for mb strings yet */
if
(
get_mbcinfo
()
->
ismbcodepage
)
{
unsigned
int
strc
,
cmpc
;
while
(
len
--
)
pthreadmbcinfo
mbcinfo
;
if
(
!
len
)
return
0
;
if
(
!
MSVCRT_CHECK_PMT
(
str
&&
cmp
))
return
_NLSCMPERROR
;
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
/* FIXME: No tolower() for mb strings yet */
if
(
mbcinfo
->
ismbcodepage
)
{
if
(
!*
str
)
return
*
cmp
?
-
1
:
0
;
if
(
!*
cmp
)
return
1
;
strc
=
_mbctolower
(
_mbsnextc
(
str
));
cmpc
=
_mbctolower
(
_mbsnextc
(
cmp
));
if
(
strc
!=
cmpc
)
return
strc
<
cmpc
?
-
1
:
1
;
str
+=
(
strc
>
255
)
?
2
:
1
;
cmp
+=
(
strc
>
255
)
?
2
:
1
;
/* Equal, use same increment */
unsigned
int
strc
,
cmpc
;
while
(
len
--
)
{
if
(
!*
str
)
return
*
cmp
?
-
1
:
0
;
if
(
!*
cmp
)
return
1
;
strc
=
_mbctolower_l
(
_mbsnextc_l
(
str
,
locale
),
locale
);
cmpc
=
_mbctolower_l
(
_mbsnextc_l
(
cmp
,
locale
),
locale
);
if
(
strc
!=
cmpc
)
return
strc
<
cmpc
?
-
1
:
1
;
str
+=
(
strc
>
255
)
?
2
:
1
;
cmp
+=
(
strc
>
255
)
?
2
:
1
;
/* Equal, use same increment */
}
return
0
;
/* Matched len chars */
}
return
0
;
/* Matched len chars */
}
return
u_strncasecmp
(
str
,
cmp
,
len
);
/* ASCII CP */
return
u_strncasecmp
(
str
,
cmp
,
len
);
/* ASCII CP */
}
/*********************************************************************
* _mbsnicmp(MSVCRT.@)
*
* Compare two multibyte strings case insensitively to 'len' characters.
*/
int
CDECL
_mbsnicmp
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
,
size_t
len
)
{
return
_mbsnicmp_l
(
str
,
cmp
,
len
,
NULL
);
}
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.spec
View file @
49d3236d
...
...
@@ -783,7 +783,7 @@
@ cdecl _mbsnextc(str)
@ cdecl _mbsnextc_l(str ptr)
@ cdecl _mbsnicmp(str str long)
# stub
_mbsnicmp_l(str str long ptr)
@ cdecl
_mbsnicmp_l(str str long ptr)
@ stub _mbsnicoll(str str long)
# stub _mbsnicoll_l(str str long ptr)
@ cdecl _mbsninc(str long)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
49d3236d
...
...
@@ -678,7 +678,7 @@
@ cdecl _mbsnextc(str)
@ cdecl _mbsnextc_l(str ptr)
@ cdecl _mbsnicmp(str str long)
@
stub _mbsnicmp_l
@
cdecl _mbsnicmp_l(str str long ptr)
@ stub _mbsnicoll(str str long)
@ stub _mbsnicoll_l
@ cdecl _mbsninc(str long)
...
...
@@ -1247,7 +1247,7 @@
@ cdecl _o__mbsnextc(str) _mbsnextc
@ cdecl _o__mbsnextc_l(str ptr) _mbsnextc_l
@ cdecl _o__mbsnicmp(str str long) _mbsnicmp
@
stub _o_
_mbsnicmp_l
@
cdecl _o__mbsnicmp_l(str str long ptr)
_mbsnicmp_l
@ stub _o__mbsnicoll
@ stub _o__mbsnicoll_l
@ cdecl _o__mbsninc(str long) _mbsninc
...
...
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