Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
2378305c
Commit
2378305c
authored
23 years ago
by
Marcus Meissner
Committed by
Alexandre Julliard
23 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implemented mbsnbcnt, added stubs for _Gettnames and __lc_collate_cp.
parent
91fc3572
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/msvcrt/mbcs.c
+25
-0
25 additions, 0 deletions
dlls/msvcrt/mbcs.c
dlls/msvcrt/msvcrt.spec
+3
-1
3 additions, 1 deletion
dlls/msvcrt/msvcrt.spec
with
28 additions
and
1 deletion
dlls/msvcrt/mbcs.c
+
25
−
0
View file @
2378305c
...
...
@@ -446,6 +446,7 @@ unsigned char* _mbschr(const unsigned char* str, unsigned int c)
/*********************************************************************
* _mbsnccnt(MSVCRT.@)
* 'c' is for 'character'.
*/
unsigned
int
_mbsnccnt
(
const
unsigned
char
*
str
,
unsigned
int
len
)
{
...
...
@@ -468,6 +469,30 @@ unsigned int _mbsnccnt(const unsigned char *str, unsigned int len)
return
min
(
strlen
(
str
),
len
);
/* ASCII CP */
}
/*********************************************************************
* _mbsnbcnt(MSVCRT.@)
* 'b' is for byte count.
*/
unsigned
int
_mbsnbcnt
(
const
unsigned
char
*
str
,
unsigned
int
len
)
{
const
unsigned
char
*
xstr
=
str
;
if
(
MSVCRT___mb_cur_max
>
1
)
{
while
(
*
xstr
&&
len
--
>
0
)
{
if
(
MSVCRT_isleadbyte
(
*
xstr
))
{
xstr
++
;
len
--
;
}
xstr
++
;
}
return
xstr
-
str
;
}
return
min
(
strlen
(
str
),
len
);
/* ASCII CP */
}
/*********************************************************************
* _mbsncat(MSVCRT.@)
...
...
This diff is collapsed.
Click to expand it.
dlls/msvcrt/msvcrt.spec
+
3
−
1
View file @
2378305c
...
...
@@ -367,7 +367,7 @@ debug_channels (msvcrt)
@ cdecl _mbslwr(str) _mbslwr
@ stub _mbsnbcat #(str str long)
@ cdecl _mbsnbcmp(str str long) _mbsnbcmp
@
stub
_mbsnbcnt
#
(ptr long)
@
cdecl
_mbsnbcnt(ptr long)
_mbsnbcnt
@ stub _mbsnbcoll #(str str long)
@ cdecl _mbsnbcpy(ptr str long) _mbsnbcpy
@ stub _mbsnbicmp #(str str long)
...
...
@@ -768,3 +768,5 @@ debug_channels (msvcrt)
@ cdecl wctomb(ptr long) MSVCRT_wctomb
@ varargs wprintf(wstr) MSVCRT_wprintf
@ stub wscanf #(wstr) varargs
@ stub _Gettnames
@ stub __lc_collate_cp
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment