mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:17: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:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -21,7 +21,7 @@
|
|||
#ifdef KERNEL
|
||||
# include <Kernel/KString.h>
|
||||
#else
|
||||
# include <AK/String.h>
|
||||
# include <AK/DeprecatedString.h>
|
||||
#endif
|
||||
|
||||
namespace EDID {
|
||||
|
@ -86,12 +86,12 @@ public:
|
|||
|
||||
#ifndef KERNEL
|
||||
static ErrorOr<Parser> from_display_connector_device(int);
|
||||
static ErrorOr<Parser> from_display_connector_device(String const&);
|
||||
static ErrorOr<Parser> from_display_connector_device(DeprecatedString const&);
|
||||
#endif
|
||||
|
||||
StringView legacy_manufacturer_id() const;
|
||||
#ifndef KERNEL
|
||||
String manufacturer_name() const;
|
||||
DeprecatedString manufacturer_name() const;
|
||||
#endif
|
||||
|
||||
u16 product_code() const;
|
||||
|
@ -366,8 +366,8 @@ public:
|
|||
Optional<DetailedTiming> detailed_timing(size_t) const;
|
||||
|
||||
#ifndef KERNEL
|
||||
String display_product_name() const;
|
||||
String display_product_serial_number() const;
|
||||
DeprecatedString display_product_name() const;
|
||||
DeprecatedString display_product_serial_number() const;
|
||||
#endif
|
||||
|
||||
ErrorOr<IterationDecision> for_each_short_video_descriptor(Function<IterationDecision(unsigned, bool, VIC::Details const&)>) const;
|
||||
|
@ -454,7 +454,7 @@ private:
|
|||
#ifdef KERNEL
|
||||
OwnPtr<Kernel::KString> m_version;
|
||||
#else
|
||||
String m_version;
|
||||
DeprecatedString m_version;
|
||||
#endif
|
||||
char m_legacy_manufacturer_id[4] {};
|
||||
bool m_legacy_manufacturer_id_valid { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue