*/
class Tokenizer {
- int _apply(const char* str, const char* separator) throw(RuntimeException);
+ int _apply(const char* str, const char* separator) noexcept(false);
public:
typedef char* const* const_iterator;
Devuelve el estado del indicador de activacion de eliminacion de espacios de los extremos.
\return El estado del indicador de activacion de eliminacion de espacios de los extremos.
*/
- bool activateStrip() const throw() { return a_activateStrip; }
+ bool activateStrip() const { return a_activateStrip; }
// Operadores
por esta clase sin espacios por delante y por detras.
\param _activateStrip Parametro que indica el estado de activacion o desactivacion.
*/
- void activateStrip(const bool _activateStrip) throw() { a_activateStrip = _activateStrip; }
+ void activateStrip(const bool _activateStrip) { a_activateStrip = _activateStrip; }
/**
@return El elemento que ocupa la posicion i-esima.
\warning Este método tiene una eficiencia de O(1), mejor usar iteradores.
*/
- const char* at(const int i) throw(RuntimeException);
+ const char* at(const int i) noexcept(false);
/**
@return El elemento que ocupa la posicion i-esima.
\warning Este método tiene una eficiencia de O(1), mejor usar iteradores.
*/
- const char* at(const int i) const throw(RuntimeException);
+ const char* at(const int i) const noexcept(false);
/**
@return El elemento que ocupa la posicion i-esima.
\warning Este método tiene una eficiencia de O(1), mejor usar iteradores.
*/
- const char* operator [](const int i) throw(RuntimeException) { return at(i); }
+ const char* operator [](const int i) noexcept(false) { return at(i); }
/**
@return El elemento que ocupa la posicion i-esima.
\warning Este método tiene una eficiencia de O(1), mejor usar iteradores.
*/
- const char* operator [](const int i) const throw(RuntimeException) { return at(i); }
+ const char* operator [](const int i) const noexcept(false) { return at(i); }
/**
Process the separation over the string str with the separator provided.
@return Number of tokens
*/
- int apply(const char* str, const char* separator, const char *tokenizeContiguous = NULL) throw(RuntimeException);
- int apply(const std::string& str, const char* separator, const char *tokenizeContiguous = NULL) throw(RuntimeException) {
+ int apply(const char* str, const char* separator, const char *tokenizeContiguous = NULL) noexcept(false);
+ int apply(const std::string& str, const char* separator, const char *tokenizeContiguous = NULL) noexcept(false) {
return apply(str.c_str(), separator, tokenizeContiguous);
}
/**
@return El ultimo elemento obtenido la aplicar la separacion.
*/
- const char* last() const throw(RuntimeException);
+ const char* last() const noexcept(false);
/**
* Devuelve el número de elementos obtenidos en la separación.
* \return el número de elementos obtenidos en la separación.
*/
- int size() const throw() { return a_maxItem; }
+ int size() const { return a_maxItem; }
/**
* Devuelve el iterador el comiento de los elementos obtenidos por #apply
* \return el iterador el comiento de los elementos obtenidos por #apply
*/
- const_iterator begin() const throw() { return a_items; }
+ const_iterator begin() const { return a_items; }
/**
* Devuelve el iterador al final de los elementos obtenidos por #apply
* \return el iterador al final de los elementos obtenidos por #apply
*/
- const_iterator end() const throw() { return a_items + a_maxItem; }
+ const_iterator end() const { return a_items + a_maxItem; }
/**
Devuelve la cadena referenciada por el iterator recibido como parametro.
\return la cadena referenciada por el iterator recibido como parametro.
*/
- static const char* data(const_iterator ii) throw() { return *ii; }
+ static const char* data(const_iterator ii) { return *ii; }
private:
static const int MaxItem;
char** a_items;
int a_maxItem;
- static char* strip(char* str) throw();
+ static char* strip(char* str) ;
- void indexException(const int index, const char* fromFile, const int fromLine) const throw(RuntimeException);
+ void indexException(const int index, const char* fromFile, const int fromLine) const noexcept(false);
};
}