mirror of
https://github.com/kanaka/mal.git
synced 2024-11-10 12:47:45 +03:00
19 lines
440 B
C++
19 lines
440 B
C++
#ifndef INCLUDE_STRING_H
|
|
#define INCLUDE_STRING_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
typedef std::string String;
|
|
typedef std::vector<String> StringVec;
|
|
|
|
#define STRF stringPrintf
|
|
#define PLURAL(n) &("s"[(n)==1])
|
|
|
|
extern String stringPrintf(const char* fmt, ...);
|
|
extern String copyAndFree(char* mallocedString);
|
|
extern String escape(const String& s);
|
|
extern String unescape(const String& s);
|
|
|
|
#endif // INCLUDE_STRING_H
|