From e791f4fce275247a66eb657ff7cc7be4ffd4d5bc Mon Sep 17 00:00:00 2001 From: Micky Date: Sun, 20 Nov 2022 12:29:50 +0100 Subject: Double precision of `String.split_floats` --- core/string/ustring.cpp | 4 ++-- core/string/ustring.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/string/ustring.cpp b/core/string/ustring.cpp index 8993f9667d..175c42542b 100644 --- a/core/string/ustring.cpp +++ b/core/string/ustring.cpp @@ -1256,8 +1256,8 @@ Vector String::rsplit(const String &p_splitter, bool p_allow_empty, int return ret; } -Vector String::split_floats(const String &p_splitter, bool p_allow_empty) const { - Vector ret; +Vector String::split_floats(const String &p_splitter, bool p_allow_empty) const { + Vector ret; int from = 0; int len = length(); diff --git a/core/string/ustring.h b/core/string/ustring.h index 8af74584f3..0c171024f7 100644 --- a/core/string/ustring.h +++ b/core/string/ustring.h @@ -348,7 +348,7 @@ public: Vector split(const String &p_splitter = "", bool p_allow_empty = true, int p_maxsplit = 0) const; Vector rsplit(const String &p_splitter = "", bool p_allow_empty = true, int p_maxsplit = 0) const; Vector split_spaces() const; - Vector split_floats(const String &p_splitter, bool p_allow_empty = true) const; + Vector split_floats(const String &p_splitter, bool p_allow_empty = true) const; Vector split_floats_mk(const Vector &p_splitters, bool p_allow_empty = true) const; Vector split_ints(const String &p_splitter, bool p_allow_empty = true) const; Vector split_ints_mk(const Vector &p_splitters, bool p_allow_empty = true) const; -- cgit v1.2.3