-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathStrings.h
37 lines (23 loc) · 964 Bytes
/
Strings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _RUNEXE_STRINGS_H_
#define _RUNEXE_STRINGS_H_
#include <string>
#include <vector>
#include <cstdarg>
namespace runexe {
class Strings {
public:
const static int MAX_FORMAT_LENGTH = 8192;
static std::string format(const char *format, ...);
static std::string format(const char *format, std::va_list ap);
static std::string trim(const std::string &s);
static bool checkIntegerIdentialToString(const std::string &s, long long x);
static bool checkDoubleIdentialToString(const std::string &s, double x);
static std::string integerToString(long long x);
static std::string doubleToString(double x);
static int parseInt(const std::string &s);
static double parseDouble(const std::string &s);
static long long parseInt64(const std::string &s);
static std::vector<std::string> tokenizeCommandLine(const std::string &commandLine);
};
}
#endif