ladybird/Kernel/KParams.h
Andreas Kling 73fdbba59c AK: Rename <AK/AKString.h> to <AK/String.h>
This was a workaround to be able to build on case-insensitive file
systems where it might get confused about <string.h> vs <String.h>.

Let's just not support building that way, so String.h can have an
objectively nicer name. :^)
2019-09-06 15:36:54 +02:00

20 lines
380 B
C++

#pragma once
#include <AK/String.h>
#include <AK/HashMap.h>
class KParams {
AK_MAKE_ETERNAL
public:
static KParams& the();
KParams(const String& cmdline);
const String& cmdline() const { return m_cmdline; }
String get(const String& key) const;
bool has(const String& key) const;
private:
String m_cmdline;
HashMap<String, String> m_params;
};