diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2023-12-06 15:13:39 -0500 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2024-05-16 10:16:08 -0500 |
commit | 4f74c59334d496f28e1a5c0d84c412f9020b366f (patch) | |
tree | 7aedc6f40f44c459ec9e4a61119c522456cf256f /src/util/moneystr.cpp | |
parent | 4d05d3f3b42a41525aa6ec44b90f543dfab53ecf (diff) | |
download | bitcoin-4f74c59334d496f28e1a5c0d84c412f9020b366f.tar.xz |
util: Move util/string.h functions to util namespace
There are no changes to behavior. Changes in this commit are all additions, and
are easiest to review using "git diff -U0 --word-diff-regex=." options.
Motivation for this change is to keep util functions with really generic names
like "Split" and "Join" out of the global namespace so it is easier to see
where these functions are defined, and so they don't interfere with function
overloading, especially since the util library is a dependency of the kernel
library and intended to be used with external code.
Diffstat (limited to 'src/util/moneystr.cpp')
-rw-r--r-- | src/util/moneystr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/moneystr.cpp b/src/util/moneystr.cpp index 9181329afc..1ed3b2ac96 100644 --- a/src/util/moneystr.cpp +++ b/src/util/moneystr.cpp @@ -13,6 +13,9 @@ #include <cstdint> #include <optional> +using util::ContainsNoNUL; +using util::TrimString; + std::string FormatMoney(const CAmount n) { // Note: not using straight sprintf here because we do NOT want |