Bitcoin ABC
0.22.13
P2P Digital Currency
src
util
moneystr.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 BITCOIN_UTIL_MONEYSTR_H
10
#define BITCOIN_UTIL_MONEYSTR_H
11
12
#include <
amount.h
>
13
#include <
attributes.h
>
14
15
#include <string>
16
21
std::string
FormatMoney
(
const
Amount
n);
26
NODISCARD
bool
ParseMoney
(
const
std::string &str,
Amount
&nRet);
27
28
#endif // BITCOIN_UTIL_MONEYSTR_H
attributes.h
Amount
Definition:
amount.h:17
FormatMoney
std::string FormatMoney(const Amount n)
Money parsing/formatting utilities.
Definition:
moneystr.cpp:12
NODISCARD
#define NODISCARD
Definition:
attributes.h:18
ParseMoney
NODISCARD bool ParseMoney(const std::string &str, Amount &nRet)
Parse an amount denoted in full coins.
Definition:
moneystr.cpp:34
amount.h
Generated on Mon Jan 25 2021 21:52:41 for Bitcoin ABC by
1.8.13