1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +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

@ -5,7 +5,7 @@
*/
#include "GridTrackSize.h"
#include <AK/String.h>
#include <AK/DeprecatedString.h>
#include <LibWeb/CSS/Length.h>
#include <LibWeb/CSS/Percentage.h>
#include <LibWeb/CSS/StyleValue.h>
@ -44,7 +44,7 @@ GridSize GridSize::make_auto()
return GridSize(CSS::Length::make_auto());
}
String GridSize::to_string() const
DeprecatedString GridSize::to_string() const
{
switch (m_type) {
case Type::Length:
@ -52,7 +52,7 @@ String GridSize::to_string() const
case Type::Percentage:
return m_percentage.to_string();
case Type::FlexibleLength:
return String::formatted("{}fr", m_flexible_length);
return DeprecatedString::formatted("{}fr", m_flexible_length);
}
VERIFY_NOT_REACHED();
}
@ -68,7 +68,7 @@ GridMinMax::GridMinMax(GridSize min_grid_size, GridSize max_grid_size)
{
}
String GridMinMax::to_string() const
DeprecatedString GridMinMax::to_string() const
{
StringBuilder builder;
builder.append("minmax("sv);
@ -96,7 +96,7 @@ GridRepeat::GridRepeat()
{
}
String GridRepeat::to_string() const
DeprecatedString GridRepeat::to_string() const
{
StringBuilder builder;
builder.append("repeat("sv);
@ -137,7 +137,7 @@ ExplicitGridTrack::ExplicitGridTrack(CSS::GridSize grid_size)
{
}
String ExplicitGridTrack::to_string() const
DeprecatedString ExplicitGridTrack::to_string() const
{
switch (m_type) {
case Type::MinMax:
@ -151,7 +151,7 @@ String ExplicitGridTrack::to_string() const
}
}
GridTrackSizeList::GridTrackSizeList(Vector<CSS::ExplicitGridTrack> track_list, Vector<Vector<String>> line_names)
GridTrackSizeList::GridTrackSizeList(Vector<CSS::ExplicitGridTrack> track_list, Vector<Vector<DeprecatedString>> line_names)
: m_track_list(track_list)
, m_line_names(line_names)
{
@ -168,7 +168,7 @@ GridTrackSizeList GridTrackSizeList::make_auto()
return GridTrackSizeList();
}
String GridTrackSizeList::to_string() const
DeprecatedString GridTrackSizeList::to_string() const
{
StringBuilder builder;
auto print_line_names = [&](size_t index) -> void {