1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-01 16:38:31 +00:00

Merge pull request #49279 from Calinou/rename-string-is-abs-path-method

Rename `String.is_abs_path()` to `String.is_absolute_path()`
This commit is contained in:
Rémi Verschelde
2021-06-11 15:58:16 +02:00
committed by GitHub
17 changed files with 27 additions and 27 deletions

View File

@@ -3799,7 +3799,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) {
@@ -4409,7 +4409,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 {