diff options
Diffstat (limited to 'src/strfnd.h')
-rw-r--r-- | src/strfnd.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/strfnd.h b/src/strfnd.h index e3d380e37..049ae0bae 100644 --- a/src/strfnd.h +++ b/src/strfnd.h @@ -65,6 +65,19 @@ public: //std::cout<<"palautus=\""<<palautus<<"\""<<std::endl; return palautus; } + void skip_over(std::string chars){ + while(p < tek.size()){ + bool is = false; + for(unsigned int i=0; i<chars.size(); i++){ + if(chars[i] == tek[p]){ + is = true; + break; + } + } + if(!is) break; + p++; + } + } bool atend(){ if(p>=tek.size()) return true; return false; |