misc.h

Sat, 16 Mar 2013 00:05:39 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Sat, 16 Mar 2013 00:05:39 +0200
changeset 11
323390a03294
parent 0
c51cce84a9ac
child 13
3955ff2a7d72
permissions
-rw-r--r--

Color gibberish red. Check for line code length for gibberish (must be 1 to be valid)

#ifndef __MISC_H__
#define __MISC_H__

#include "common.h"
#include "str.h"

inline str GetWord (str& zString, ulong ulIndex) {
	return (zString / " ")[ulIndex];
}

double GetWordFloat (str& s, int n);
long GetWordInt (str& s, int n);
vertex ParseVertex (str& s, int n);
void StripWhitespace (str& s);

#endif // __MISC_H__

mercurial