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
f310fdf3
Commit
f310fdf3
authored
Feb 20, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed a couple of unneeded helper functions.
parent
a9d4b071
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
49 deletions
+25
-49
string.c
dlls/comctl32/string.c
+25
-49
No files found.
dlls/comctl32/string.c
View file @
f310fdf3
...
...
@@ -408,17 +408,27 @@ INT WINAPI StrCmpNW(LPCWSTR lpszStr, LPCWSTR lpszComp, INT iLen)
return
iRet
==
CSTR_LESS_THAN
?
-
1
:
iRet
==
CSTR_GREATER_THAN
?
1
:
0
;
}
/*************************************************************************
* COMCTL32_StrRChrHelperA
/**************************************************************************
* StrRChrA [COMCTL32.351]
*
* Find the last occurence of a character in string.
*
* Internal implementation of StrRChrA/StrRChrIA.
* PARAMS
* lpszStr [I] String to search in
* lpszEnd [I] Place to end search, or NULL to search until the end of lpszStr
* ch [I] Character to search for.
*
* RETURNS
* Success: A pointer to the last occurrence of ch in lpszStr before lpszEnd,
* or NULL if not found.
* Failure: NULL, if any arguments are invalid.
*/
static
LPSTR
COMCTL32_StrRChrHelperA
(
LPCSTR
lpszStr
,
LPCSTR
lpszEnd
,
WORD
ch
,
BOOL
(
WINAPI
*
pChrCmpFn
)(
WORD
,
WORD
))
LPSTR
WINAPI
StrRChrA
(
LPCSTR
lpszStr
,
LPCSTR
lpszEnd
,
WORD
ch
)
{
LPCSTR
lpszRet
=
NULL
;
TRACE
(
"(%s,%s,%x)
\n
"
,
debugstr_a
(
lpszStr
),
debugstr_a
(
lpszEnd
),
ch
);
if
(
lpszStr
)
{
WORD
ch2
;
...
...
@@ -430,7 +440,7 @@ static LPSTR COMCTL32_StrRChrHelperA(LPCSTR lpszStr,
{
ch2
=
IsDBCSLeadByte
(
*
lpszStr
)
?
*
lpszStr
<<
8
|
lpszStr
[
1
]
:
*
lpszStr
;
if
(
!
pChrCmpFn
(
ch
,
ch2
))
if
(
!
COMCTL32_ChrCmpA
(
ch
,
ch2
))
lpszRet
=
lpszStr
;
lpszStr
=
CharNextA
(
lpszStr
);
}
...
...
@@ -438,17 +448,18 @@ static LPSTR COMCTL32_StrRChrHelperA(LPCSTR lpszStr,
return
(
LPSTR
)
lpszRet
;
}
/*************************************************************************
* COMCTL32_StrRChrHelperW
/**************************************************************************
* StrRChrW [COMCTL32.359]
*
*
Internal implementation of StrRChrW/StrRChrIW
.
*
See StrRChrA
.
*/
static
LPWSTR
COMCTL32_StrRChrHelperW
(
LPCWSTR
lpszStr
,
LPCWSTR
lpszEnd
,
WCHAR
ch
,
BOOL
(
WINAPI
*
pChrCmpFn
)(
WCHAR
,
WCHAR
))
LPWSTR
WINAPI
StrRChrW
(
LPCWSTR
lpszStr
,
LPCWSTR
lpszEnd
,
WORD
ch
)
{
LPCWSTR
lpszRet
=
NULL
;
TRACE
(
"(%s,%s,%x)
\n
"
,
debugstr_w
(
lpszStr
),
debugstr_w
(
lpszEnd
),
ch
);
if
(
lpszStr
)
{
if
(
!
lpszEnd
)
...
...
@@ -456,7 +467,7 @@ static LPWSTR COMCTL32_StrRChrHelperW(LPCWSTR lpszStr,
while
(
*
lpszStr
&&
lpszStr
<=
lpszEnd
)
{
if
(
!
pChrCmpFn
(
ch
,
*
lpszStr
))
if
(
!
COMCTL32_ChrCmpW
(
ch
,
*
lpszStr
))
lpszRet
=
lpszStr
;
lpszStr
=
CharNextW
(
lpszStr
);
}
...
...
@@ -465,41 +476,6 @@ static LPWSTR COMCTL32_StrRChrHelperW(LPCWSTR lpszStr,
}
/**************************************************************************
* StrRChrA [COMCTL32.351]
*
* Find the last occurence of a character in string.
*
* PARAMS
* lpszStr [I] String to search in
* lpszEnd [I] Place to end search, or NULL to search until the end of lpszStr
* ch [I] Character to search for.
*
* RETURNS
* Success: A pointer to the last occurrence of ch in lpszStr before lpszEnd,
* or NULL if not found.
* Failure: NULL, if any arguments are invalid.
*/
LPSTR
WINAPI
StrRChrA
(
LPCSTR
lpszStr
,
LPCSTR
lpszEnd
,
WORD
ch
)
{
TRACE
(
"(%s,%s,%x)
\n
"
,
debugstr_a
(
lpszStr
),
debugstr_a
(
lpszEnd
),
ch
);
return
COMCTL32_StrRChrHelperA
(
lpszStr
,
lpszEnd
,
ch
,
COMCTL32_ChrCmpA
);
}
/**************************************************************************
* StrRChrW [COMCTL32.359]
*
* See StrRChrA.
*/
LPWSTR
WINAPI
StrRChrW
(
LPCWSTR
lpszStr
,
LPCWSTR
lpszEnd
,
WORD
ch
)
{
TRACE
(
"(%s,%s,%x)
\n
"
,
debugstr_w
(
lpszStr
),
debugstr_w
(
lpszEnd
),
ch
);
return
COMCTL32_StrRChrHelperW
(
lpszStr
,
lpszEnd
,
ch
,
COMCTL32_ChrCmpW
);
}
/**************************************************************************
* StrStrA [COMCTL32.354]
*
* Find a substring within a string.
...
...
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