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/ustring.cpp | |
parent | 7ab34e1a96ad6210bd583a00df379637b31169d6 (diff) | |
download | redot-engine-5ea1c75d639b53ef1fe84ef33bb65a844f6741b6.tar.gz |
Rename `String.is_abs_path()` to `String.is_absolute_path()`
This is more consistent with `NodePath.is_absolute()`.
Diffstat (limited to 'core/string/ustring.cpp')
-rw-r--r-- | core/string/ustring.cpp | 4 |
1 files changed, 2 insertions, 2 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 { |