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
7ccf8bc8
Commit
7ccf8bc8
authored
Apr 02, 2002
by
François Gouget
Committed by
Alexandre Julliard
Apr 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented _mbsnbicmp.
parent
79313d37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
1 deletion
+46
-1
mbcs.c
dlls/msvcrt/mbcs.c
+45
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcrt/mbcs.c
View file @
7ccf8bc8
...
...
@@ -412,6 +412,51 @@ int _mbsnicmp(const unsigned char* str, const unsigned char* cmp, MSVCRT_size_t
}
/*********************************************************************
* _mbsnbicmp(MSVCRT.@)
*/
int
_mbsnbicmp
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
,
MSVCRT_size_t
len
)
{
if
(
!
len
)
return
0
;
if
(
MSVCRT___mb_cur_max
>
1
)
{
unsigned
int
strc
,
cmpc
;
while
(
len
)
{
int
clen
;
if
(
!*
str
)
return
*
cmp
?
-
1
:
0
;
if
(
!*
cmp
)
return
1
;
if
(
MSVCRT_isleadbyte
(
*
str
))
{
strc
=
(
len
>=
2
)
?
_mbsnextc
(
str
)
:
0
;
clen
=
2
;
}
else
{
strc
=*
str
;
clen
=
1
;
}
if
(
MSVCRT_isleadbyte
(
*
cmp
))
cmpc
=
(
len
>=
2
)
?
_mbsnextc
(
cmp
)
:
0
;
else
cmpc
=*
str
;
strc
=
_mbctolower
(
strc
);
cmpc
=
_mbctolower
(
cmpc
);
if
(
strc
!=
cmpc
)
return
strc
<
cmpc
?
-
1
:
1
;
len
-=
clen
;
str
+=
clen
;
cmp
+=
clen
;
}
return
0
;
/* Matched len bytes */
FIXME
(
"%s %s %d
\n
"
,
str
,
cmp
,
len
);
}
return
strncmp
(
str
,
cmp
,
len
);
}
/*********************************************************************
* _mbschr(MSVCRT.@)
*
* Find a multibyte character in a multibyte string.
...
...
dlls/msvcrt/msvcrt.spec
View file @
7ccf8bc8
...
...
@@ -370,7 +370,7 @@ debug_channels (msvcrt)
@ cdecl _mbsnbcnt(ptr long) _mbsnbcnt
@ stub _mbsnbcoll #(str str long)
@ cdecl _mbsnbcpy(ptr str long) _mbsnbcpy
@
stub _mbsnbicmp #(str str long)
@
cdecl _mbsnbicmp(str str long) _mbsnbicmp
@ stub _mbsnbicoll #(str str long)
@ stub _mbsnbset #(str long long)
@ cdecl _mbsncat(str str long) _mbsncat
...
...
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