diff options
Diffstat (limited to 'src/common/string_util.h')
| -rw-r--r-- | src/common/string_util.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/common/string_util.h b/src/common/string_util.h index ec0c31a24..65e4ea5d3 100644 --- a/src/common/string_util.h +++ b/src/common/string_util.h | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <cstdarg> | ||
| 8 | #include <cstddef> | 7 | #include <cstddef> |
| 9 | #include <iomanip> | 8 | #include <iomanip> |
| 10 | #include <sstream> | 9 | #include <sstream> |
| @@ -20,19 +19,6 @@ std::string ToLower(std::string str); | |||
| 20 | /// Make a string uppercase | 19 | /// Make a string uppercase |
| 21 | std::string ToUpper(std::string str); | 20 | std::string ToUpper(std::string str); |
| 22 | 21 | ||
| 23 | std::string StringFromFormat(const char* format, ...); | ||
| 24 | // Cheap! | ||
| 25 | bool CharArrayFromFormatV(char* out, int outsize, const char* format, va_list args); | ||
| 26 | |||
| 27 | template <size_t Count> | ||
| 28 | inline void CharArrayFromFormat(char (&out)[Count], const char* format, ...) { | ||
| 29 | va_list args; | ||
| 30 | va_start(args, format); | ||
| 31 | CharArrayFromFormatV(out, Count, format, args); | ||
| 32 | va_end(args); | ||
| 33 | } | ||
| 34 | |||
| 35 | // Good | ||
| 36 | std::string ArrayToString(const u8* data, size_t size, int line_len = 20, bool spaces = true); | 22 | std::string ArrayToString(const u8* data, size_t size, int line_len = 20, bool spaces = true); |
| 37 | 23 | ||
| 38 | std::string StripSpaces(const std::string& s); | 24 | std::string StripSpaces(const std::string& s); |