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
5ec92ada
Commit
5ec92ada
authored
Aug 06, 2000
by
Hidenori Takeshima
Committed by
Alexandre Julliard
Aug 06, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for calling ctype functions with Unicode characters.
parent
5c666848
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
ole2nls.c
ole/ole2nls.c
+12
-10
No files found.
ole/ole2nls.c
View file @
5ec92ada
...
...
@@ -1244,7 +1244,7 @@ BOOL WINAPI GetStringTypeExW(LCID locale,DWORD dwInfoType,LPCWSTR src,
INT
cchSrc
,
LPWORD
chartype
)
{
int
i
;
UINT
ch
;
if
(
cchSrc
==-
1
)
cchSrc
=
lstrlenW
(
src
)
+
1
;
...
...
@@ -1260,16 +1260,18 @@ BOOL WINAPI GetStringTypeExW(LCID locale,DWORD dwInfoType,LPCWSTR src,
}
for
(
i
=
0
;
i
<
cchSrc
;
i
++
)
{
chartype
[
i
]
=
0
;
if
(
isdigit
(
src
[
i
]))
chartype
[
i
]
|=
C1_DIGIT
;
if
(
isalpha
(
src
[
i
]))
chartype
[
i
]
|=
C1_ALPHA
;
if
(
islower
(
src
[
i
]))
chartype
[
i
]
|=
C1_LOWER
;
if
(
isupper
(
src
[
i
]))
chartype
[
i
]
|=
C1_UPPER
;
if
(
isspace
(
src
[
i
]))
chartype
[
i
]
|=
C1_SPACE
;
if
(
ispunct
(
src
[
i
]))
chartype
[
i
]
|=
C1_PUNCT
;
if
(
iscntrl
(
src
[
i
]))
chartype
[
i
]
|=
C1_CNTRL
;
ch
=
src
[
i
];
if
(
ch
>=
(
UINT
)
0x100
)
continue
;
if
(
isdigit
(
ch
))
chartype
[
i
]
|=
C1_DIGIT
;
if
(
isalpha
(
ch
))
chartype
[
i
]
|=
C1_ALPHA
;
if
(
islower
(
ch
))
chartype
[
i
]
|=
C1_LOWER
;
if
(
isupper
(
ch
))
chartype
[
i
]
|=
C1_UPPER
;
if
(
isspace
(
ch
))
chartype
[
i
]
|=
C1_SPACE
;
if
(
ispunct
(
ch
))
chartype
[
i
]
|=
C1_PUNCT
;
if
(
iscntrl
(
ch
))
chartype
[
i
]
|=
C1_CNTRL
;
/* FIXME: isblank() is a GNU extension */
/* if (isblank(
src[i]
)) chartype[i]|=C1_BLANK; */
if
((
src
[
i
]
==
' '
)
||
(
src
[
i
]
==
'\t'
))
chartype
[
i
]
|=
C1_BLANK
;
/* if (isblank(
ch
)) chartype[i]|=C1_BLANK; */
if
((
ch
==
' '
)
||
(
ch
==
'\t'
))
chartype
[
i
]
|=
C1_BLANK
;
/* C1_XDIGIT */
}
return
TRUE
;
...
...
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