1 #ifndef INCLUDE_STRING_H
2 #define INCLUDE_STRING_H
7 typedef std::string String
;
8 typedef std::vector
<String
> StringVec
;
10 #define STRF stringPrintf
11 #define PLURAL(n) &("s"[(n)==1])
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
);
18 #endif // INCLUDE_STRING_H