You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Add String::replace_char(s) methods for performance and convenience
This commit is contained in:
@@ -478,7 +478,7 @@ void EditorPropertyOTVariation::update_property() {
|
||||
String name = TS->tag_to_name(name_tag);
|
||||
String name_cap;
|
||||
{
|
||||
String aux = name.replace("_", " ").strip_edges();
|
||||
String aux = name.replace_char('_', ' ').strip_edges();
|
||||
for (int j = 0; j < aux.get_slice_count(" "); j++) {
|
||||
String slice = aux.get_slicec(' ', j);
|
||||
if (slice.length() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user