MCPcopy Create free account
hub / github.com/crownengine/crown / join

Function join

src/core/filesystem/path.cpp:62–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 void join(DynamicString &path, const StringView &path_a, const StringView &path_b)
63 {
64 const u32 la = path_a.length();
65 const u32 lb = path_b.length();
66 path.reserve(la + lb + 1);
67 path = path_a;
68 if (la != 0 && lb != 0)
69 path += PATH_SEPARATOR;
70 path += path_b;
71 }
72
73 void join(DynamicString &path, const char *path_a, const char *path_b)
74 {

Callers 15

add_subdirectoriesMethod · 0.70
full_pathMethod · 0.70
scan_subdirectoriesMethod · 0.70
full_pathMethod · 0.70
absolute_pathMethod · 0.70
main_internalFunction · 0.50
user_data_dirFunction · 0.50
test_pathFunction · 0.50
test_file_monitorFunction · 0.50
destination_pathFunction · 0.50
stream_destination_pathFunction · 0.50
temporary_pathMethod · 0.50

Calls 3

StringViewClass · 0.50
lengthMethod · 0.45
reserveMethod · 0.45

Tested by 2

test_pathFunction · 0.40
test_file_monitorFunction · 0.40