Commit | Line | Data |
---|---|---|
9ddaa0b9 ST |
1 | #ifndef INCLUDE_STRING_H |
2 | #define INCLUDE_STRING_H | |
3 | ||
4 | #include <string> | |
5 | #include <vector> | |
6 | ||
7 | typedef std::string String; | |
8 | typedef std::vector<String> StringVec; | |
9 | ||
10 | #define STRF stringPrintf | |
11 | #define PLURAL(n) &("s"[(n)==1]) | |
12 | ||
13 | extern String stringPrintf(const char* fmt, ...); | |
14 | extern String copyAndFree(char* mallocedString); | |
15 | extern String escape(const String& s); | |
16 | extern String unescape(const String& s); | |
17 | ||
18 | #endif // INCLUDE_STRING_H |