Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarDirectives.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-26 15:34:41 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-26 15:34:41 +1000
commitec9a138e1acb648b7eb1da44e081553a1586185b (patch)
treeac1833f4ea34358b5a06f0bd27f94f51a355ac13 /source/core/StarDirectives.hpp
parented3d5dffc099b1c5bcb14451fffc63de1b6ac634 (diff)
Handle abnormal directives prefixes
Diffstat (limited to 'source/core/StarDirectives.hpp')
-rw-r--r--source/core/StarDirectives.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/core/StarDirectives.hpp b/source/core/StarDirectives.hpp
index 1455dd0..8af2f51 100644
--- a/source/core/StarDirectives.hpp
+++ b/source/core/StarDirectives.hpp
@@ -30,10 +30,11 @@ public:
struct Shared {
List<Entry> entries;
String string;
+ StringView prefix;
size_t hash = 0;
bool empty() const;
- Shared(List<Entry>&& givenEntries, String&& givenString);
+ Shared(List<Entry>&& givenEntries, String&& givenString, StringView givenPrefix);
};
Directives();
@@ -43,6 +44,7 @@ public:
void parse(String&& directives);
String string() const;
+ StringView prefix() const;
String const* stringPtr() const;
String buildString() const;
String& addToString(String& out) const;