Raven Core  3.0.0
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 // Copyright (c) 2017-2019 The Raven Core developers
4 // Distributed under the MIT software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
10 #ifndef RAVEN_UTILMONEYSTR_H
11 #define RAVEN_UTILMONEYSTR_H
12 
13 #include <stdint.h>
14 #include <string>
15 
16 #include "amount.h"
17 
18 /* Do not use these functions to represent or parse monetary amounts to or from
19  * JSON but use AmountFromValue and ValueFromAmount for that.
20  */
21 std::string FormatMoney(const CAmount& n);
22 bool ParseMoney(const std::string& str, CAmount& nRet);
23 bool ParseMoney(const char* pszIn, CAmount& nRet);
24 
25 #endif // RAVEN_UTILMONEYSTR_H
std::string FormatMoney(const CAmount &n)
Money parsing/formatting utilities.
int64_t CAmount
Amount in corbies (Can be negative)
Definition: amount.h:13
bool ParseMoney(const std::string &str, CAmount &nRet)