X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FTermlib%2FTerminfo.cc;h=44bdb6f80c1b56b5c51f06a4a9e48a0ea40bbbe3;hb=f2f5d59e83863f3b513950173baee1b6da2aee3c;hp=603676c8621b18e8231fdd5317d3c3507a533016;hpb=27d5a4aaebd8abb6c6bb842af3c170063b206f0f;p=senf.git diff --git a/Utils/Termlib/Terminfo.cc b/Utils/Termlib/Terminfo.cc index 603676c..44bdb6f 100644 --- a/Utils/Termlib/Terminfo.cc +++ b/Utils/Termlib/Terminfo.cc @@ -240,15 +240,15 @@ prefix_ std::string senf::term::Terminfo::formatString(properties::String p, std::string result; for (std::string::const_iterator i (prgstr.begin()); i != prgstr.end(); ++i) { - if (*i != '%') { - result += *i; - continue; - } - int width = 0, base = 0; - switch (*++i) { + if (*i != '%') { + result += *i; + continue; + } + int width = 0, base = 0; + switch (*++i) { case '%': result += *i; break; case 'i': ++arg1; ++arg2; break; - case 'c': result += char(stack.pop()); break; + case 'c': result += char(stack.pop()); break; case 'x': base = 16; continue; case '0': if (!base) base = 8; case '1': case '2': case '3': case '4': @@ -264,7 +264,7 @@ prefix_ std::string senf::term::Terminfo::formatString(properties::String p, continue; } case '}': stack.push(width); break; - // Binary operands are in infix (reversed) order + // Binary operands are in infix (reversed) order case '+': stack.push(stack.pop() + stack.pop()); break; case '-': stack.push(-stack.pop() + stack.pop()); break; case '*': stack.push(stack.pop() * stack.pop()); break;