refactor and simplify getxattr for user.mergerfs.\*

This commit is contained in:
Antonio SJ Musumeci 2015-09-03 16:56:54 -04:00
parent 22d254e8df
commit 8178bf518c
3 changed files with 75 additions and 38 deletions

View file

@ -139,4 +139,12 @@ namespace str
++si;
}
}
bool
isprefix(const string &s0,
const string &s1)
{
return ((s0.size() >= s1.size()) &&
(s0.compare(0,s1.size(),s1) == 0));
}
}