mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
21 lines
382 B
C++
21 lines
382 B
C++
#pragma once
|
|
|
|
#include <AK/AKString.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;
|
|
};
|