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
7463af6b
Commit
7463af6b
authored
Mar 20, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added sprintfW and vsprintfW.
parent
19e050eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
unicode.h
include/wine/unicode.h
+4
-2
string.c
unicode/string.c
+16
-2
wine_unicode.def
unicode/wine_unicode.def
+2
-0
No files found.
include/wine/unicode.h
View file @
7463af6b
...
...
@@ -76,8 +76,10 @@ extern int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n );
extern
WCHAR
*
strstrW
(
const
WCHAR
*
str
,
const
WCHAR
*
sub
);
extern
long
int
strtolW
(
const
WCHAR
*
nptr
,
WCHAR
**
endptr
,
int
base
);
extern
unsigned
long
int
strtoulW
(
const
WCHAR
*
nptr
,
WCHAR
**
endptr
,
int
base
);
extern
int
snprintfW
(
WCHAR
*
str
,
unsigned
int
len
,
const
WCHAR
*
format
,
...
);
extern
int
vsnprintfW
(
WCHAR
*
str
,
unsigned
int
len
,
const
WCHAR
*
format
,
va_list
valist
);
extern
int
sprintfW
(
WCHAR
*
str
,
const
WCHAR
*
format
,
...
);
extern
int
snprintfW
(
WCHAR
*
str
,
size_t
len
,
const
WCHAR
*
format
,
...
);
extern
int
vsprintfW
(
WCHAR
*
str
,
const
WCHAR
*
format
,
va_list
valist
);
extern
int
vsnprintfW
(
WCHAR
*
str
,
size_t
len
,
const
WCHAR
*
format
,
va_list
valist
);
static
inline
int
is_dbcs_leadbyte
(
const
union
cptable
*
table
,
unsigned
char
ch
)
{
...
...
unicode/string.c
View file @
7463af6b
...
...
@@ -289,7 +289,7 @@ noconv:
}
int
vsnprintfW
(
WCHAR
*
str
,
unsigned
in
t
len
,
const
WCHAR
*
format
,
va_list
valist
)
int
vsnprintfW
(
WCHAR
*
str
,
size_
t
len
,
const
WCHAR
*
format
,
va_list
valist
)
{
unsigned
int
written
=
0
;
const
WCHAR
*
iter
=
format
;
...
...
@@ -407,8 +407,12 @@ int vsnprintfW(WCHAR *str, unsigned int len, const WCHAR *format, va_list valist
return
(
int
)
written
;
}
int
vsprintfW
(
WCHAR
*
str
,
const
WCHAR
*
format
,
va_list
valist
)
{
return
vsnprintfW
(
str
,
INT_MAX
,
format
,
valist
);
}
int
snprintfW
(
WCHAR
*
str
,
unsigned
in
t
len
,
const
WCHAR
*
format
,
...)
int
snprintfW
(
WCHAR
*
str
,
size_
t
len
,
const
WCHAR
*
format
,
...)
{
int
retval
;
va_list
valist
;
...
...
@@ -417,3 +421,13 @@ int snprintfW(WCHAR *str, unsigned int len, const WCHAR *format, ...)
va_end
(
valist
);
return
retval
;
}
int
sprintfW
(
WCHAR
*
str
,
const
WCHAR
*
format
,
...)
{
int
retval
;
va_list
valist
;
va_start
(
valist
,
format
);
retval
=
vsnprintfW
(
str
,
INT_MAX
,
format
,
valist
);
va_end
(
valist
);
return
retval
;
}
unicode/wine_unicode.def
View file @
7463af6b
...
...
@@ -6,6 +6,7 @@ EXPORTS
cp_mbstowcs
cp_wcstombs
snprintfW
sprintfW
strcmpiW
strncmpiW
strstrW
...
...
@@ -14,4 +15,5 @@ EXPORTS
utf8_mbstowcs
utf8_wcstombs
vsnprintfW
vsprintfW
wctype_table
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