mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11: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:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -27,7 +27,7 @@ void ConnectionFromClient::die()
|
|||
exit(0);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::greet(String const& project_root)
|
||||
void ConnectionFromClient::greet(DeprecatedString const& project_root)
|
||||
{
|
||||
m_filedb.set_project_root(project_root);
|
||||
if (unveil(project_root.characters(), "r") < 0) {
|
||||
|
@ -40,7 +40,7 @@ void ConnectionFromClient::greet(String const& project_root)
|
|||
}
|
||||
}
|
||||
|
||||
void ConnectionFromClient::file_opened(String const& filename, IPC::File const& file)
|
||||
void ConnectionFromClient::file_opened(DeprecatedString const& filename, IPC::File const& file)
|
||||
{
|
||||
if (m_filedb.is_open(filename)) {
|
||||
return;
|
||||
|
@ -49,7 +49,7 @@ void ConnectionFromClient::file_opened(String const& filename, IPC::File const&
|
|||
m_autocomplete_engine->file_opened(filename);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::file_edit_insert_text(String const& filename, String const& text, i32 start_line, i32 start_column)
|
||||
void ConnectionFromClient::file_edit_insert_text(DeprecatedString const& filename, DeprecatedString const& text, i32 start_line, i32 start_column)
|
||||
{
|
||||
dbgln_if(LANGUAGE_SERVER_DEBUG, "InsertText for file: {}", filename);
|
||||
dbgln_if(LANGUAGE_SERVER_DEBUG, "Text: {}", text);
|
||||
|
@ -58,7 +58,7 @@ void ConnectionFromClient::file_edit_insert_text(String const& filename, String
|
|||
m_autocomplete_engine->on_edit(filename);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::file_edit_remove_text(String const& filename, i32 start_line, i32 start_column, i32 end_line, i32 end_column)
|
||||
void ConnectionFromClient::file_edit_remove_text(DeprecatedString const& filename, i32 start_line, i32 start_column, i32 end_line, i32 end_column)
|
||||
{
|
||||
dbgln_if(LANGUAGE_SERVER_DEBUG, "RemoveText for file: {}", filename);
|
||||
dbgln_if(LANGUAGE_SERVER_DEBUG, "[{}:{} - {}:{}]", start_line, start_column, end_line, end_column);
|
||||
|
@ -81,7 +81,7 @@ void ConnectionFromClient::auto_complete_suggestions(CodeComprehension::ProjectL
|
|||
async_auto_complete_suggestions(move(suggestions));
|
||||
}
|
||||
|
||||
void ConnectionFromClient::set_file_content(String const& filename, String const& content)
|
||||
void ConnectionFromClient::set_file_content(DeprecatedString const& filename, DeprecatedString const& content)
|
||||
{
|
||||
dbgln_if(LANGUAGE_SERVER_DEBUG, "SetFileContent: {}", filename);
|
||||
auto document = m_filedb.get_document(filename);
|
||||
|
@ -140,7 +140,7 @@ void ConnectionFromClient::get_parameters_hint(CodeComprehension::ProjectLocatio
|
|||
async_parameters_hint_result(params->params, params->current_index);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::get_tokens_info(String const& filename)
|
||||
void ConnectionFromClient::get_tokens_info(DeprecatedString const& filename)
|
||||
{
|
||||
dbgln_if(LANGUAGE_SERVER_DEBUG, "GetTokenInfo: {}", filename);
|
||||
auto document = m_filedb.get_document(filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue