1
1
mirror of https://github.com/kanaka/mal.git synced 2024-11-10 12:47:45 +03:00
mal/cpp/String.h
Stephen Thirlwall 9ddaa0b91b c++11: step 0
2015-03-27 20:44:42 +11:00

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