mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
AK: Add a formatter overload for Utf16View
This commit is contained in:
parent
c16aca7abf
commit
daf559c717
1 changed files with 9 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <AK/Format.h>
|
||||||
#include <AK/Forward.h>
|
#include <AK/Forward.h>
|
||||||
#include <AK/Optional.h>
|
#include <AK/Optional.h>
|
||||||
#include <AK/Span.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;
|
using AK::Utf16View;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue