1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

Add a simple FileSystemPath class that can canonicalize paths.

Also a simple StringBuilder to help him out.
This commit is contained in:
Andreas Kling 2018-10-28 08:54:20 +01:00
parent 43475f248b
commit 88ad59bfb1
Notes: sideshowbarker 2024-07-19 18:37:12 +09:00
6 changed files with 102 additions and 6 deletions

View file

@ -61,6 +61,7 @@ public:
Vector<String> split(char separator) const;
String substring(size_t start, size_t length) const;
bool isNull() const { return !m_impl; }
bool isEmpty() const { return length() == 0; }
unsigned length() const { return m_impl ? m_impl->length() : 0; }
const char* characters() const { return m_impl ? m_impl->characters() : nullptr; }