mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
general code cleanup
This commit is contained in:
parent
5a1a60742e
commit
9d9ee7b71d
178 changed files with 5100 additions and 5255 deletions
|
|
@ -30,6 +30,7 @@ namespace fs
|
|||
|
||||
string basename(const string &path);
|
||||
|
||||
static
|
||||
inline
|
||||
void
|
||||
append(string &base,
|
||||
|
|
@ -38,6 +39,7 @@ namespace fs
|
|||
base += suffix;
|
||||
}
|
||||
|
||||
static
|
||||
inline
|
||||
void
|
||||
append(string &base,
|
||||
|
|
@ -46,36 +48,16 @@ namespace fs
|
|||
base += suffix;
|
||||
}
|
||||
|
||||
static
|
||||
inline
|
||||
void
|
||||
string
|
||||
make(const string &base_,
|
||||
const char *suffix_,
|
||||
string *output_)
|
||||
const char *suffix_)
|
||||
{
|
||||
*output_ = base_;
|
||||
*output_ += suffix_;
|
||||
}
|
||||
|
||||
inline
|
||||
void
|
||||
make(const string *base,
|
||||
const char *suffix,
|
||||
string &output)
|
||||
{
|
||||
output = *base;
|
||||
output += suffix;
|
||||
}
|
||||
|
||||
inline
|
||||
void
|
||||
make(const string *base,
|
||||
const string &suffix,
|
||||
string &output)
|
||||
{
|
||||
output = *base;
|
||||
output += suffix;
|
||||
return (base_ + suffix_);
|
||||
}
|
||||
|
||||
static
|
||||
inline
|
||||
string
|
||||
make(const string *base_,
|
||||
|
|
@ -92,5 +74,14 @@ namespace fs
|
|||
{
|
||||
return (*base_ + *suffix_);
|
||||
}
|
||||
|
||||
static
|
||||
inline
|
||||
string
|
||||
make(const string &base_,
|
||||
const string &suffix_)
|
||||
{
|
||||
return (base_ + suffix_);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue