Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
REIKAI
ygopro
Commits
5a9b97b1
Commit
5a9b97b1
authored
Jan 01, 2018
by
edo9300
Committed by
GitHub
Jan 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Format and update CardNameCompare
parent
3964308f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
30 deletions
+15
-30
gframe/deck_con.cpp
gframe/deck_con.cpp
+15
-30
No files found.
gframe/deck_con.cpp
View file @
5a9b97b1
...
...
@@ -880,53 +880,38 @@ void DeckBuilder::FilterCards() {
}
SortList
();
}
bool
DeckBuilder
::
CardNameCompare
(
const
wchar_t
*
sa
,
const
wchar_t
*
sb
)
{
int
i
=
0
;
int
j
=
0
;
int
k
;
wchar_t
ca
;
wchar_t
cb
;
wchar_t
wc
=
L'*'
;
wchar_t
pwc
;
bool
wcr
=
false
;
if
(
!
sa
||
!
sb
)
bool
DeckBuilder
::
CardNameCompare
(
const
wchar_t
*
sa
,
const
wchar_t
*
sb
)
{
if
(
!
sa
||
!
sb
||
(
wcslen
(
sb
)
>
wcslen
(
sa
)))
return
false
;
while
(
sa
[
i
])
{
int
i
=
0
,
j
=
0
,
k
;
wchar_t
ca
,
cb
,
pwc
,
wc
=
L'*'
;
bool
wcr
=
false
;
while
(
sa
[
i
])
{
ca
=
towupper
(
sa
[
i
]);
cb
=
towupper
(
sb
[
j
]);
if
(
ca
==
cb
)
{
if
(
ca
==
cb
)
{
j
++
;
if
(
!
sb
[
j
])
if
(
!
sb
[
j
])
return
true
;
}
else
if
(
cb
==
wc
)
{
while
(
sb
[
j
]
==
wc
)
{
}
else
if
(
cb
==
wc
)
{
while
(
sb
[
j
]
==
wc
)
{
j
++
;
if
(
!
sb
[
j
])
if
(
!
sb
[
j
])
return
true
;
}
k
=
j
;
pwc
=
towupper
(
sb
[
j
]);
wcr
=
true
;
while
(
towupper
(
sa
[
i
])
!=
pwc
)
{
while
(
towupper
(
sa
[
i
])
!=
pwc
)
{
i
++
;
if
(
!
sa
[
i
])
if
(
!
sa
[
i
])
return
false
;
}
i
--
;
}
else
if
(
wcr
&&
ca
==
pwc
)
{
}
else
if
(
wcr
&&
ca
==
pwc
)
{
j
=
k
;
i
--
;
}
else
}
else
j
=
0
;
i
++
;
}
...
...
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