diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-06-03 15:41:22 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-06-03 16:00:06 +0200 |
commit | 5ea1c75d639b53ef1fe84ef33bb65a844f6741b6 (patch) | |
tree | 09ec40fd359c5e01757ada06ae9a720c3b91c3c3 /core/string | |
parent | 7ab34e1a96ad6210bd583a00df379637b31169d6 (diff) |
Rename `String.is_abs_path()` to `String.is_absolute_path()`
This is more consistent with `NodePath.is_absolute()`.
Diffstat (limited to 'core/string')
-rw-r--r-- | core/string/ustring.cpp | 4 | ||||
-rw-r--r-- | core/string/ustring.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/string/ustring.cpp b/core/string/ustring.cpp index 49cf171f2b..f4b864ed40 100644 --- a/core/string/ustring.cpp +++ b/core/string/ustring.cpp @@ -3786,7 +3786,7 @@ String String::humanize_size(uint64_t p_size) { return String::num(p_size / divisor).pad_decimals(digits) + " " + prefixes[prefix_idx]; } -bool String::is_abs_path() const { +bool String::is_absolute_path() const { if (length() > 1) { return (operator[](0) == '/' || operator[](0) == '\\' || find(":/") != -1 || find(":\\") != -1); } else if ((length()) == 1) { @@ -4396,7 +4396,7 @@ bool String::is_resource_file() const { } bool String::is_rel_path() const { - return !is_abs_path(); + return !is_absolute_path(); } String String::get_base_dir() const { diff --git a/core/string/ustring.h b/core/string/ustring.h index a56845deff..f05865165d 100644 --- a/core/string/ustring.h +++ b/core/string/ustring.h @@ -397,7 +397,7 @@ public: _FORCE_INLINE_ bool is_empty() const { return length() == 0; } // path functions - bool is_abs_path() const; + bool is_absolute_path() const; bool is_rel_path() const; bool is_resource_file() const; String path_to(const String &p_path) const; |