mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
AK: Add implicit String -> StringView conversion
And tidy up existing view() users.
This commit is contained in:
parent
decf1afbaa
commit
b55b6cd7fc
6 changed files with 13 additions and 6 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue