Files Classes Functions Hierarchy
00001 #ifndef TOKENIZERFIND_H 00002 #define TOKENIZERFIND_H 00003 00004 #include <tokenizer.h> 00005 00013 class tokenizerfind 00014 { 00015 public: 00016 00018 tokenizer& ref; 00019 00021 string::size_type index; 00023 string atom; 00024 00026 tokenizerfind(tokenizer& ref_) 00027 : ref(ref_), index(0) {} 00029 tokenizerfind(tokenizer& ref_, stringc& atom_) 00030 : ref(ref_), index(0), atom(atom_) {} 00031 00033 boolc find(stringc& atom1); 00034 boolc find(stringc& atom1, stringc& atom2); 00035 boolc find(stringc& atom1, stringc& atom2, stringc& atom3); 00036 boolc find(stringc& atom1, stringc& atom2, stringc& atom3, stringc& atom4); 00037 boolc find(stringc& atom1, stringc& atom2, stringc& atom3, stringc& atom4, stringc& atom5); 00038 boolc find(stringc& atom1, stringc& atom2, stringc& atom3, stringc& atom4, stringc& atom5, stringc& atom6); 00039 00041 boolc reset(); 00042 // { return ref.find(index,atom); } 00044 boolc operator !(); 00045 // { return !ref; } 00047 void operator ++ (); 00048 // { ++index; ref.find(index,atom,index); } 00050 stringc & operator() () const; 00051 // { return ref(); } 00052 string & operator * (); 00053 // { return *ref; } 00054 00055 }; 00056 00057 00058 #endif 00059
1.5.8