mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 01:55:07 +00:00
AK: Add a formatter overload for Utf16View
This commit is contained in:
parent
c16aca7abf
commit
daf559c717
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Format.h>
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/Span.h>
|
||||
|
@ -120,4 +121,12 @@ private:
|
|||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct AK::Formatter<AK::Utf16View> : Formatter<FormatString> {
|
||||
void format(FormatBuilder& builder, AK::Utf16View const& value)
|
||||
{
|
||||
return builder.builder().append(value);
|
||||
}
|
||||
};
|
||||
|
||||
using AK::Utf16View;
|
||||
|
|
Loading…
Reference in a new issue