diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-02-12 05:44:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-02-12 05:44:51 +0200 |
commit | 7bbe8042dbbea81c713576e1ce69d00bbba5d4b6 (patch) | |
tree | 2e0fe544517e6251b18c0c5ba6f57dd74c3a19aa /libbuild2/utility.hxx | |
parent | 0249399f06ab77c58e02698a6a0b2352f0dbf1ae (diff) |
Move to_string(uint64_t,base,width) to utility, use everywhere
Diffstat (limited to 'libbuild2/utility.hxx')
-rw-r--r-- | libbuild2/utility.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx index 594808c..b534f41 100644 --- a/libbuild2/utility.hxx +++ b/libbuild2/utility.hxx @@ -52,10 +52,16 @@ namespace build2 using std::make_shared; using std::make_move_iterator; using std::back_inserter; - using std::to_string; using std::stoul; using std::stoull; + using std::to_string; + + // Currently only supports base 10 and 16. Note: adds `0x` if base 16. + // + LIBBUILD2_SYMEXPORT string + to_string (uint64_t, int base, size_t width = 0); + // <libbutl/utility.hxx> // using butl::reverse_iterate; |