class Tokenizer : public Recycler<Token> {
public:
- void apply(const DataBlock&) throw(RuntimeException);
- void apply(const DataBlock&, const char* separator) throw(RuntimeException);
- void apply(const DataBlock&, const char separator) throw(RuntimeException);
+ void apply(const DataBlock&) noexcept(false);
+ void apply(const DataBlock&, const char* separator) noexcept(false);
+ void apply(const DataBlock&, const char separator) noexcept(false);
- const Token* operator [](int index) const throw();
+ const Token* operator [](int index) const ;
- const Token* operator [](const_iterator ii) const throw() {
+ const Token* operator [](const_iterator ii) const {
return (ii == end()) ? NULL : token(ii);
}
- static const Token* token(const_iterator ii) throw() { return data(ii); }
- static Token* token(iterator ii) throw() { return data(ii); }
+ static const Token* token(const_iterator ii) { return data(ii); }
+ static Token* token(iterator ii) { return data(ii); }
private:
- int createToken(const char* p, const int size) throw() {
+ int createToken(const char* p, const int size) {
create()->setValue(p, size);
return size;
}
- static int find(const char* data, const int size, const char character) throw();
- static int find(const char* data, const int size, const char* searched) throw();
- static bool isSpace(const int c) throw() { return c <= '\t' || c == ' ' || c >= 128; }
+ static int find(const char* data, const int size, const char character) ;
+ static int find(const char* data, const int size, const char* searched) ;
+ static bool isSpace(const int c) { return c <= '\t' || c == ' ' || c >= 128; }
};
}