You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#include "utils/str_cat.hpp"
|
|
|
|
|
|
|
|
|
|
#include <fmt/format.h>
|
|
|
|
|
|
|
|
|
|
namespace devilution {
|
|
|
|
|
|
|
|
|
|
char *BufCopy(char *out, int value)
|
|
|
|
|
{
|
|
|
|
|
const fmt::format_int formatted { value };
|
|
|
|
|
std::memcpy(out, formatted.data(), formatted.size());
|
|
|
|
|
return out + formatted.size();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void StrAppend(std::string &out, int value)
|
|
|
|
|
{
|
|
|
|
|
const fmt::format_int formatted { value };
|
|
|
|
|
out.append(formatted.data(), formatted.size());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace devilution
|