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
eaaf157f
Commit
eaaf157f
authored
May 26, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
May 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Zero Width Joiners and Non-Joiners should, like spaces, not split runs.
parent
1857a059
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
usp10.c
dlls/usp10/usp10.c
+5
-3
No files found.
dlls/usp10/usp10.c
View file @
eaaf157f
...
...
@@ -625,6 +625,8 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
{
#define Numeric_space 0x0020
#define ZWNJ 0x200C
#define ZWJ 0x200D
int
cnt
=
0
,
index
=
0
,
str
=
0
;
int
New_Script
=
SCRIPT_UNDEFINED
;
...
...
@@ -665,7 +667,7 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
}
}
while
(
pwcInChars
[
cnt
]
==
Numeric_space
&&
cnt
<
cInChars
)
while
(
(
pwcInChars
[
cnt
]
==
Numeric_space
||
pwcInChars
[
cnt
]
==
ZWJ
||
pwcInChars
[
cnt
]
==
ZWNJ
)
&&
cnt
<
cInChars
)
cnt
++
;
if
(
cnt
==
cInChars
)
/* All Spaces */
...
...
@@ -704,12 +706,12 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
if
(
levels
&&
(
levels
[
cnt
]
==
pItems
[
index
].
a
.
s
.
uBidiLevel
&&
(
!
strength
||
(
strength
[
cnt
]
==
0
||
strength
[
cnt
]
==
str
))))
continue
;
if
(
pwcInChars
[
cnt
]
!=
Numeric_space
)
if
(
pwcInChars
[
cnt
]
!=
Numeric_space
&&
pwcInChars
[
cnt
]
!=
ZWJ
&&
pwcInChars
[
cnt
]
!=
ZWNJ
)
New_Script
=
get_char_script
(
pwcInChars
[
cnt
]);
else
if
(
levels
)
{
int
j
=
1
;
while
(
cnt
+
j
<
cInChars
-
1
&&
pwcInChars
[
cnt
+
j
]
==
Numeric_space
)
while
(
cnt
+
j
<
cInChars
-
1
&&
(
pwcInChars
[
cnt
+
j
]
==
Numeric_space
||
pwcInChars
[
cnt
+
j
]
==
ZWJ
||
pwcInChars
[
cnt
+
j
]
==
ZWNJ
)
)
j
++
;
New_Script
=
get_char_script
(
pwcInChars
[
cnt
+
j
]);
}
...
...
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