mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:08:10 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -6,9 +6,9 @@
|
|||
*/
|
||||
|
||||
#include "TerminalWidget.h"
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/StdLibExtras.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <AK/TemporaryChange.h>
|
||||
#include <AK/Utf32View.h>
|
||||
|
@ -850,12 +850,12 @@ void TerminalWidget::mousemove_event(GUI::MouseEvent& event)
|
|||
auto file_name = LexicalPath::basename(path);
|
||||
|
||||
if (path == handlers[0]) {
|
||||
set_tooltip(String::formatted("Execute {}", app_name));
|
||||
set_tooltip(DeprecatedString::formatted("Execute {}", app_name));
|
||||
} else {
|
||||
set_tooltip(String::formatted("Open {} with {}", file_name, app_name));
|
||||
set_tooltip(DeprecatedString::formatted("Open {} with {}", file_name, app_name));
|
||||
}
|
||||
} else {
|
||||
set_tooltip(String::formatted("Open {} with {}", attribute.href, app_name));
|
||||
set_tooltip(DeprecatedString::formatted("Open {} with {}", attribute.href, app_name));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -954,7 +954,7 @@ int TerminalWidget::scroll_length() const
|
|||
return m_scrollbar->step();
|
||||
}
|
||||
|
||||
String TerminalWidget::selected_text() const
|
||||
DeprecatedString TerminalWidget::selected_text() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
|
||||
|
@ -1105,7 +1105,7 @@ void TerminalWidget::context_menu_event(GUI::ContextMenuEvent& event)
|
|||
auto af = Desktop::AppFile::get_for_app(LexicalPath::basename(handler));
|
||||
if (!af->is_valid())
|
||||
continue;
|
||||
auto action = GUI::Action::create(String::formatted("&Open in {}", af->name()), af->icon().bitmap_for_size(16), [this, handler](auto&) {
|
||||
auto action = GUI::Action::create(DeprecatedString::formatted("&Open in {}", af->name()), af->icon().bitmap_for_size(16), [this, handler](auto&) {
|
||||
Desktop::Launcher::open(m_context_menu_href, handler);
|
||||
});
|
||||
|
||||
|
@ -1218,7 +1218,7 @@ void TerminalWidget::set_color_scheme(StringView name)
|
|||
"White"sv
|
||||
};
|
||||
|
||||
auto path = String::formatted("/res/terminal-colors/{}.ini", name);
|
||||
auto path = DeprecatedString::formatted("/res/terminal-colors/{}.ini", name);
|
||||
auto color_config_or_error = Core::ConfigFile::open(path);
|
||||
if (color_config_or_error.is_error()) {
|
||||
dbgln("Unable to read color scheme file '{}': {}", path, color_config_or_error.error());
|
||||
|
@ -1340,7 +1340,7 @@ Optional<VT::CursorShape> TerminalWidget::parse_cursor_shape(StringView cursor_s
|
|||
return {};
|
||||
}
|
||||
|
||||
String TerminalWidget::stringify_cursor_shape(VT::CursorShape cursor_shape)
|
||||
DeprecatedString TerminalWidget::stringify_cursor_shape(VT::CursorShape cursor_shape)
|
||||
{
|
||||
switch (cursor_shape) {
|
||||
case VT::CursorShape::Block:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue