mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:47:34 +00:00
Kernel: Convert CommandLine to KString
This commit is contained in:
parent
a4560313eb
commit
194d1c884b
2 changed files with 9 additions and 9 deletions
|
@ -58,7 +58,7 @@ public:
|
|||
BootloaderOnly
|
||||
};
|
||||
|
||||
[[nodiscard]] const String& string() const { return m_string; }
|
||||
[[nodiscard]] StringView string() const { return m_string->view(); }
|
||||
Optional<StringView> lookup(StringView key) const;
|
||||
[[nodiscard]] bool contains(StringView key) const;
|
||||
|
||||
|
@ -89,12 +89,12 @@ public:
|
|||
[[nodiscard]] size_t switch_to_tty() const;
|
||||
|
||||
private:
|
||||
CommandLine(const String&);
|
||||
CommandLine(StringView);
|
||||
|
||||
void add_arguments(const Vector<StringView>& args);
|
||||
void build_commandline(const String& cmdline_from_bootloader);
|
||||
static NonnullOwnPtr<KString> build_commandline(StringView cmdline_from_bootloader);
|
||||
|
||||
String m_string;
|
||||
NonnullOwnPtr<KString> m_string;
|
||||
HashMap<StringView, StringView> m_params;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue