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
8c4ef674
Commit
8c4ef674
authored
Oct 15, 2003
by
Jon Griffiths
Committed by
Alexandre Julliard
Oct 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented FoldStringW.
parent
bf1df182
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
3 deletions
+64
-3
kernel32.spec
dlls/kernel/kernel32.spec
+2
-2
locale.c
dlls/kernel/locale.c
+62
-1
No files found.
dlls/kernel/kernel32.spec
View file @
8c4ef674
...
...
@@ -322,8 +322,8 @@
@ stdcall FlushFileBuffers(long)
@ stdcall FlushInstructionCache(long long long)
@ stdcall FlushViewOfFile(ptr long)
@ st
ub FoldStringA
@ st
ub FoldStringW
@ st
dcall FoldStringA(long str long ptr long)
@ st
dcall FoldStringW(long wstr long ptr long)
@ stdcall FormatMessageA(long ptr long long ptr long ptr)
@ stdcall FormatMessageW(long ptr long long ptr long ptr)
@ stdcall FreeConsole()
...
...
dlls/kernel/locale.c
View file @
8c4ef674
...
...
@@ -1487,7 +1487,7 @@ BOOL WINAPI SetThreadLocale( LCID lcid )
* not SUBLANG_NEUTRAL.
* GetSystemDefaultLCID(), if lcid == LOCALE_SYSTEM_DEFAULT.
* GetUserDefaultLCID(), if lcid == LOCALE_USER_DEFAULT or LOCALE_NEUTRAL.
* Otherwise, lcid with sublanguage ch
e
anged to SUBLANG_DEFAULT.
* Otherwise, lcid with sublanguage changed to SUBLANG_DEFAULT.
*/
LCID
WINAPI
ConvertDefaultLocale
(
LCID
lcid
)
{
...
...
@@ -1925,6 +1925,67 @@ map_string_exit:
return
ret
;
}
/*************************************************************************
* FoldStringA (KERNEL32.@)
*
* Map characters in a string.
*
* PARAMS
* dwFlags [I] Flags controlling chars to map (MAP_ constants from "winnls.h")
* src [I] String to map
* srclen [I] Length of src, or -1 if src is NUL terminated
* dst [O] Destination for mapped string
* dstlen [I] Length of dst, or 0 to find the required length for the mapped string
*
* RETURNS
* Success: The length of the string written to dst, including the terminating NUL. If
* dstlen is 0, the value returned is the same, but nothing is written to dst,
* and dst may be NULL.
* Failure: 0. Use GetLastError() to determine the cause.
*/
INT
WINAPI
FoldStringA
(
DWORD
dwFlags
,
LPCSTR
src
,
INT
srclen
,
LPSTR
dst
,
INT
dstlen
)
{
FIXME
(
"not implemented
\n
"
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
0
;
}
/*************************************************************************
* FoldStringW (KERNEL32.@)
*
* See FoldStringA.
*/
INT
WINAPI
FoldStringW
(
DWORD
dwFlags
,
LPCWSTR
src
,
INT
srclen
,
LPWSTR
dst
,
INT
dstlen
)
{
int
ret
;
switch
(
dwFlags
&
(
MAP_COMPOSITE
|
MAP_PRECOMPOSED
|
MAP_EXPAND_LIGATURES
))
{
case
0
:
if
(
dwFlags
)
break
;
/* Fall through for dwFlags == 0 */
case
MAP_PRECOMPOSED
|
MAP_COMPOSITE
:
case
MAP_PRECOMPOSED
|
MAP_EXPAND_LIGATURES
:
case
MAP_COMPOSITE
|
MAP_EXPAND_LIGATURES
:
SetLastError
(
ERROR_INVALID_FLAGS
);
return
0
;
}
if
(
!
src
||
!
srclen
||
dstlen
<
0
||
(
dstlen
&&
!
dst
)
||
src
==
dst
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
0
;
}
ret
=
wine_fold_string
(
dwFlags
,
src
,
srclen
,
dst
,
dstlen
);
if
(
!
ret
)
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
return
ret
;
}
/******************************************************************************
* CompareStringW (KERNEL32.@)
*/
...
...
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