MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / is_absolute_path

Method is_absolute_path

core/string/ustring.cpp:4542–4550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4540}
4541
4542bool String::is_absolute_path() const {
4543 if (length() > 1) {
4544 return (operator[](0) == '/' || operator[](0) == '\\' || find(":/") != -1 || find(":\\") != -1);
4545 } else if ((length()) == 1) {
4546 return (operator[](0) == '/' || operator[](0) == '\\');
4547 } else {
4548 return false;
4549 }
4550}
4551
4552String String::validate_ascii_identifier() const {
4553 if (is_empty()) {

Callers 15

_dir_submittedMethod · 0.80
_action_pressedMethod · 0.80
_GodotSharpDirsMethod · 0.80
abspathFunction · 0.80
_parse_imagesMethod · 0.80
icon_annotationMethod · 0.80
localize_pathMethod · 0.80
is_case_sensitiveMethod · 0.80
open_internalMethod · 0.80
_resources_changedMethod · 0.80
_parse_material_libraryFunction · 0.80

Calls 1

findFunction · 0.85

Tested by

no test coverage detected