diff options
author | Alexander Holland <alexander.holland@live.de> | 2018-07-25 12:14:48 +0200 |
---|---|---|
committer | Alexander Holland <alexander.holland@live.de> | 2018-07-25 12:14:48 +0200 |
commit | 84db7056b79010231c76b658b090265023ed01ef (patch) | |
tree | 996f840c40fa461dde8e5cfa95c384a9d3efac47 /core/ustring.cpp | |
parent | f8e8ac2c664a12f3af2b9bb545da193d86c75503 (diff) | |
download | redot-engine-84db7056b79010231c76b658b090265023ed01ef.tar.gz |
Fix format ignores case in placeholder
Diffstat (limited to 'core/ustring.cpp')
-rw-r--r-- | core/ustring.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index f552cb13ac..5f3858cb17 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -2768,7 +2768,7 @@ String String::format(const Variant &values, String placeholder) const { val = val.substr(1, val.length() - 2); } - new_string = new_string.replacen(placeholder.replace("_", key), val); + new_string = new_string.replace(placeholder.replace("_", key), val); } else { ERR_PRINT(String("STRING.format Inner Array size != 2 ").ascii().get_data()); } @@ -2781,7 +2781,7 @@ String String::format(const Variant &values, String placeholder) const { val = val.substr(1, val.length() - 2); } - new_string = new_string.replacen(placeholder.replace("_", i_as_str), val); + new_string = new_string.replace(placeholder.replace("_", i_as_str), val); } } } else if (values.get_type() == Variant::DICTIONARY) { @@ -2801,7 +2801,7 @@ String String::format(const Variant &values, String placeholder) const { val = val.substr(1, val.length() - 2); } - new_string = new_string.replacen(placeholder.replace("_", key), val); + new_string = new_string.replace(placeholder.replace("_", key), val); } } else { ERR_PRINT(String("Invalid type: use Array or Dictionary.").ascii().get_data()); |