MCPcopy Create free account
hub / github.com/WallBreaker2/op / TrimCopy

Function TrimCopy

tests/test_support.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49std::wstring TrimCopy(const std::wstring &value) {
50 const auto start = value.find_first_not_of(L" \t\r\n");
51 if (start == std::wstring::npos)
52 return L"";
53 const auto end = value.find_last_not_of(L" \t\r\n");
54 return value.substr(start, end - start + 1);
55}
56
57std::wstring GetEnvString(const wchar_t *name) {
58 wchar_t *value = nullptr;

Callers 1

GetEnvStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected