aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-10-29 09:13:07 +0100
committerpracticalswift <practicalswift@users.noreply.github.com>2018-11-06 17:32:08 +0100
commite70cc8983c570bbacee37a67df86b1bf959894df (patch)
tree67ab940c8adcec6badffe10852e9d8dec2d4b411 /src/util
parent6af27b81572b7b8e08ebcfe7eb533f40c66be4af (diff)
downloadbitcoin-e70cc8983c570bbacee37a67df86b1bf959894df.tar.xz
Use IsDigit(...) instead of std::isdigit
Diffstat (limited to 'src/util')
-rw-r--r--src/util/moneystr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/moneystr.cpp b/src/util/moneystr.cpp
index 4c4de7b729..f4e41eea4f 100644
--- a/src/util/moneystr.cpp
+++ b/src/util/moneystr.cpp
@@ -20,7 +20,7 @@ std::string FormatMoney(const CAmount& n)
// Right-trim excess zeros before the decimal point:
int nTrim = 0;
- for (int i = str.size()-1; (str[i] == '0' && isdigit(str[i-2])); --i)
+ for (int i = str.size()-1; (str[i] == '0' && IsDigit(str[i-2])); --i)
++nTrim;
if (nTrim)
str.erase(str.size()-nTrim, nTrim);
@@ -49,7 +49,7 @@ bool ParseMoney(const char* pszIn, CAmount& nRet)
{
p++;
int64_t nMult = COIN / 10;
- while (isdigit(*p) && (nMult > 0))
+ while (IsDigit(*p) && (nMult > 0))
{
nUnits += nMult * (*p++ - '0');
nMult /= 10;
@@ -58,7 +58,7 @@ bool ParseMoney(const char* pszIn, CAmount& nRet)
}
if (IsSpace(*p))
break;
- if (!isdigit(*p))
+ if (!IsDigit(*p))
return false;
strWhole.insert(strWhole.end(), *p);
}