MCPcopy Create free account
hub / github.com/dobin/RedEdr / StripToFirstDot

Function StripToFirstDot

RedEdr/webserver.cpp:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40
41std::wstring StripToFirstDot(const std::wstring& input) {
42 size_t dot_position = input.find(L'.');
43 if (dot_position != std::wstring::npos) {
44 return input.substr(0, dot_position);
45 }
46 return input;
47}
48
49
50std::vector<std::wstring> GetFilesInDirectory(const std::wstring& directory) {

Callers 1

GetFilesInDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected