mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-28 00:18:23 +00:00
fmt: add support for std::u8string
This commit is contained in:
parent
ea0c559bc3
commit
5dfa908835
@ -152,6 +152,27 @@ void fmt_class_string<std::vector<char>>::format(std::string& out, u64 arg)
|
||||
out.append(obj.cbegin(), obj.cend());
|
||||
}
|
||||
|
||||
template <>
|
||||
void fmt_class_string<std::u8string>::format(std::string& out, u64 arg)
|
||||
{
|
||||
const std::u8string& obj = get_object(arg);
|
||||
out.append(obj.cbegin(), obj.cend());
|
||||
}
|
||||
|
||||
template <>
|
||||
void fmt_class_string<std::u8string_view>::format(std::string& out, u64 arg)
|
||||
{
|
||||
const std::u8string_view& obj = get_object(arg);
|
||||
out.append(obj.cbegin(), obj.cend());
|
||||
}
|
||||
|
||||
template <>
|
||||
void fmt_class_string<std::vector<char8_t>>::format(std::string& out, u64 arg)
|
||||
{
|
||||
const std::vector<char8_t>& obj = get_object(arg);
|
||||
out.append(obj.cbegin(), obj.cend());
|
||||
}
|
||||
|
||||
template <>
|
||||
void fmt_class_string<char>::format(std::string& out, u64 arg)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user