#include <G4Tokenizer.hh>
Definition at line 48 of file G4Tokenizer.hh.
G4Tokenizer::G4Tokenizer |
( |
const G4String & |
stn | ) |
|
|
inline |
Definition at line 51 of file G4Tokenizer.hh.
51 :string2tokenize(stn),actual(0){}
G4String G4Tokenizer::operator() |
( |
const char * |
str = " \t\n" , |
|
|
size_t |
l = 0 |
|
) |
| |
|
inline |
Definition at line 53 of file G4Tokenizer.hh.
57 if(l==0) l=strlen(str);
59 while(actual<string2tokenize.size())
63 if(string2tokenize[actual]==str[i]) hasws=
true;
73 for(j=actual;j<string2tokenize.size();j++)
76 if(string2tokenize[j]==str[i])
break;
79 if(j!=string2tokenize.size())
83 return string2tokenize(tmp,j-tmp);
89 return string2tokenize(tmp,j-tmp);
The documentation for this class was generated from the following file: