aboutsummaryrefslogtreecommitdiff
path: root/core/ustring.cpp
diff options
context:
space:
mode:
authorRuslan Mustakov2017-10-02 22:01:43 +0700
committerRuslan Mustakov2017-11-21 01:16:49 +0700
commit8f0f327f0207cbde27bbfba3ac106b9457d7201b (patch)
tree873fcacabc6feaee5dad537f654a3df2c4d3f50e /core/ustring.cpp
parent82ad05a20ef4420122b18eadf3835c4a8a49ba19 (diff)
downloadgodot-8f0f327f0207cbde27bbfba3ac106b9457d7201b.tar.gz
godot-8f0f327f0207cbde27bbfba3ac106b9457d7201b.tar.zst
godot-8f0f327f0207cbde27bbfba3ac106b9457d7201b.zip
Diffstat (limited to 'core/ustring.cpp')
-rw-r--r--core/ustring.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp
index 7c3a784c5..8d40f5638 100644
--- a/core/ustring.cpp
+++ b/core/ustring.cpp
@@ -862,6 +862,17 @@ Vector<int> String::split_ints_mk(const Vector<String> &p_splitters, bool p_allo
return ret;
}
+String String::join(Vector<String> parts) {
+ String ret;
+ for (int i = 0; i < parts.size(); ++i) {
+ if (i > 0) {
+ ret += *this;
+ }
+ ret += parts[i];
+ }
+ return ret;
+}
+
CharType String::char_uppercase(CharType p_char) {
return _find_upper(p_char);