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

#include <string>
#include <vector>

std::string strfmt(const char* fmt, ...);

std::vector<std::string> split(std::string value, const std::string separators = "\r\n ");
std::string join(std::vector<std::string> vs, std::string separator = "\n");
bool startsWithAnyOfLower(const std::string &s, const std::vector<std::string> &list);