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