MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / LowerAscii

Function LowerAscii

engine/Poseidon/Core/ModCollection.cpp:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16{
17namespace
18{
19std::string LowerAscii(std::string s)
20{
21 std::transform(s.begin(), s.end(), s.begin(), [](unsigned char c) { return static_cast<char>(std::tolower(c)); });
22 return s;
23}
24
25// Read a top-level string field from <modDir>/mod.json, or "" if absent/unreadable.

Callers 2

ModMatchesTokenFunction · 0.70
LooksLikeModFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected