diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-30 03:49:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-30 03:49:13 +0200 |
commit | 81a0082f6bd4f2db9b09e56cce96351bb5084e46 (patch) | |
tree | 4309e2b742d485f9854bbe63de4393f7e8785f5c /src/common/string_util.h | |
parent | Merge pull request #422 from bunnei/shader-mov (diff) | |
parent | string_util: Remove StringFromFormat() and related functions (diff) | |
download | yuzu-81a0082f6bd4f2db9b09e56cce96351bb5084e46.tar yuzu-81a0082f6bd4f2db9b09e56cce96351bb5084e46.tar.gz yuzu-81a0082f6bd4f2db9b09e56cce96351bb5084e46.tar.bz2 yuzu-81a0082f6bd4f2db9b09e56cce96351bb5084e46.tar.lz yuzu-81a0082f6bd4f2db9b09e56cce96351bb5084e46.tar.xz yuzu-81a0082f6bd4f2db9b09e56cce96351bb5084e46.tar.zst yuzu-81a0082f6bd4f2db9b09e56cce96351bb5084e46.zip |
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 @@ #pragma once -#include <cstdarg> #include <cstddef> #include <iomanip> #include <sstream> @@ -20,19 +19,6 @@ std::string ToLower(std::string str); /// Make a string uppercase std::string ToUpper(std::string str); -std::string StringFromFormat(const char* format, ...); -// Cheap! -bool CharArrayFromFormatV(char* out, int outsize, const char* format, va_list args); - -template <size_t Count> -inline void CharArrayFromFormat(char (&out)[Count], const char* format, ...) { - va_list args; - va_start(args, format); - CharArrayFromFormatV(out, Count, format, args); - va_end(args); -} - -// Good std::string ArrayToString(const u8* data, size_t size, int line_len = 20, bool spaces = true); std::string StripSpaces(const std::string& s); |