mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 03:07:36 +02:00
Remove a redundant function
This commit is contained in:
@ -657,12 +657,6 @@ FMT_CONSTEXPR20 auto fill_n(T* out, Size count, char value) -> T* {
|
|||||||
return out + count;
|
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>
|
template <typename OutChar, typename InputIt, typename OutputIt>
|
||||||
FMT_CONSTEXPR FMT_NOINLINE auto copy_str_noinline(InputIt begin, InputIt end,
|
FMT_CONSTEXPR FMT_NOINLINE auto copy_str_noinline(InputIt begin, InputIt end,
|
||||||
OutputIt out) -> OutputIt {
|
OutputIt out) -> OutputIt {
|
||||||
@ -819,12 +813,6 @@ inline auto code_point_index(string_view s, size_t n) -> size_t {
|
|||||||
return result;
|
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 <typename T> struct is_integral : std::is_integral<T> {};
|
||||||
template <> struct is_integral<int128_opt> : std::true_type {};
|
template <> struct is_integral<int128_opt> : std::true_type {};
|
||||||
template <> struct is_integral<uint128_t> : std::true_type {};
|
template <> struct is_integral<uint128_t> : std::true_type {};
|
||||||
|
@ -20,6 +20,12 @@
|
|||||||
FMT_BEGIN_NAMESPACE
|
FMT_BEGIN_NAMESPACE
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
|
#ifdef __cpp_char8_t
|
||||||
|
using char8_type = char8_t;
|
||||||
|
#else
|
||||||
|
enum char8_type : unsigned char {};
|
||||||
|
#endif
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
using is_exotic_char = bool_constant<!std::is_same<T, char>::value>;
|
using is_exotic_char = bool_constant<!std::is_same<T, char>::value>;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user