From 32c8ba526bf5999b1fe82a7a5a70941c7354ebb5 Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Mon, 17 Aug 2009 00:43:45 +0700 Subject: [PATCH] MathLib(isInt): formatted and get rid of tabs. No functional change. --- src/mathlib.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/mathlib.cpp b/src/mathlib.cpp index f90f863da..87e8326ca 100644 --- a/src/mathlib.cpp +++ b/src/mathlib.cpp @@ -90,9 +90,18 @@ bool MathLib::isInt(const std::string & s) while (isspace(s[n])) ++n; // determine type - if (s.find("E", 0) != std::string::npos) Mode = eScientific; - else if (s.find("0x", n, 2) != std::string::npos) Mode = eHex; - else if (s.find("0", n, 1) != std::string::npos && isdigit(s[n+1])) Mode = eOctal; + if (s.find("E", 0) != std::string::npos) + { + Mode = eScientific; + } + else if (s.find("0x", n, 2) != std::string::npos) + { + Mode = eHex; + } + else if (s.find("0", n, 1) != std::string::npos && isdigit(s[n+1])) + { + Mode = eOctal; + } // check sign if (s[n] == '-' || s[n] == '+') ++n;