mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 22:08:59 +00:00
AK: Add formatter for LexcialPath.
This commit is contained in:
parent
7ae530fbc7
commit
cf6980848b
Notes:
sideshowbarker
2024-07-19 01:57:04 +09:00
Author: https://github.com/asynts
Commit: cf6980848b
Pull-request: https://github.com/SerenityOS/serenity/pull/3731
1 changed files with 8 additions and 0 deletions
|
@ -64,6 +64,14 @@ private:
|
||||||
bool m_is_absolute { false };
|
bool m_is_absolute { false };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<>
|
||||||
|
struct Formatter<LexicalPath> : Formatter<StringView> {
|
||||||
|
void format(TypeErasedFormatParams& params, FormatBuilder& builder, const LexicalPath& value)
|
||||||
|
{
|
||||||
|
Formatter<StringView>::format(params, builder, value.string());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
using AK::LexicalPath;
|
using AK::LexicalPath;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue