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

Method path_join

core/string/ustring.cpp:5337–5345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5335}
5336
5337String String::path_join(const String &p_file) const {
5338 if (is_empty()) {
5339 return p_file;
5340 }
5341 if (operator[](length() - 1) == '/' || (p_file.size() > 0 && p_file.operator[](0) == '/')) {
5342 return *this + p_file;
5343 }
5344 return *this + "/" + p_file;
5345}
5346
5347String String::property_name_encode() const {
5348 const char32_t *cstr = get_data();

Callers 15

_msg_rq_screenshotMethod · 0.80
_load_bitmap_fontMethod · 0.80
loadMethod · 0.80
get_dependenciesMethod · 0.80
rename_dependenciesMethod · 0.80
get_selected_filesMethod · 0.80
_dir_submittedMethod · 0.80
_save_confirm_pressedMethod · 0.80
_action_pressedMethod · 0.80
_item_menu_id_pressedMethod · 0.80
update_file_listMethod · 0.80
get_current_pathMethod · 0.80

Calls 2

sizeMethod · 0.65
operator[]Method · 0.45

Tested by 10

initFunction · 0.64
initFunction · 0.64
test_directoryFunction · 0.64
setup_global_classesFunction · 0.64
make_tests_for_dirMethod · 0.64
get_data_pathMethod · 0.64
get_temp_pathMethod · 0.64
initialize_logsFunction · 0.64
cleanup_logsFunction · 0.64