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

Method get_file

core/string/ustring.cpp:5319–5326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5317}
5318
5319String String::get_file() const {
5320 int sep = MAX(rfind_char('/'), rfind_char('\\'));
5321 if (sep == -1) {
5322 return *this;
5323 }
5324
5325 return substr(sep + 1, length());
5326}
5327
5328String String::get_extension() const {
5329 int pos = rfind_char('.');

Callers 15

get_as_textMethod · 0.45
validate_pathMethod · 0.45
get_latest_fxrFunction · 0.45
_encode_buffer_glbMethod · 0.45
_encode_buffer_binsMethod · 0.45
_parse_imagesMethod · 0.45
write_to_filesystemMethod · 0.45
append_from_fileMethod · 0.45
import_sceneMethod · 0.45
gltf_importFunction · 0.45
initFunction · 0.45

Calls 1

MAXFunction · 0.85

Tested by 3

gltf_importFunction · 0.36
initFunction · 0.36
initFunction · 0.36