diff options
| author | mathieui <mathieui@mathieui.net> | 2016-01-21 21:27:56 +0100 |
|---|---|---|
| committer | mathieui <mathieui@mathieui.net> | 2016-01-21 21:27:56 +0100 |
| commit | f15ffda5a7518cb87a09f301deaeffab0723ec27 (patch) | |
| tree | 1b32ad5818891950f940189107d433cdf26e0340 /Source/Core/Common/StringUtil.h | |
| parent | 3e283ea9f17aa779832db065b2ecc4b19cf03e83 (diff) | |
Correct ampersands as well
Diffstat (limited to 'Source/Core/Common/StringUtil.h')
| -rw-r--r-- | Source/Core/Common/StringUtil.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h index d90aa6d024..8d8ca4c9b2 100644 --- a/Source/Core/Common/StringUtil.h +++ b/Source/Core/Common/StringUtil.h @@ -38,8 +38,8 @@ inline void CharArrayFromFormat(char (& out)[Count], const char* format, ...) // Good std::string ArrayToString(const u8* data, u32 size, int line_len = 20, bool spaces = true); -std::string StripSpaces(const std::string &s); -std::string StripQuotes(const std::string &s); +std::string StripSpaces(const std::string& s); +std::string StripQuotes(const std::string& s); // Thousand separator. Turns 12345678 into 12,345,678 template <typename I> @@ -59,11 +59,11 @@ std::string ThousandSeparate(I value, int spaces = 0) std::string StringFromInt(int value); std::string StringFromBool(bool value); -bool TryParse(const std::string &str, bool* output); -bool TryParse(const std::string &str, u32* output); +bool TryParse(const std::string& str, bool* output); +bool TryParse(const std::string& str, u32* output); template <typename N> -static bool TryParse(const std::string &str, N* const output) +static bool TryParse(const std::string& str, N* const output) { std::istringstream iss(str); // is this right? not doing this breaks reading floats on locales that use different decimal separators @@ -99,7 +99,7 @@ bool TryParseVector(const std::string& str, std::vector<N>* output, const char d // TODO: kill this bool AsciiToHex(const std::string& _szValue, u32& result); -std::string TabsToSpaces(int tab_size, const std::string &in); +std::string TabsToSpaces(int tab_size, const std::string& in); void SplitString(const std::string& str, char delim, std::vector<std::string>& output); |
