X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcore%2Futil%2FTextComposer.cpp;fp=source%2Fcore%2Futil%2FTextComposer.cpp;h=84716554fbaa81215e15f914cb613618cf420d1e;hp=465ea4909c740830a7e2a467fc446c2e308471bb;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/core/util/TextComposer.cpp b/source/core/util/TextComposer.cpp index 465ea49..8471655 100644 --- a/source/core/util/TextComposer.cpp +++ b/source/core/util/TextComposer.cpp @@ -44,7 +44,7 @@ TextComposer::~TextComposer() { * var2 => nombre = variable2 => "%02d el resto" */ void TextComposer::initialize() -throw(RuntimeException) { +noexcept(false) { Tokenizer variables(a_expression, "${"); Tokenizer idAndText; Tokenizer nameAndFormat; @@ -105,7 +105,7 @@ throw(RuntimeException) { } TextVariable* TextComposer::find(const char* name, const Exception::Mode::_v emode) -throw(RuntimeException) { +noexcept(false) { for(variable_iterator ii = begin(), maxii = end(); ii != maxii; ii ++) { if(anna_strcmp(textVariable(ii)->getName(), name) == 0) return textVariable(ii); @@ -125,7 +125,7 @@ throw(RuntimeException) { } String TextComposer::apply() const -throw(RuntimeException) { +noexcept(false) { LOGMETHOD(TraceMethod ttmm(Logger::Local7, "TextComposer::apply", ANNA_FILE_LOCATION)); String result; // No hace falta proteger porque sólo se podrá acceder desde el Protector @@ -155,7 +155,7 @@ throw(RuntimeException) { } String TextComposer::asString() const -throw() { +{ String result("TextComposer { Id: "); result << a_id; result << " | Expression: " << a_expression; @@ -164,7 +164,7 @@ throw() { //static TextVariable::Type::_v TextComposer::calculeType(const char* format) -throw(RuntimeException) { +noexcept(false) { static const char* typeInteger = "[:digit:]*d"; static const char* typeString = "[:digit:]*s"; static const char* typeFloat = "([:digit:]*.[:digit:]|.[:digit:]*)f|f";