summaryrefslogtreecommitdiffstats
path: root/src/core/utils/string.hh
blob: 36c83cead7f022966fd7d8f6fb659339c0174d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: string.hh
// Description: String utilities

#ifndef CORE_UTILS_STRING_HH
#define CORE_UTILS_STRING_HH
#pragma once

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

namespace utils
{
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 utils

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

#endif