tstring ExpectNextT() { const char *p = ExpectNext(); assert(p != NULL); #ifdef _UNICODE PathName convert(p); return tstring(convert); #else return tstring(p); #endif }
double ExpectNextDouble() { const char *p = ExpectNext(); assert(p != NULL); char *endptr; double result = ParseDouble(p, &endptr); if (p == endptr) UsageError(); return result; }
int ExpectNextInt() { const char *p = ExpectNext(); assert(p != NULL); char *endptr; int result = ParseInt(p, &endptr); if (p == endptr) UsageError(); return result; }
tstring ExpectNextT() { const char *p = ExpectNext(); assert(p != nullptr); #ifdef _UNICODE PathName convert(p); return tstring(((Path)convert).c_str()); #else return tstring(p); #endif }
Path ExpectNextPath() { const char *p = ExpectNext(); assert(p != nullptr); return Path(p); }
AllocatedPath ExpectNextPath() { const char *p = ExpectNext(); assert(p != nullptr); return AllocatedPath(PathName(p)); }