#include "Global.h"
-#include "String.h"
-
-#include <pp/Format.h>
-
#include <cassert>
-// TODO Remove unused code
-namespace
-{
-
-template <typename Container> std::string concat(const std::string &sep, Container &&c)
-{
- std::stringstream ss;
- enco::concat(ss, sep, c.begin(), c.end());
- return ss.str();
-}
-
-template <typename Callable, typename InputIt>
-auto transform(Callable &&cb, InputIt beg, InputIt end) -> std::vector<decltype(cb(*beg))>
-{
- using U = decltype(cb(*beg));
- std::vector<U> res;
-
- for (auto it = beg; it != end; ++it)
- {
- res.emplace_back(cb(*it));
- }
-
- return res;
-}
-
-std::string u32_to_dec(uint32_t value)
-{
- std::stringstream ss;
- ss << value;
- return ss.str();
-}
-
-std::string u08_to_hex(uint8_t value)
-{
- std::stringstream ss;
- ss << "0x" << std::hex << value + 0;
- return ss.str();
-}
-
-} // namespace
-
namespace enco
{