mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
73fdbba59c
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. :^)
20 lines
380 B
C++
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;
|
|
};
|