aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/Format.hpp
blob: d4da220848a4a50a7700e48fc01f009abcd5acb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include "Base.hpp"

#include "StringUtil.hpp"

#include <array>
#include <charconv>
#include <string>
#include <string_view>
#include <system_error>
#include <type_traits>

namespace cru {
template <typename T, typename = std::enable_if_t<std::is_arithmetic_v<T>>>
std::u16string ToUtf16String(T number) {
  return ToUtf16(std::to_string(number));
}
}  // namespace cru