MCPcopy Create free account
hub / github.com/Barracuda09/SATPI / splitPath

Method splitPath

src/StringConverter.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34#include <string.h>
35
36void StringConverter::splitPath(const std::string &fullPath, std::string &path, std::string &file) {
37 std::string::size_type end = fullPath.find_last_of("/\\");
38 path = fullPath.substr(0, end);
39 file = fullPath.substr(end + 1);
40}
41
42std::string StringConverter::stringToUpper(const char *str) {
43 std::string result(str);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected