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
af39862f
Commit
af39862f
authored
Jan 31, 2003
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 31, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented mbsicoll (without locale handling).
parent
c1a4cead
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
mbcs.c
dlls/msvcrt/mbcs.c
+26
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcrt/mbcs.c
View file @
af39862f
...
...
@@ -307,6 +307,32 @@ int _mbscmp(const unsigned char* str, const unsigned char* cmp)
}
/*********************************************************************
* _mbsicoll(MSVCRT.@)
* FIXME: handle locales.
*/
int
_mbsicoll
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
)
{
if
(
MSVCRT___mb_cur_max
>
1
)
{
unsigned
int
strc
,
cmpc
;
do
{
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 */
}
while
(
1
);
}
return
strcasecmp
(
str
,
cmp
);
/* ASCII CP */
}
/*********************************************************************
* _mbsicmp(MSVCRT.@)
*/
int
_mbsicmp
(
const
unsigned
char
*
str
,
const
unsigned
char
*
cmp
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
af39862f
...
...
@@ -355,7 +355,7 @@
@ cdecl _mbsdec(ptr ptr) _mbsdec
@ cdecl _mbsdup(str) _strdup
@ cdecl _mbsicmp(str str) _mbsicmp
@
stub _mbsicoll #(str str)
@
cdecl _mbsicoll(str str) _mbsicoll
@ cdecl _mbsinc(str) _mbsinc
@ cdecl _mbslen(str) _mbslen
@ cdecl _mbslwr(str) _mbslwr
...
...
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