blob: 0ee6ab75d23b1b1a47553b9778b8c1355e77e957 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include <string>
#include <vector>
#define EXPORT __attribute__((visibility("default")))
namespace Reichwein::Stringhelper {
[[deprecated("Better use libfmt or std::format[C++20]")]]
EXPORT std::string strfmt(const char* fmt, ...);
EXPORT std::vector<std::string> split(std::string value, const std::string separators = "\r\n ");
EXPORT std::string join(std::vector<std::string> vs, std::string separator = "\n");
EXPORT bool istartsWithAnyOf(const std::string &s, const std::vector<std::string> &list);
} // namespace
|