| 78 | } |
| 79 | |
| 80 | static bool ConsumeRootName(PathParser* PP) { |
| 81 | static_assert(PathParser::PS_BeforeBegin == 1 && PathParser::PS_InRootName == 2, "Values for enums are incorrect"); |
| 82 | while (PP->State_ <= PathParser::PS_InRootName) |
| 83 | ++(*PP); |
| 84 | return PP->State_ == PathParser::PS_AtEnd; |
| 85 | } |
| 86 | |
| 87 | static bool ConsumeRootDir(PathParser* PP) { |
| 88 | static_assert(PathParser::PS_BeforeBegin == 1 && PathParser::PS_InRootName == 2 && PathParser::PS_InRootDir == 3, |