![]() |
Pioneer
|
#include "utils.h"#include "DateTime.h"#include "FileSystem.h"#include "Lang.h"#include "StringF.h"#include "gameconsts.h"#include "graphics/Graphics.h"#include "libs.h"#include <cmath>#include <cstdio>#include <fstream>#include <sstream>
Classes | |
| union | fu32 |
| union | fu64 |
Macros | |
| #define | TOLOWER(c) (isupper(static_cast<unsigned char>(c)) ? tolower(static_cast<unsigned char>(c)) : (static_cast<unsigned char>(c))) |
Functions | |
| std::string | format_money (double cents, bool showCents) |
| std::string | format_date (double t) |
| std::string | format_date_only (double t) |
| std::string | string_join (std::vector< std::string > &v, std::string sep) |
| std::string | format_duration (double seconds) |
| std::string | format_distance (double dist, int precision) |
| const char * | pi_strcasestr (const char *haystack, const char *needle) |
| std::vector< std::string > | SplitString (const std::string &source, const std::string &delim) |
| std::string | FloatToStr (float val) |
| std::string | DoubleToStr (double val) |
| void | Vector3fToStr (const vector3f &val, char *out, size_t size) |
| void | Vector3dToStr (const vector3d &val, char *out, size_t size) |
| void | Matrix3x3fToStr (const matrix3x3f &val, char *out, size_t size) |
| void | Matrix3x3dToStr (const matrix3x3d &val, char *out, size_t size) |
| void | Matrix4x4fToStr (const matrix4x4f &val, char *out, size_t size) |
| void | Matrix4x4dToStr (const matrix4x4d &val, char *out, size_t size) |
| std::string | AutoToStr (Sint32 val) |
| std::string | AutoToStr (Sint64 val) |
| std::string | AutoToStr (float val) |
| std::string | AutoToStr (double val) |
| Sint64 | StrToSInt64 (const std::string &str) |
| Uint64 | StrToUInt64 (const std::string &str) |
| float | StrToFloat (const std::string &str) |
| double | StrToDouble (const std::string &str) |
| void | StrToAuto (Sint32 *pVal, const std::string &str) |
| void | StrToAuto (Sint64 *pVal, const std::string &str) |
| void | StrToAuto (float *pVal, const std::string &str) |
| void | StrToAuto (double *pVal, const std::string &str) |
| void | StrToVector3f (const char *str, vector3f &val) |
| void | StrToVector3d (const char *str, vector3d &val) |
| void | StrToMatrix3x3f (const char *str, matrix3x3f &val) |
| void | StrToMatrix3x3d (const char *str, matrix3x3d &val) |
| void | StrToMatrix4x4f (const char *str, matrix4x4f &val) |
| void | StrToMatrix4x4d (const char *str, matrix4x4d &val) |
| std::string | DecimalToDegMinSec (float dec) |
| void | hexdump (const unsigned char *buf, int len) |
| #define TOLOWER | ( | c | ) | (isupper(static_cast<unsigned char>(c)) ? tolower(static_cast<unsigned char>(c)) : (static_cast<unsigned char>(c))) |
| std::string AutoToStr | ( | double | val | ) |

| std::string AutoToStr | ( | float | val | ) |

| std::string AutoToStr | ( | Sint32 | val | ) |
| std::string AutoToStr | ( | Sint64 | val | ) |
| std::string DecimalToDegMinSec | ( | float | dec | ) |
Converts geographic coordinates from decimal to degree/minutes/seconds format and returns a string.

| std::string DoubleToStr | ( | double | val | ) |
| std::string FloatToStr | ( | float | val | ) |
| std::string format_date | ( | double | t | ) |

| std::string format_date_only | ( | double | t | ) |

| std::string format_distance | ( | double | dist, |
| int | precision | ||
| ) |
| std::string format_duration | ( | double | seconds | ) |
| std::string format_money | ( | double | cents, |
| bool | showCents | ||
| ) |
| void hexdump | ( | const unsigned char * | buf, |
| int | len | ||
| ) |

| void Matrix3x3dToStr | ( | const matrix3x3d & | val, |
| char * | out, | ||
| size_t | size | ||
| ) |
| void Matrix3x3fToStr | ( | const matrix3x3f & | val, |
| char * | out, | ||
| size_t | size | ||
| ) |
| void Matrix4x4dToStr | ( | const matrix4x4d & | val, |
| char * | out, | ||
| size_t | size | ||
| ) |
| void Matrix4x4fToStr | ( | const matrix4x4f & | val, |
| char * | out, | ||
| size_t | size | ||
| ) |
| const char * pi_strcasestr | ( | const char * | haystack, |
| const char * | needle | ||
| ) |
| std::vector< std::string > SplitString | ( | const std::string & | source, |
| const std::string & | delim | ||
| ) |
| std::string string_join | ( | std::vector< std::string > & | v, |
| std::string | sep | ||
| ) |
| void StrToAuto | ( | double * | pVal, |
| const std::string & | str | ||
| ) |

| void StrToAuto | ( | float * | pVal, |
| const std::string & | str | ||
| ) |

| void StrToAuto | ( | Sint32 * | pVal, |
| const std::string & | str | ||
| ) |
| void StrToAuto | ( | Sint64 * | pVal, |
| const std::string & | str | ||
| ) |
| double StrToDouble | ( | const std::string & | str | ) |
| float StrToFloat | ( | const std::string & | str | ) |
| void StrToMatrix3x3d | ( | const char * | str, |
| matrix3x3d & | val | ||
| ) |
| void StrToMatrix3x3f | ( | const char * | str, |
| matrix3x3f & | val | ||
| ) |
| void StrToMatrix4x4d | ( | const char * | str, |
| matrix4x4d & | val | ||
| ) |
| void StrToMatrix4x4f | ( | const char * | str, |
| matrix4x4f & | val | ||
| ) |
| Sint64 StrToSInt64 | ( | const std::string & | str | ) |
| Uint64 StrToUInt64 | ( | const std::string & | str | ) |
| void StrToVector3d | ( | const char * | str, |
| vector3d & | val | ||
| ) |
| void StrToVector3f | ( | const char * | str, |
| vector3f & | val | ||
| ) |
| void Vector3dToStr | ( | const vector3d & | val, |
| char * | out, | ||
| size_t | size | ||
| ) |
| void Vector3fToStr | ( | const vector3f & | val, |
| char * | out, | ||
| size_t | size | ||
| ) |