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
2378305c
Commit
2378305c
authored
Sep 07, 2001
by
Marcus Meissner
Committed by
Alexandre Julliard
Sep 07, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented mbsnbcnt, added stubs for _Gettnames and __lc_collate_cp.
parent
91fc3572
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
mbcs.c
dlls/msvcrt/mbcs.c
+25
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+3
-1
No files found.
dlls/msvcrt/mbcs.c
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.@)
...
...
dlls/msvcrt/msvcrt.spec
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
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