mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:30:05 +00:00
Add additional alert display columns
- State, counties, start and end time
This commit is contained in:
parent
8fe7d5da6e
commit
fdd981899f
8 changed files with 126 additions and 15 deletions
26
wxdata/source/scwx/util/strings.cpp
Normal file
26
wxdata/source/scwx/util/strings.cpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#include <scwx/util/strings.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace util
|
||||
{
|
||||
|
||||
std::string ToString(const std::vector<std::string>& v)
|
||||
{
|
||||
std::string value {};
|
||||
|
||||
for (const std::string& s : v)
|
||||
{
|
||||
if (!value.empty())
|
||||
{
|
||||
value += ", ";
|
||||
}
|
||||
|
||||
value += s;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
} // namespace util
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue