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
d0578c08
Commit
d0578c08
authored
Apr 14, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Map the new detailed direction information back to the Windows constants.
parent
dc0e712d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
locale.c
dlls/kernel32/locale.c
+21
-1
No files found.
dlls/kernel32/locale.c
View file @
d0578c08
...
...
@@ -2261,6 +2261,26 @@ DWORD WINAPI VerLanguageNameW( DWORD wLang, LPWSTR szLang, DWORD nSize )
*/
BOOL
WINAPI
GetStringTypeW
(
DWORD
type
,
LPCWSTR
src
,
INT
count
,
LPWORD
chartype
)
{
static
const
unsigned
char
type2_map
[
16
]
=
{
C2_NOTAPPLICABLE
,
/* unassigned */
C2_LEFTTORIGHT
,
/* L */
C2_RIGHTTOLEFT
,
/* R */
C2_EUROPENUMBER
,
/* EN */
C2_EUROPESEPARATOR
,
/* ES */
C2_EUROPETERMINATOR
,
/* ET */
C2_ARABICNUMBER
,
/* AN */
C2_COMMONSEPARATOR
,
/* CS */
C2_BLOCKSEPARATOR
,
/* B */
C2_SEGMENTSEPARATOR
,
/* S */
C2_WHITESPACE
,
/* WS */
C2_OTHERNEUTRAL
,
/* ON */
C2_RIGHTTOLEFT
,
/* AL */
C2_NOTAPPLICABLE
,
/* NSM */
C2_NOTAPPLICABLE
,
/* BN */
C2_OTHERNEUTRAL
/* LRE, LRO, RLE, RLO, PDF */
};
if
(
count
==
-
1
)
count
=
strlenW
(
src
)
+
1
;
switch
(
type
)
{
...
...
@@ -2268,7 +2288,7 @@ BOOL WINAPI GetStringTypeW( DWORD type, LPCWSTR src, INT count, LPWORD chartype
while
(
count
--
)
*
chartype
++
=
get_char_typeW
(
*
src
++
)
&
0xfff
;
break
;
case
CT_CTYPE2
:
while
(
count
--
)
*
chartype
++
=
get_char_typeW
(
*
src
++
)
>>
12
;
while
(
count
--
)
*
chartype
++
=
type2_map
[
get_char_typeW
(
*
src
++
)
>>
12
]
;
break
;
case
CT_CTYPE3
:
{
...
...
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