Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
play-unfair
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcela Ribeiro de Oliveira
play-unfair
Commits
5fcc7903
Commit
5fcc7903
authored
6 years ago
by
Marcela Ribeiro de Oliveira
Browse files
Options
Downloads
Patches
Plain Diff
adicionando m no filtro 6
parent
cd8b186c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
playunfair.cpp
+5
-5
5 additions, 5 deletions
playunfair.cpp
with
5 additions
and
5 deletions
playunfair.cpp
+
5
−
5
View file @
5fcc7903
...
...
@@ -57,7 +57,7 @@ void parser(std::string &text){
int
filter
(
std
::
string
text
){
//TODO: if ( 4 primeiras letras sem vogal ||
// 3 char -('o') -('e') -('a') iguais seguidos ||
//
5
consoantes ||
//
6
consoantes ||
// 7 vogais ||
// 'q' + !'u' + !vogal ||
// ('b'|'c'|'d'|'f'|'h'|'k'|'p'|'q'|'t'|'w'|'y') + !(vogal|'r'|'h'|'l') ||
...
...
@@ -131,8 +131,8 @@ int filter2(std::string text){
int
filter3
(
std
::
string
text
){
size_t
i
,
j
;
int
rej
=
ACCEPTED
;
for
(
i
=
0
;
i
<
text
.
size
()
-
5
;
++
i
){
int
lim
=
4
,
cont
=
0
;
for
(
i
=
0
;
i
<
text
.
size
()
-
6
;
++
i
){
int
lim
=
5
,
cont
=
0
;
char
l
=
text
[
i
];
if
(
isVowel
(
l
))
continue
;
...
...
@@ -146,7 +146,7 @@ int filter3(std::string text){
break
;
}
}
if
(
cont
==
3
){
if
(
cont
==
4
){
rej
=
REJECTED
;
break
;
}
...
...
@@ -204,7 +204,7 @@ int filter6(std::string text){
if
(
text
[
i
]
==
'b'
||
text
[
i
]
==
'c'
||
text
[
i
]
==
'd'
||
text
[
i
]
==
'f'
||
text
[
i
]
==
'h'
||
text
[
i
]
==
'k'
||
text
[
i
]
==
'p'
||
text
[
i
]
==
'q'
||
text
[
i
]
==
't'
||
text
[
i
]
==
'w'
||
text
[
i
]
==
'y'
){
if
(
!
isVowel
(
text
[
i
+
1
])
&&
text
[
i
+
1
]
!=
'r'
&&
text
[
i
+
1
]
!=
'h'
&&
text
[
i
+
1
]
!=
'l'
){
if
(
!
isVowel
(
text
[
i
+
1
])
&&
text
[
i
+
1
]
!=
'r'
&&
text
[
i
+
1
]
!=
'h'
&&
text
[
i
+
1
]
!=
'l'
&&
text
[
i
+
1
]
!=
'm'
){
rej
=
REJECTED
;
break
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment