summaryrefslogtreecommitdiffstats
path: root/src/common/src/string_util.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/common/src/string_util.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/common/src/string_util.h b/src/common/src/string_util.h
index 31eaeb246..fcbae4715 100644
--- a/src/common/src/string_util.h
+++ b/src/common/src/string_util.h
@@ -21,10 +21,10 @@ bool CharArrayFromFormatV(char* out, int outsize, const char* format, va_list ar
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);
+ va_list args;
+ va_start(args, format);
+ CharArrayFromFormatV(out, Count, format, args);
+ va_end(args);
}
// Good
@@ -37,15 +37,15 @@ std::string StripQuotes(const std::string &s);
template <typename I>
std::string ThousandSeparate(I value, int spaces = 0)
{
- std::ostringstream oss;
+ std::ostringstream oss;
// std::locale("") seems to be broken on many platforms
#if defined _WIN32 || (defined __linux__ && !defined __clang__)
- oss.imbue(std::locale(""));
+ oss.imbue(std::locale(""));
#endif
- oss << std::setw(spaces) << value;
+ oss << std::setw(spaces) << value;
- return oss.str();
+ return oss.str();
}
std::string StringFromInt(int value);
@@ -57,16 +57,16 @@ bool TryParse(const std::string &str, u32 *output);
template <typename N>
static bool TryParse(const std::string &str, N *const output)
{
- std::istringstream iss(str);
-
- N tmp = 0;
- if (iss >> tmp)
- {
- *output = tmp;
- return true;
- }
- else
- return false;
+ std::istringstream iss(str);
+
+ N tmp = 0;
+ if (iss >> tmp)
+ {
+ *output = tmp;
+ return true;
+ }
+ else
+ return false;
}
// TODO: kill this