X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fhttp%2Finternal%2FToken.cpp;fp=source%2Fhttp%2Finternal%2FToken.cpp;h=98ff92586c3c47a278ace55fc3c2a3ff03249c06;hp=1bdd366317d7b71cf9a31e6ddbf391512d620ce4;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/http/internal/Token.cpp b/source/http/internal/Token.cpp index 1bdd366..98ff925 100644 --- a/source/http/internal/Token.cpp +++ b/source/http/internal/Token.cpp @@ -18,7 +18,7 @@ using namespace std; using namespace anna; const string& http::Token::getStringValue() const -throw() { +{ if(contains(0) == false) const_cast (this)->a_aux.assign(DataBlock::getData(), DataBlock::getSize()); else @@ -28,7 +28,7 @@ throw() { } int http::Token::getIntegerValue() const -throw() { +{ if(contains(0) == false) { const_cast (this)->a_aux.assign(DataBlock::getData(), DataBlock::getSize()); return atoi(a_aux.c_str()); @@ -38,7 +38,7 @@ throw() { } bool http::Token::contains(const char byte) const -throw() { +{ const char* p; const char* maxp; @@ -51,7 +51,7 @@ throw() { } int http::Token::calculeOffset(const DataBlock& base) const -throw(RuntimeException) { +noexcept(false) { const int result = getData() - base.getData(); if(result < 0) { @@ -64,7 +64,7 @@ throw(RuntimeException) { } bool http::Token::match(const char* str) const -throw() { +{ const char* pp = DataBlock::getData(); int size = DataBlock::getSize();