mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 20:55:35 +03:00
Revert "Revert "AK: Always inline FlyString::view()""
This reverts commit f09216ac42
.
This was supposed to be a local test only, didn't mean to push it. :^)
This commit is contained in:
parent
887852f36d
commit
0a7e91329f
Notes:
sideshowbarker
2024-07-18 12:46:54 +09:00
@ -115,11 +115,6 @@ FlyString FlyString::to_lowercase() const
|
||||
return String(*m_impl).to_lowercase();
|
||||
}
|
||||
|
||||
StringView FlyString::view() const
|
||||
{
|
||||
return { characters(), length() };
|
||||
}
|
||||
|
||||
bool FlyString::operator==(const String& other) const
|
||||
{
|
||||
if (m_impl == other.impl())
|
||||
|
@ -60,8 +60,7 @@ public:
|
||||
size_t length() const { return m_impl ? m_impl->length() : 0; }
|
||||
|
||||
ALWAYS_INLINE u32 hash() const { return m_impl ? m_impl->existing_hash() : 0; }
|
||||
|
||||
StringView view() const;
|
||||
ALWAYS_INLINE StringView view() const { return m_impl ? m_impl->view() : StringView {}; }
|
||||
|
||||
FlyString to_lowercase() const;
|
||||
|
||||
|
@ -43,6 +43,7 @@ public:
|
||||
const char* characters() const { return &m_inline_buffer[0]; }
|
||||
|
||||
ALWAYS_INLINE ReadonlyBytes bytes() const { return { characters(), length() }; }
|
||||
ALWAYS_INLINE StringView view() const { return { characters(), length() }; }
|
||||
|
||||
const char& operator[](size_t i) const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user