VWeb/Source/StringUtils.h

19 lines
635 B
C
Raw Permalink Normal View History

2022-08-23 14:13:21 +02:00
#pragma once
#include <vector>
#include <string>
namespace VWeb {
class String {
public:
static std::vector<std::string> Split(const std::string& s,
2022-11-09 14:34:20 +01:00
const std::string& delimiter,
int limit = -1);
2022-08-23 14:13:21 +02:00
static std::string Join(const std::vector<std::string>& items, const std::string& delimiter);
static int ToNumber(std::string& string, int def);
static void ToLowerCase(std::string& value);
static void Trim(std::string& value);
static std::string TrimCopy(const std::string& value);
static std::string UrlDecode(const std::string& value);
};
}