MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / join

Function join

src/Core/Utils/VectorUtils.cpp:6–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace obe::Utils::Vector
5{
6 std::string join(
7 std::vector<std::string>& vector, std::string sep, int start, int end)
8 {
9 std::string result;
10 if (end >= vector.size())
11 end = vector.size();
12 if (start >= vector.size() - 1)
13 start = vector.size() - 1;
14 for (int i = start; i < vector.size() - end; i++)
15 {
16 if (i != vector.size() - 1)
17 result += vector[i] + sep;
18 else
19 result += vector[i];
20 }
21 return result;
22 }
23} // namespace obe::Utils::Vector

Callers 15

getNodePathMethod · 0.50
ResourceNotFoundMethod · 0.50
UnknownPackageMethod · 0.50
UnknownWorkspaceMethod · 0.50
UnknownInputActionMethod · 0.50
UnknownInputButtonMethod · 0.50
BootScriptMissingMethod · 0.50
TextureNotFoundMethod · 0.50
FontNotFoundMethod · 0.50
UnknownGameObjectMethod · 0.50

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected