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

Method get_extension

core/string/ustring.cpp:5328–5335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5326}
5327
5328String String::get_extension() const {
5329 int pos = rfind_char('.');
5330 if (pos < 0 || pos < MAX(rfind_char('/'), rfind_char('\\'))) {
5331 return "";
5332 }
5333
5334 return substr(pos + 1, length());
5335}
5336
5337String String::path_join(const String &p_file) const {
5338 if (is_empty()) {

Callers 15

get_resource_typeMethod · 0.45
get_resource_typeMethod · 0.45
loadMethod · 0.45
get_resource_typeMethod · 0.45
get_scene_groupsMethod · 0.45
get_resource_typeMethod · 0.45
get_resource_typeMethod · 0.45
get_resource_typeMethod · 0.45
get_resource_uidMethod · 0.45
update_file_nameMethod · 0.45

Calls 1

MAXFunction · 0.85

Tested by 1