Added 2 const qualifiers.

This commit is contained in:
Relintai 2023-05-25 21:54:57 +02:00
parent 0a41054007
commit 474e253aa1
3 changed files with 3 additions and 3 deletions

View File

@ -433,7 +433,7 @@ public:
return OK;
}
String join(String delimiter) {
String join(String delimiter) const {
String rs = "";
int s = size();
Read r = read();

View File

@ -2802,7 +2802,7 @@ Vector<int> String::split_ints_mk(const Vector<String> &p_splitters, bool p_allo
return ret;
}
String String::join(Vector<String> parts) {
String String::join(Vector<String> parts) const {
String ret;
for (int i = 0; i < parts.size(); ++i) {
if (i > 0) {

View File

@ -405,7 +405,7 @@ public:
Vector<int> split_ints(const String &p_splitter, bool p_allow_empty = true) const;
Vector<int> split_ints_mk(const Vector<String> &p_splitters, bool p_allow_empty = true) const;
String join(Vector<String> parts);
String join(Vector<String> parts) const;
static CharType char_uppercase(CharType p_char);
static CharType char_lowercase(CharType p_char);