diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-07-07 15:22:54 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-07-07 15:22:54 +0200 |
commit | ae3d0aba158d0a38c33d687e5473d688fbcb903d (patch) | |
tree | 33aad906eba0bf0500a24196649651bd8d48dfa4 /src/util.cpp | |
parent | fbaee7a8533b23d846ee16837320f709c4e83d47 (diff) |
Sync to bitcoin git e94010b2395694d56dd6
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/util.cpp b/src/util.cpp index 2bc2cdd599..3d89f6a829 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -344,11 +344,6 @@ string FormatMoney(int64 n, bool fPlus) if (nTrim) str.erase(str.size()-nTrim, nTrim); - // Insert thousands-separators: - size_t point = str.find("."); - for (int i = (str.size()-point)+3; i < str.size(); i += 4) - if (isdigit(str[str.size() - i - 1])) - str.insert(str.size() - i, 1, ','); if (n < 0) str.insert((unsigned int)0, 1, '-'); else if (fPlus && n > 0) @@ -371,8 +366,6 @@ bool ParseMoney(const char* pszIn, int64& nRet) p++; for (; *p; p++) { - if (*p == ',' && p > pszIn && isdigit(p[-1]) && isdigit(p[1]) && isdigit(p[2]) && isdigit(p[3]) && !isdigit(p[4])) - continue; if (*p == '.') { p++; |