mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17: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
|
@ -20,27 +20,27 @@ Client& Client::the()
|
|||
return *s_the;
|
||||
}
|
||||
|
||||
void Client::pledge_domains(Vector<String> const& domains)
|
||||
void Client::pledge_domains(Vector<DeprecatedString> const& domains)
|
||||
{
|
||||
async_pledge_domains(domains);
|
||||
}
|
||||
|
||||
void Client::monitor_domain(String const& domain)
|
||||
void Client::monitor_domain(DeprecatedString const& domain)
|
||||
{
|
||||
async_monitor_domain(domain);
|
||||
}
|
||||
|
||||
Vector<String> Client::list_keys(StringView domain, StringView group)
|
||||
Vector<DeprecatedString> Client::list_keys(StringView domain, StringView group)
|
||||
{
|
||||
return list_config_keys(domain, group);
|
||||
}
|
||||
|
||||
Vector<String> Client::list_groups(StringView domain)
|
||||
Vector<DeprecatedString> Client::list_groups(StringView domain)
|
||||
{
|
||||
return list_config_groups(domain);
|
||||
}
|
||||
|
||||
String Client::read_string(StringView domain, StringView group, StringView key, StringView fallback)
|
||||
DeprecatedString Client::read_string(StringView domain, StringView group, StringView key, StringView fallback)
|
||||
{
|
||||
return read_string_value(domain, group, key).value_or(fallback);
|
||||
}
|
||||
|
@ -85,42 +85,42 @@ void Client::add_group(StringView domain, StringView group)
|
|||
add_group_entry(domain, group);
|
||||
}
|
||||
|
||||
void Client::notify_changed_string_value(String const& domain, String const& group, String const& key, String const& value)
|
||||
void Client::notify_changed_string_value(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, DeprecatedString const& value)
|
||||
{
|
||||
Listener::for_each([&](auto& listener) {
|
||||
listener.config_string_did_change(domain, group, key, value);
|
||||
});
|
||||
}
|
||||
|
||||
void Client::notify_changed_i32_value(String const& domain, String const& group, String const& key, i32 value)
|
||||
void Client::notify_changed_i32_value(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, i32 value)
|
||||
{
|
||||
Listener::for_each([&](auto& listener) {
|
||||
listener.config_i32_did_change(domain, group, key, value);
|
||||
});
|
||||
}
|
||||
|
||||
void Client::notify_changed_bool_value(String const& domain, String const& group, String const& key, bool value)
|
||||
void Client::notify_changed_bool_value(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, bool value)
|
||||
{
|
||||
Listener::for_each([&](auto& listener) {
|
||||
listener.config_bool_did_change(domain, group, key, value);
|
||||
});
|
||||
}
|
||||
|
||||
void Client::notify_removed_key(String const& domain, String const& group, String const& key)
|
||||
void Client::notify_removed_key(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key)
|
||||
{
|
||||
Listener::for_each([&](auto& listener) {
|
||||
listener.config_key_was_removed(domain, group, key);
|
||||
});
|
||||
}
|
||||
|
||||
void Client::notify_removed_group(String const& domain, String const& group)
|
||||
void Client::notify_removed_group(DeprecatedString const& domain, DeprecatedString const& group)
|
||||
{
|
||||
Listener::for_each([&](auto& listener) {
|
||||
listener.config_group_was_removed(domain, group);
|
||||
});
|
||||
}
|
||||
|
||||
void Client::notify_added_group(String const& domain, String const& group)
|
||||
void Client::notify_added_group(DeprecatedString const& domain, DeprecatedString const& group)
|
||||
{
|
||||
Listener::for_each([&](auto& listener) {
|
||||
listener.config_group_was_added(domain, group);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue