mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-14 02:10:36 +00:00
0dc9af5f7e
Also run it across the whole tree to get everything using the One True Style. We don't yet run this in an automated fashion as it's a little slow, but there is a snippet to do so in makeall.sh.
32 lines
613 B
C++
32 lines
613 B
C++
#pragma once
|
|
|
|
#include "AKString.h"
|
|
|
|
namespace AK {
|
|
|
|
class FileSystemPath {
|
|
public:
|
|
FileSystemPath() {}
|
|
explicit FileSystemPath(const String&);
|
|
|
|
bool is_valid() const { return m_is_valid; }
|
|
String string() const { return m_string; }
|
|
|
|
String basename() const { return m_basename; }
|
|
|
|
const Vector<String>& parts() const { return m_parts; }
|
|
|
|
bool has_extension(StringView) const;
|
|
|
|
private:
|
|
bool canonicalize(bool resolve_symbolic_links = false);
|
|
|
|
Vector<String> m_parts;
|
|
String m_string;
|
|
String m_basename;
|
|
bool m_is_valid { false };
|
|
};
|
|
|
|
};
|
|
|
|
using AK::FileSystemPath;
|