Commit b7279564 authored by ILBERT Olivier's avatar ILBERT Olivier
Browse files

Merge branch...

Merge branch '27-https-gitlab-lam-fr-galaxies-lephare-blob-master-test-cosmos-para-l190' into 'master'

Resolve "https://gitlab.lam.fr/Galaxies/LEPHARE/-/blob/master/test/COSMOS.para#L190"

Closes #27

See merge request Galaxies/LEPHARE!11
parents 4ac3c289 8d968e73
......@@ -11,10 +11,14 @@ using namespace std;
bool test_first_char(string maligne)
{
bool test=false;
if(maligne.length() > 0){
if(maligne.at(0) != '#' && maligne.at(0) != '!')
test= true;}
return (test);
for(string::const_iterator it=maligne.begin(); it!=maligne.end(); it++){
if(*it == ' ') {
continue;
} else if(*it != '#' && *it != '!'){
return true;
} else {
return false;
}
}
return false;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment