refactor(clang-tidy): Apply fixes
This commit is contained in:
parent
0128014d44
commit
ff9be848c7
119 changed files with 1752 additions and 1046 deletions
include/utils
|
@ -16,8 +16,10 @@ namespace string_util {
|
|||
string upper(const string& s);
|
||||
string lower(const string& s);
|
||||
bool compare(const string& s1, const string& s2);
|
||||
string replace(const string& haystack, string needle, string repl, size_t start = 0, size_t end = string::npos);
|
||||
string replace_all(const string& haystack, string needle, string repl, size_t start = 0, size_t end = string::npos);
|
||||
string replace(
|
||||
const string& haystack, const string& needle, const string& reply, size_t start = 0, size_t end = string::npos);
|
||||
string replace_all(
|
||||
const string& haystack, const string& needle, const string& reply, size_t start = 0, size_t end = string::npos);
|
||||
string replace_all_bounded(const string& haystack, string needle, string replacement, size_t min, size_t max,
|
||||
size_t start = 0, size_t end = string::npos);
|
||||
string squeeze(const string& haystack, char needle);
|
||||
|
@ -27,13 +29,13 @@ namespace string_util {
|
|||
string rtrim(const string& haystack, char needle);
|
||||
string trim(const string& haystack, char needle);
|
||||
string join(vector<string> strs, string delim);
|
||||
vector<string>& split_into(string s, char delim, vector<string>& container);
|
||||
vector<string>& split_into(const string& s, char delim, vector<string>& container);
|
||||
vector<string> split(const string& s, char delim);
|
||||
size_t find_nth(string haystack, size_t pos, string needle, size_t nth);
|
||||
string floatval(float value, int decimals = 2, bool fixed = false, string locale = "");
|
||||
string filesize(unsigned long long bytes, int decimals = 2, bool fixed = false, string locale = "");
|
||||
size_t find_nth(const string& haystack, size_t pos, const string& needle, size_t nth);
|
||||
string floatval(float value, int decimals = 2, bool fixed = false, const string& locale = "");
|
||||
string filesize(unsigned long long bytes, int decimals = 2, bool fixed = false, const string& locale = "");
|
||||
string from_stream(const std::basic_ostream<char>& os);
|
||||
hash_type hash(string src);
|
||||
hash_type hash(const string& src);
|
||||
}
|
||||
|
||||
POLYBAR_NS_END
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue