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
4b0809e8
Commit
4b0809e8
authored
Jul 12, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the unicode.h functions where possible.
parent
27867e25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
32 deletions
+4
-32
wcstring.c
dlls/ntdll/wcstring.c
+4
-32
No files found.
dlls/ntdll/wcstring.c
View file @
4b0809e8
...
...
@@ -132,15 +132,7 @@ LPWSTR __cdecl NTDLL_wcscpy( LPWSTR dst, LPCWSTR src )
*/
INT
__cdecl
NTDLL_wcscspn
(
LPCWSTR
str
,
LPCWSTR
reject
)
{
LPCWSTR
start
=
str
;
while
(
*
str
)
{
LPCWSTR
p
=
reject
;
while
(
*
p
&&
(
*
p
!=
*
str
))
p
++
;
if
(
*
p
)
break
;
str
++
;
}
return
str
-
start
;
return
strcspnW
(
str
,
reject
);
}
...
...
@@ -192,13 +184,7 @@ LPWSTR __cdecl NTDLL_wcsncpy( LPWSTR s1, LPCWSTR s2, INT n )
*/
LPWSTR
__cdecl
NTDLL_wcspbrk
(
LPCWSTR
str
,
LPCWSTR
accept
)
{
LPCWSTR
p
;
while
(
*
str
)
{
for
(
p
=
accept
;
*
p
;
p
++
)
if
(
*
p
==
*
str
)
return
(
LPWSTR
)
str
;
str
++
;
}
return
NULL
;
return
strpbrkW
(
str
,
accept
);
}
...
...
@@ -207,13 +193,7 @@ LPWSTR __cdecl NTDLL_wcspbrk( LPCWSTR str, LPCWSTR accept )
*/
LPWSTR
__cdecl
NTDLL_wcsrchr
(
LPWSTR
str
,
WCHAR
ch
)
{
LPWSTR
last
=
NULL
;
while
(
*
str
)
{
if
(
*
str
==
ch
)
last
=
str
;
str
++
;
}
return
last
;
return
strrchrW
(
str
,
ch
);
}
...
...
@@ -222,15 +202,7 @@ LPWSTR __cdecl NTDLL_wcsrchr( LPWSTR str, WCHAR ch )
*/
INT
__cdecl
NTDLL_wcsspn
(
LPCWSTR
str
,
LPCWSTR
accept
)
{
LPCWSTR
start
=
str
;
while
(
*
str
)
{
LPCWSTR
p
=
accept
;
while
(
*
p
&&
(
*
p
!=
*
str
))
p
++
;
if
(
!*
p
)
break
;
str
++
;
}
return
str
-
start
;
return
strspnW
(
str
,
accept
);
}
...
...
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