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
53be932b
Commit
53be932b
authored
Nov 03, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Win32 APIs for string comparison.
parent
bdcdd37a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
string.c
dlls/comctl32/string.c
+13
-8
No files found.
dlls/comctl32/string.c
View file @
53be932b
...
...
@@ -40,6 +40,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
commctrl
);
INT
WINAPI
StrCmpNA
(
LPCSTR
,
LPCSTR
,
INT
);
INT
WINAPI
StrCmpNW
(
LPCWSTR
,
LPCWSTR
,
INT
);
INT
WINAPI
StrCmpNIA
(
LPCSTR
,
LPCSTR
,
INT
);
INT
WINAPI
StrCmpNIW
(
LPCWSTR
,
LPCWSTR
,
INT
);
/*************************************************************************
* COMCTL32_ChrCmpHelperA
*
...
...
@@ -180,7 +185,7 @@ LPSTR WINAPI StrChrA(LPCSTR lpszStr, WORD ch)
* Internal implementation of StrStrA/StrStrIA
*/
static
LPSTR
COMCTL32_StrStrHelperA
(
LPCSTR
lpszStr
,
LPCSTR
lpszSearch
,
int
(
*
pStrCmpFn
)(
LPCSTR
,
LPCSTR
,
size_t
))
INT
(
WINAPI
*
pStrCmpFn
)(
LPCSTR
,
LPCSTR
,
INT
))
{
size_t
iLen
;
...
...
@@ -204,7 +209,7 @@ static LPSTR COMCTL32_StrStrHelperA(LPCSTR lpszStr, LPCSTR lpszSearch,
* Internal implementation of StrStrW/StrStrIW
*/
static
LPWSTR
COMCTL32_StrStrHelperW
(
LPCWSTR
lpszStr
,
LPCWSTR
lpszSearch
,
int
(
*
pStrCmpFn
)(
LPCWSTR
,
LPCWSTR
,
int
))
INT
(
WINAPI
*
pStrCmpFn
)(
LPCWSTR
,
LPCWSTR
,
INT
))
{
int
iLen
;
...
...
@@ -238,7 +243,7 @@ LPSTR WINAPI StrStrIA(LPCSTR lpszStr, LPCSTR lpszSearch)
{
TRACE
(
"(%s,%s)
\n
"
,
debugstr_a
(
lpszStr
),
debugstr_a
(
lpszSearch
));
return
COMCTL32_StrStrHelperA
(
lpszStr
,
lpszSearch
,
strncasecmp
);
return
COMCTL32_StrStrHelperA
(
lpszStr
,
lpszSearch
,
StrCmpNIA
);
}
/**************************************************************************
...
...
@@ -267,7 +272,7 @@ LPWSTR WINAPI StrStrIW(LPCWSTR lpszStr, LPCWSTR lpszSearch)
{
TRACE
(
"(%s,%s)
\n
"
,
debugstr_w
(
lpszStr
),
debugstr_w
(
lpszSearch
));
return
COMCTL32_StrStrHelperW
(
lpszStr
,
lpszSearch
,
strncmpi
W
);
return
COMCTL32_StrStrHelperW
(
lpszStr
,
lpszSearch
,
StrCmpNI
W
);
}
/**************************************************************************
...
...
@@ -381,7 +386,7 @@ INT WINAPI StrCmpNA(LPCSTR lpszStr, LPCSTR lpszComp, INT iLen)
* An integer less than, equal to or greater than 0, indicating that
* lpszStr is less than, the same, or greater than lpszComp.
*/
int
WINAPI
StrCmpNIA
(
LPCSTR
lpszStr
,
LPCSTR
lpszComp
,
int
iLen
)
INT
WINAPI
StrCmpNIA
(
LPCSTR
lpszStr
,
LPCSTR
lpszComp
,
INT
iLen
)
{
INT
iRet
;
...
...
@@ -396,7 +401,7 @@ int WINAPI StrCmpNIA(LPCSTR lpszStr, LPCSTR lpszComp, int iLen)
*
* See StrCmpNIA.
*/
INT
WINAPI
StrCmpNIW
(
LPCWSTR
lpszStr
,
LPCWSTR
lpszComp
,
int
iLen
)
INT
WINAPI
StrCmpNIW
(
LPCWSTR
lpszStr
,
LPCWSTR
lpszComp
,
INT
iLen
)
{
INT
iRet
;
...
...
@@ -504,7 +509,7 @@ LPSTR WINAPI StrStrA(LPCSTR lpszStr, LPCSTR lpszSearch)
{
TRACE
(
"(%s,%s)
\n
"
,
debugstr_a
(
lpszStr
),
debugstr_a
(
lpszSearch
));
return
COMCTL32_StrStrHelperA
(
lpszStr
,
lpszSearch
,
strncmp
);
return
COMCTL32_StrStrHelperA
(
lpszStr
,
lpszSearch
,
StrCmpNA
);
}
/**************************************************************************
...
...
@@ -516,7 +521,7 @@ LPWSTR WINAPI StrStrW(LPCWSTR lpszStr, LPCWSTR lpszSearch)
{
TRACE
(
"(%s,%s)
\n
"
,
debugstr_w
(
lpszStr
),
debugstr_w
(
lpszSearch
));
return
COMCTL32_StrStrHelperW
(
lpszStr
,
lpszSearch
,
strncmp
W
);
return
COMCTL32_StrStrHelperW
(
lpszStr
,
lpszSearch
,
StrCmpN
W
);
}
/*************************************************************************
...
...
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