| 33 | namespace roles { |
| 34 | |
| 35 | bool isStrictSubroleOf(const std::string& left, const std::string& right) |
| 36 | { |
| 37 | return left.size() > right.size() && |
| 38 | left[right.size()] == '/' && |
| 39 | strings::startsWith(left, right); |
| 40 | } |
| 41 | |
| 42 | |
| 43 | // TODO(haosdent): Remove this function after we stop supporting `--roles` |