mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
AK: Add implicit String -> StringView conversion
And tidy up existing view() users.
This commit is contained in:
committed by
Andreas Kling
parent
decf1afbaa
commit
b55b6cd7fc
@@ -27,6 +27,7 @@ public:
|
||||
++m_length;
|
||||
}
|
||||
}
|
||||
StringView(const AK::String& string);
|
||||
|
||||
bool is_empty() const { return m_length == 0; }
|
||||
const char* characters() const { return m_characters; }
|
||||
|
||||
Reference in New Issue
Block a user