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
aaa5921f
Commit
aaa5921f
authored
Jan 25, 2005
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 25, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
StrIsIntlEqual and IntlStrEqWorker may be absent.
parent
04f6346a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
8 deletions
+30
-8
string.c
dlls/shlwapi/tests/string.c
+30
-8
No files found.
dlls/shlwapi/tests/string.c
View file @
aaa5921f
...
...
@@ -39,6 +39,10 @@ static LPWSTR (WINAPI *pStrCpyNXW)(LPWSTR,LPCWSTR,int);
static
HRESULT
(
WINAPI
*
pStrRetToBSTR
)(
STRRET
*
,
void
*
,
BSTR
*
);
static
DWORD
(
WINAPI
*
pSHAnsiToAnsi
)(
LPCSTR
,
LPSTR
,
int
);
static
DWORD
(
WINAPI
*
pSHUnicodeToUnicode
)(
LPCWSTR
,
LPWSTR
,
int
);
static
BOOL
(
WINAPI
*
pStrIsIntlEqualA
)(
BOOL
,
LPCSTR
,
LPCSTR
,
int
);
static
BOOL
(
WINAPI
*
pIntlStrEqWorkerA
)(
BOOL
,
LPCSTR
,
LPCSTR
,
int
);
static
BOOL
(
WINAPI
*
pStrIsIntlEqualW
)(
BOOL
,
LPCWSTR
,
LPCWSTR
,
int
);
static
BOOL
(
WINAPI
*
pIntlStrEqWorkerW
)(
BOOL
,
LPCWSTR
,
LPCWSTR
,
int
);
static
inline
int
strcmpW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
)
{
...
...
@@ -563,11 +567,20 @@ void test_StrCmpA(void)
ok
(
!
ChrCmpIA
(
'b'
,
'B'
),
"ChrCmpIA is not case-insensitive
\n
"
);
ok
(
ChrCmpIA
(
'a'
,
'z'
),
"ChrCmpIA believes that a == z!
\n
"
);
ok
(
StrIsIntlEqualA
(
FALSE
,
str1
,
str2
,
5
),
"StrIsIntlEqualA(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
StrIsIntlEqualA
(
TRUE
,
str1
,
str2
,
5
),
"StrIsIntlEqualA(TRUE,...) isn't case-sensitive
\n
"
);
pStrIsIntlEqualA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"StrIsIntlEqualA
"
);
pIntlStrEqWorkerA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"IntlStrEqWorkerA
"
);
ok
(
IntlStrEqWorkerA
(
FALSE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerA(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
IntlStrEqWorkerA
(
TRUE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerA(TRUE,...) isn't case-sensitive
\n
"
);
if
(
!
pStrIsIntlEqualA
)
return
;
ok
(
pStrIsIntlEqualA
(
FALSE
,
str1
,
str2
,
5
),
"StrIsIntlEqualA(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
pStrIsIntlEqualA
(
TRUE
,
str1
,
str2
,
5
),
"StrIsIntlEqualA(TRUE,...) isn't case-sensitive
\n
"
);
if
(
!
pIntlStrEqWorkerA
)
return
;
ok
(
pIntlStrEqWorkerA
(
FALSE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerA(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
pIntlStrEqWorkerA
(
TRUE
,
str1
,
str2
,
5
),
"pIntlStrEqWorkerA(TRUE,...) isn't case-sensitive
\n
"
);
}
void
test_StrCmpW
(
void
)
...
...
@@ -580,11 +593,20 @@ void test_StrCmpW(void)
ok
(
!
ChrCmpIW
(
'b'
,
'B'
),
"ChrCmpIW is not case-insensitive
\n
"
);
ok
(
ChrCmpIW
(
'a'
,
'z'
),
"ChrCmpIW believes that a == z!
\n
"
);
ok
(
StrIsIntlEqualW
(
FALSE
,
str1
,
str2
,
5
),
"StrIsIntlEqualW(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
StrIsIntlEqualW
(
TRUE
,
str1
,
str2
,
5
),
"StrIsIntlEqualW(TRUE,...) isn't case-sensitive
\n
"
);
pStrIsIntlEqualW
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"StrIsIntlEqualW"
);
pIntlStrEqWorkerW
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"IntlStrEqWorkerW"
);
if
(
!
pStrIsIntlEqualW
)
return
;
ok
(
pStrIsIntlEqualW
(
FALSE
,
str1
,
str2
,
5
),
"StrIsIntlEqualW(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
pStrIsIntlEqualW
(
TRUE
,
str1
,
str2
,
5
),
"StrIsIntlEqualW(TRUE,...) isn't case-sensitive
\n
"
);
if
(
!
pIntlStrEqWorkerW
)
return
;
ok
(
IntlStrEqWorkerW
(
FALSE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerW(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
IntlStrEqWorkerW
(
TRUE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerW(TRUE,...) isn't case-sensitive
\n
"
);
ok
(
p
IntlStrEqWorkerW
(
FALSE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerW(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
p
IntlStrEqWorkerW
(
TRUE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerW(TRUE,...) isn't case-sensitive
\n
"
);
}
static
WCHAR
*
CoDupStrW
(
const
char
*
src
)
...
...
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