#include <string>
#include <algorithm>
#include "fail.hpp"
Go to the source code of this file.
|
GEMMI_DLL int | gemmi::snprintf_z (char *buf, int count, char const *fmt,...) GEMMI_ATTRIBUTE_FORMAT(3 |
| stb_snprintf in gemmi namespace - like snprintf, but ignores locale and is always zero-terminated (hence _z).
|
|
GEMMI_DLL int GEMMI_DLL int | gemmi::sprintf_z (char *buf, char const *fmt,...) GEMMI_ATTRIBUTE_FORMAT(2 |
| stb_sprintf in gemmi namespace
|
|
GEMMI_DLL int GEMMI_DLL int std::string | gemmi::to_str (double d) |
|
std::string | gemmi::to_str (float d) |
|
template<int Prec> |
std::string | gemmi::to_str_prec (double d) |
|
char * | gemmi::to_chars_z (char *first, char *last, int value) |
| zero-terminated to_chars()
|
|
char * | gemmi::to_chars_z (char *first, char *last, size_t value) |
|
◆ GEMMI_ATTRIBUTE_FORMAT
#define GEMMI_ATTRIBUTE_FORMAT |
( |
|
fmt, |
|
|
|
va |
|
) |
| |