Remove dynamic exceptions
[anna.git] / source / http / internal / Tokenizer.cpp
index 3df6c48..d4fe17c 100644 (file)
@@ -21,7 +21,7 @@ using namespace anna;
 // Extrae los datos del bloque de memoria separando por espacios en blancos, tabs, etc, etc
 //--------------------------------------------------------------------------------------------
 void http::Tokenizer::apply(const DataBlock& data)
-throw(RuntimeException) {
+noexcept(false) {
   const char* p = data.getData();
   const char* maxp = p + data.getSize();
   bool searchingInit = true;
@@ -52,7 +52,7 @@ throw(RuntimeException) {
 }
 
 void http::Tokenizer::apply(const DataBlock& data, const char* separator)
-throw(RuntimeException) {
+noexcept(false) {
   const char* p = data.getData();
   int size = data.getSize();
   const char* maxp = p + size;
@@ -74,7 +74,7 @@ throw(RuntimeException) {
 }
 
 void http::Tokenizer::apply(const DataBlock& data, const char separator)
-throw(RuntimeException) {
+noexcept(false) {
   const char* p = data.getData();
   int size = data.getSize();
   const char* maxp = p + size;
@@ -95,7 +95,7 @@ throw(RuntimeException) {
 }
 
 const http::Token* http::Tokenizer::operator [](int index) const
-throw() {
+{
   const_iterator ii = begin();
   const_iterator maxii = end();
 
@@ -108,7 +108,7 @@ throw() {
 }
 
 int http::Tokenizer::find(const char* data, const int size, const char searched)
-throw() {
+{
   for(int i = 0; i < size; i ++, data ++) {
     if(*data == searched)
       return i;
@@ -118,7 +118,7 @@ throw() {
 }
 
 int http::Tokenizer::find(const char* data, const int size, const char* searched)
-throw() {
+{
   static const int EndOfLineLen = 2;
   int result(-1);
   const char* w(data);