Fabcoin Core  0.16.2
P2P Digital Currency
utilmoneystr.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2015 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
9 #ifndef FABCOIN_UTILMONEYSTR_H
10 #define FABCOIN_UTILMONEYSTR_H
11 
12 #include <stdint.h>
13 #include <string>
14 
15 #include <amount.h>
16 
17 /* Do not use these functions to represent or parse monetary amounts to or from
18  * JSON but use AmountFromValue and ValueFromAmount for that.
19  */
20 std::string FormatMoney(const CAmount& n);
21 bool ParseMoney(const std::string& str, CAmount& nRet);
22 bool ParseMoney(const char* pszIn, CAmount& nRet);
23 
24 #endif // FABCOIN_UTILMONEYSTR_H
std::string FormatMoney(const CAmount &n)
Money parsing/formatting utilities.
int64_t CAmount
Amount in lius (Can be negative)
Definition: amount.h:15
bool ParseMoney(const std::string &str, CAmount &nRet)