summaryrefslogtreecommitdiffhomepage
path: root/stringutil.h
blob: 6cd74aaa158fa9dbbd5f46dc7990e0cd2df7297d (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

#include <string>
#include <vector>

#define EXPORT __attribute__((visibility("default")))

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 startsWithAnyOfLower(const std::string &s, const std::vector<std::string> &list);