mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 05:34:58 +00:00
AK: Reduce header dependency graph of String.h
String.h no longer pulls in StringView.h. We do this by moving a bunch of String functions out-of-line.
This commit is contained in:
parent
1dd71bd68f
commit
7d862dd5fc
39 changed files with 122 additions and 77 deletions
|
@ -28,6 +28,7 @@
|
|||
#include <AK/HashTable.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringUtils.h>
|
||||
#include <AK/StringView.h>
|
||||
|
||||
namespace AK {
|
||||
|
||||
|
@ -98,4 +99,9 @@ FlyString FlyString::to_lowercase() const
|
|||
return String(*m_impl).to_lowercase();
|
||||
}
|
||||
|
||||
StringView FlyString::view() const
|
||||
{
|
||||
return { characters(), length() };
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue