Fixes
This commit is contained in:
parent
8505032307
commit
bbd208aacf
6 changed files with 238 additions and 224 deletions
|
|
@ -2,30 +2,33 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace VUtils {
|
||||
class StringUtils {
|
||||
public:
|
||||
static void leftTrim(std::string &s);
|
||||
class StringUtils {
|
||||
public:
|
||||
static void leftTrim(std::string &s);
|
||||
|
||||
static void rightTrim(std::string &s);
|
||||
static void rightTrim(std::string &s);
|
||||
|
||||
static void trim(std::string &s);
|
||||
static void trim(std::string &s);
|
||||
|
||||
static std::string leftTrimCopy(std::string s);
|
||||
static std::string leftTrimCopy(std::string s);
|
||||
|
||||
static std::string rightTrimCopy(std::string s);
|
||||
static std::string rightTrimCopy(std::string s);
|
||||
|
||||
static std::string trimCopy(std::string s);
|
||||
static std::string trimCopy(std::string s);
|
||||
|
||||
static std::vector<std::string> split(const std::string &s, const std::string &delimiter);
|
||||
static std::vector<std::string> split(const std::string &s,
|
||||
const std::string &delimiter);
|
||||
|
||||
static std::string urlDecode(const std::string &url);
|
||||
static std::string urlDecode(const std::string &url);
|
||||
|
||||
static std::string urlEncode(const std::string &url);
|
||||
static std::string urlEncode(const std::string &url);
|
||||
|
||||
static std::string join(const std::vector<std::string>& vector, const std::string& delimiter);
|
||||
static std::string join(const std::vector<std::string> &vector,
|
||||
const std::string &delimiter);
|
||||
|
||||
static bool hasNullByte(int size, const char string[1024]);
|
||||
};
|
||||
}// namespace VUtils
|
||||
static bool hasNullByte(int size, const char string[1024]);
|
||||
};
|
||||
} // namespace VUtils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue