dpeter99
080f6177d2
Add SDL2 and glm prop files Add shadow file format files Add test project for shadow file format
19 lines
371 B
C++
19 lines
371 B
C++
module shadow_utils;
|
|
|
|
import std.core;
|
|
|
|
|
|
inline std::vector<std::string> explode(const std::string& s, const char& c)
|
|
{
|
|
std::string buff;
|
|
std::vector<std::string> v;
|
|
|
|
for (auto n : s)
|
|
{
|
|
if (n != c) buff += n; else
|
|
if (n == c && buff != "") { v.push_back(buff); buff = ""; }
|
|
}
|
|
if (buff != "") v.push_back(buff);
|
|
|
|
return v;
|
|
} |