mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:47:35 +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
|
@ -7,7 +7,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/String.h>
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <LibCore/ElapsedTimer.h>
|
||||
#include <LibCore/Notifier.h>
|
||||
#include <LibCore/Timer.h>
|
||||
|
@ -57,7 +57,7 @@ public:
|
|||
|
||||
bool has_selection() const;
|
||||
bool selection_contains(const VT::Position&) const;
|
||||
String selected_text() const;
|
||||
DeprecatedString selected_text() const;
|
||||
VT::Range normalized_selection() const { return m_selection.normalized(); }
|
||||
void set_selection(const VT::Range& selection);
|
||||
VT::Position buffer_position_at(Gfx::IntPoint const&) const;
|
||||
|
@ -103,7 +103,7 @@ public:
|
|||
virtual void set_cursor_shape(CursorShape) override;
|
||||
|
||||
static Optional<VT::CursorShape> parse_cursor_shape(StringView);
|
||||
static String stringify_cursor_shape(VT::CursorShape);
|
||||
static DeprecatedString stringify_cursor_shape(VT::CursorShape);
|
||||
|
||||
private:
|
||||
TerminalWidget(int ptm_fd, bool automatic_size_policy);
|
||||
|
@ -136,7 +136,7 @@ private:
|
|||
virtual void emit(u8 const*, size_t) override;
|
||||
|
||||
// ^GUI::Clipboard::ClipboardClient
|
||||
virtual void clipboard_content_did_change(String const&) override { update_paste_action(); }
|
||||
virtual void clipboard_content_did_change(DeprecatedString const&) override { update_paste_action(); }
|
||||
|
||||
void send_non_user_input(ReadonlyBytes);
|
||||
|
||||
|
@ -165,21 +165,21 @@ private:
|
|||
|
||||
VT::Range m_selection;
|
||||
|
||||
String m_hovered_href;
|
||||
String m_hovered_href_id;
|
||||
DeprecatedString m_hovered_href;
|
||||
DeprecatedString m_hovered_href_id;
|
||||
|
||||
String m_active_href;
|
||||
String m_active_href_id;
|
||||
DeprecatedString m_active_href;
|
||||
DeprecatedString m_active_href_id;
|
||||
|
||||
// Snapshot of m_hovered_href when opening a context menu for a hyperlink.
|
||||
String m_context_menu_href;
|
||||
DeprecatedString m_context_menu_href;
|
||||
|
||||
unsigned m_colors[256];
|
||||
Gfx::Color m_default_foreground_color;
|
||||
Gfx::Color m_default_background_color;
|
||||
bool m_show_bold_text_as_bright { true };
|
||||
|
||||
String m_color_scheme_name;
|
||||
DeprecatedString m_color_scheme_name;
|
||||
|
||||
BellMode m_bell_mode { BellMode::Visible };
|
||||
bool m_alt_key_held { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue