mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 06:31:13 +00:00
Add String::replace_char(s) methods for performance and convenience
This commit is contained in:
parent
c374ce211c
commit
889410dcda
67 changed files with 297 additions and 137 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue