BAN: Rename StringView suffix from _sv to sv

This commit is contained in:
Bananymous
2023-03-16 12:15:16 +02:00
parent 8b8e3cbbf0
commit c012822d49
5 changed files with 9 additions and 9 deletions

View File

@@ -91,7 +91,7 @@ namespace Kernel
for (auto& partition : device->partitions())
{
if (partition.name() == "banan-root"_sv)
if (partition.name() == "banan-root"sv)
{
if (m_root_inode)
dwarnln("multiple root partitions found");

View File

@@ -20,14 +20,14 @@ namespace Kernel
{
using namespace BAN;
static auto s_default_prompt = "\\[\e[32m\\]user\\[\e[m\\]# "_sv;
static auto s_default_prompt = "\\[\e[32m\\]user\\[\e[m\\]# "sv;
Shell::Shell(TTY* tty)
: m_tty(tty)
{
Input::register_key_event_callback({ &Shell::key_event_callback, this });
set_prompt(s_default_prompt);
MUST(m_buffer.push_back(""_sv));
MUST(m_buffer.push_back(""sv));
}
void Shell::set_prompt(StringView prompt)
@@ -76,7 +76,7 @@ namespace Kernel
if (command.empty())
break;
MUST(result.push_back(""_sv));
MUST(result.push_back(""sv));
char quoted = '\0';
bool escape = false;
@@ -399,7 +399,7 @@ argument_done:
TTY_PRINTLN("{}", res.error());
MUST(m_old_buffer.push_back(current_buffer));
m_buffer = m_old_buffer;
MUST(m_buffer.push_back(""_sv));
MUST(m_buffer.push_back(""sv));
m_cursor_pos.line = m_buffer.size() - 1;
}
m_cursor_pos.col = 0;