misc.h

changeset 29
55406ce7446e
parent 25
c74bb88f537d
child 30
31ff9aabd506
equal deleted inserted replaced
28:208adc847377 29:55406ce7446e
10 10
11 double getWordFloat (str& s, const ushort n); 11 double getWordFloat (str& s, const ushort n);
12 long getWordInt (str& s, const ushort n); 12 long getWordInt (str& s, const ushort n);
13 vertex parseVertex (str& s, const ushort n); 13 vertex parseVertex (str& s, const ushort n);
14 void stripWhitespace (str& s); 14 void stripWhitespace (str& s);
15
16 // Returns whether a given string represents a floating point number
17 // TODO: Does LDraw support scientific notation?
15 bool isNumber (str& zToken); 18 bool isNumber (str& zToken);
16 19
17 // Float to string 20 // Converts a float value to a string value.
18 str ftoa (double fCoord); 21 str ftoa (double fCoord);
19 22
20 #endif // __MISC_H__ 23 #endif // __MISC_H__

mercurial