You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

utilmoneystr.h 738B

123456789101112131415161718192021222324
  1. // Copyright (c) 2009-2010 Satoshi Nakamoto
  2. // Copyright (c) 2009-2015 The Starwels developers
  3. // Distributed under the MIT software license, see the accompanying
  4. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  5. /**
  6. * Money parsing/formatting utilities.
  7. */
  8. #ifndef STARWELS_UTILMONEYSTR_H
  9. #define STARWELS_UTILMONEYSTR_H
  10. #include <stdint.h>
  11. #include <string>
  12. #include "amount.h"
  13. /* Do not use these functions to represent or parse monetary amounts to or from
  14. * JSON but use AmountFromValue and ValueFromAmount for that.
  15. */
  16. std::string FormatMoney(const CAmount& n);
  17. bool ParseMoney(const std::string& str, CAmount& nRet);
  18. bool ParseMoney(const char* pszIn, CAmount& nRet);
  19. #endif // STARWELS_UTILMONEYSTR_H