1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +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:
Linus Groh 2022-12-04 18:02:33 +00:00 committed by Andreas Kling
parent f74251606d
commit 6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions

View file

@ -6,10 +6,10 @@
#include "Lexer.h"
#include <AK/CharacterTypes.h>
#include <AK/DeprecatedString.h>
#include <AK/Function.h>
#include <AK/HashTable.h>
#include <AK/StdLibExtras.h>
#include <AK/String.h>
namespace Cpp {
@ -205,7 +205,7 @@ constexpr StringView s_known_types[] = {
static bool is_keyword(StringView string)
{
static HashTable<String> keywords(array_size(s_known_keywords));
static HashTable<DeprecatedString> keywords(array_size(s_known_keywords));
if (keywords.is_empty()) {
keywords.set_from(s_known_keywords);
}
@ -214,7 +214,7 @@ static bool is_keyword(StringView string)
static bool is_known_type(StringView string)
{
static HashTable<String> types(array_size(s_known_types));
static HashTable<DeprecatedString> types(array_size(s_known_types));
if (types.is_empty()) {
types.set_from(s_known_types);
}