diff options
| author | Ruslan Mustakov | 2017-10-02 22:01:43 +0700 |
|---|---|---|
| committer | Ruslan Mustakov | 2017-11-21 01:16:49 +0700 |
| commit | 8f0f327f0207cbde27bbfba3ac106b9457d7201b (patch) | |
| tree | 873fcacabc6feaee5dad537f654a3df2c4d3f50e /core/ustring.cpp | |
| parent | 82ad05a20ef4420122b18eadf3835c4a8a49ba19 (diff) | |
| download | godot-8f0f327f0207cbde27bbfba3ac106b9457d7201b.tar.gz godot-8f0f327f0207cbde27bbfba3ac106b9457d7201b.tar.zst godot-8f0f327f0207cbde27bbfba3ac106b9457d7201b.zip | |
Diffstat (limited to 'core/ustring.cpp')
| -rw-r--r-- | core/ustring.cpp | 11 |
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); |
