Changeset View
Changeset View
Standalone View
Standalone View
src/utilmoneystr.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2015 The Bitcoin Core developers | // Copyright (c) 2009-2015 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
/** | /** | ||||
* Money parsing/formatting utilities. | * Money parsing/formatting utilities. | ||||
*/ | */ | ||||
#ifndef BITCOIN_UTILMONEYSTR_H | #ifndef BITCOIN_UTILMONEYSTR_H | ||||
#define BITCOIN_UTILMONEYSTR_H | #define BITCOIN_UTILMONEYSTR_H | ||||
#include <amount.h> | |||||
#include <cstdint> | #include <cstdint> | ||||
#include <string> | #include <string> | ||||
#include "amount.h" | |||||
std::string FormatMoney(const Amount n); | std::string FormatMoney(const Amount n); | ||||
bool ParseMoney(const std::string &str, Amount &nRet); | bool ParseMoney(const std::string &str, Amount &nRet); | ||||
bool ParseMoney(const char *pszIn, Amount &nRet); | bool ParseMoney(const char *pszIn, Amount &nRet); | ||||
#endif // BITCOIN_UTILMONEYSTR_H | #endif // BITCOIN_UTILMONEYSTR_H |