mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 07:07:44 +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,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/String.h>
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibGUI/Frame.h>
|
||||
#include <LibGfx/Rect.h>
|
||||
|
@ -24,7 +24,7 @@ public:
|
|||
void set_max_guesses(size_t max_guesses);
|
||||
Gfx::IntSize game_size() const;
|
||||
|
||||
Optional<String> random_word(size_t length);
|
||||
Optional<DeprecatedString> random_word(size_t length);
|
||||
size_t shortest_word();
|
||||
size_t longest_word();
|
||||
bool is_checking_guesses() const;
|
||||
|
@ -67,13 +67,13 @@ private:
|
|||
};
|
||||
|
||||
struct Guess {
|
||||
AK::String text;
|
||||
AK::DeprecatedString text;
|
||||
AK::Vector<LetterState> letter_states;
|
||||
};
|
||||
|
||||
AK::Vector<Guess> m_guesses;
|
||||
AK::String m_current_guess;
|
||||
AK::String m_current_word;
|
||||
AK::DeprecatedString m_current_guess;
|
||||
AK::DeprecatedString m_current_word;
|
||||
|
||||
HashMap<size_t, AK::Vector<String>> m_words;
|
||||
HashMap<size_t, AK::Vector<DeprecatedString>> m_words;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue