Add String::replace_char(s) methods for performance and convenience

This commit is contained in:
A Thousand Ships committed 2025-04-10 13:08:45 +02:00
1 parent c374ce211c
commit 889410dcda
67 files changed
+297 -137

No files matched your search

+1 -1
View File
@@ -362,7 +362,7 @@ Ref<Script> CSharpLanguage::make_template(const String &p_template, const String
Ref<CSharpScript> scr;
scr.instantiate();
String class_name_no_spaces = p_class_name.replace(" ", "_");
String class_name_no_spaces = p_class_name.replace_char(' ', '_');
String base_class_name = get_base_class_name(p_base_class_name, class_name_no_spaces);
String processed_template = p_template;
processed_template = processed_template.replace("_BINDINGS_NAMESPACE_", BINDINGS_NAMESPACE)