summaryrefslogtreecommitdiff
path: root/core/string
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2021-08-30 20:45:45 -0300
committerGitHub <noreply@github.com>2021-08-30 20:45:45 -0300
commitbcd73fc00a913babb501dd119d3d833aceaf88da (patch)
treef5213fab100f72bbfecba792e0b05b72c2ddd2da /core/string
parentd085b2d04d6a6f972cc252532dbbf07f0d54fc3c (diff)
parentd11c1afc0497894edd8307434948fc8fb4bb1b11 (diff)
Merge pull request #52240 from Rubonnek/rename-rel-path
Rename `String::is_rel_path` to `String::is_relative_path`
Diffstat (limited to 'core/string')
-rw-r--r--core/string/ustring.cpp2
-rw-r--r--core/string/ustring.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/string/ustring.cpp b/core/string/ustring.cpp
index a30d6b9102..a3b5356b1d 100644
--- a/core/string/ustring.cpp
+++ b/core/string/ustring.cpp
@@ -4324,7 +4324,7 @@ bool String::is_resource_file() const {
return begins_with("res://") && find("::") == -1;
}
-bool String::is_rel_path() const {
+bool String::is_relative_path() const {
return !is_absolute_path();
}
diff --git a/core/string/ustring.h b/core/string/ustring.h
index ffb354d6e1..6a4b40da60 100644
--- a/core/string/ustring.h
+++ b/core/string/ustring.h
@@ -398,7 +398,7 @@ public:
// path functions
bool is_absolute_path() const;
- bool is_rel_path() const;
+ bool is_relative_path() const;
bool is_resource_file() const;
String path_to(const String &p_path) const;
String path_to_file(const String &p_path) const;