summaryrefslogtreecommitdiffstats
path: root/src/core/strtools.hh
blob: 476a5f75f1f825a92fdde021e56a1e1618a8c23f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef CORE_STRTOOLS_HH
#define CORE_STRTOOLS_HH 1
#pragma once

namespace strtools
{
bool is_whitespace(const std::string& string);
} // namespace strtools

namespace strtools
{
std::string join(const std::vector<std::string>& strings, const std::string& separator);
std::vector<std::string> split(const std::string& string, const std::string& separator);
} // namespace strtools

namespace strtools
{
std::string trim_whitespace(const std::string& string);
} // namespace strtools

#endif // CORE_STRTOOLS_HH