Remove a redundant function

This commit is contained in:
Victor Zverovich 2024-01-04 15:51:28 -08:00
parent 6c617c9670
commit e0b604beb1
2 changed files with 6 additions and 12 deletions

View File

@ -657,12 +657,6 @@ FMT_CONSTEXPR20 auto fill_n(T* out, Size count, char value) -> T* {
return out + count;
}
#ifdef __cpp_char8_t
using char8_type = char8_t;
#else
enum char8_type : unsigned char {};
#endif
template <typename OutChar, typename InputIt, typename OutputIt>
FMT_CONSTEXPR FMT_NOINLINE auto copy_str_noinline(InputIt begin, InputIt end,
OutputIt out) -> OutputIt {
@ -819,12 +813,6 @@ inline auto code_point_index(string_view s, size_t n) -> size_t {
return result;
}
inline auto code_point_index(basic_string_view<char8_type> s, size_t n)
-> size_t {
return code_point_index(
string_view(reinterpret_cast<const char*>(s.data()), s.size()), n);
}
template <typename T> struct is_integral : std::is_integral<T> {};
template <> struct is_integral<int128_opt> : std::true_type {};
template <> struct is_integral<uint128_t> : std::true_type {};

View File

@ -20,6 +20,12 @@
FMT_BEGIN_NAMESPACE
namespace detail {
#ifdef __cpp_char8_t
using char8_type = char8_t;
#else
enum char8_type : unsigned char {};
#endif
template <typename T>
using is_exotic_char = bool_constant<!std::is_same<T, char>::value>;