X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fhttp%2Finternal%2FTokenizer.cpp;fp=source%2Fhttp%2Finternal%2FTokenizer.cpp;h=d4fe17c48ebf1e88c4393293b9f8767be13bd77c;hp=3df6c487ccd1f38c62dab02d8eb0812805c71f2c;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/http/internal/Tokenizer.cpp b/source/http/internal/Tokenizer.cpp index 3df6c48..d4fe17c 100644 --- a/source/http/internal/Tokenizer.cpp +++ b/source/http/internal/Tokenizer.cpp @@ -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);