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
442c253a
Commit
442c253a
authored
Aug 24, 2005
by
Vitaly Lipatov
Committed by
Alexandre Julliard
Aug 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missed _mbscoll function.
parent
9306cc52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
mbcs.c
dlls/msvcrt/mbcs.c
+28
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcrt/mbcs.c
View file @
442c253a
...
...
@@ -408,6 +408,34 @@ int _mbsicoll(const unsigned char* str, const unsigned char* cmp)
return
u_strcasecmp
(
str
,
cmp
);
/* ASCII CP */
}
/*********************************************************************
* _mbscoll(MSVCRT.@)
* Performs a case-sensitive comparison according to the current code page
* RETURN
* _NLSCMPERROR if error
* FIXME: handle locales.
*/
int
_mbscoll
(
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
=
_mbsnextc
(
str
);
cmpc
=
_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
u_strcmp
(
str
,
cmp
);
/* ASCII CP */
}
/*********************************************************************
* _mbsicmp(MSVCRT.@)
...
...
dlls/msvcrt/msvcrt.spec
View file @
442c253a
...
...
@@ -349,7 +349,7 @@
@ cdecl _mbscat(str str) strcat
@ cdecl _mbschr(str long)
@ cdecl _mbscmp(str str)
@
stub _mbscoll #
(str str)
@
cdecl _mbscoll
(str str)
@ cdecl _mbscpy(ptr str) strcpy
@ cdecl _mbscspn (str str)
@ cdecl _mbsdec(ptr ptr)
...
...
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