Home | History | Annotate | Download | only in filesystem

Lines Matching refs:PathParser

63 struct PathParser {
79 PathParser(string_view_t P, ParserState State) noexcept : Path(P),
83 PathParser(string_view_t P, string_view_t E, unsigned char S)
88 static PathParser CreateBegin(string_view_t P) noexcept {
89 PathParser PP(P, PS_BeforeBegin);
94 static PathParser CreateEnd(string_view_t P) noexcept {
95 PathParser PP(P, PS_AtEnd);
199 PathParser& operator++() noexcept {
204 PathParser& operator--() noexcept {
482 using parser::PathParser;
1227 auto PP = PathParser::CreateEnd(p.native());
1231 while (PP.State != PathParser::PS_BeforeBegin) {
1244 if (PP.State == PathParser::PS_BeforeBegin)
1279 auto PP = PathParser::CreateBegin(__pn_);
1280 if (PP.State == PathParser::PS_InRootName)
1286 auto PP = PathParser::CreateBegin(__pn_);
1287 if (PP.State == PathParser::PS_InRootName)
1289 if (PP.State == PathParser::PS_InRootDir)
1295 auto PP = PathParser::CreateBegin(__pn_);
1296 if (PP.State == PathParser::PS_InRootName) {
1304 if (PP.State == PathParser::PS_InRootDir)
1309 static bool ConsumeRootName(PathParser *PP) {
1310 static_assert(PathParser::PS_BeforeBegin == 1 &&
1311 PathParser::PS_InRootName == 2,
1313 while (PP->State <= PathParser::PS_InRootName)
1315 return PP->State == PathParser::PS_AtEnd;
1318 static bool ConsumeRootDir(PathParser* PP) {
1319 static_assert(PathParser::PS_BeforeBegin == 1 &&
1320 PathParser::PS_InRootName == 2 &&
1321 PathParser::PS_InRootDir == 3, "Values for enums are incorrect");
1322 while (PP->State <= PathParser::PS_InRootDir)
1324 return PP->State == PathParser::PS_AtEnd;
1328 auto PP = PathParser::CreateBegin(__pn_);
1340 auto PP = PathParser::CreateBegin(__pn_);
1347 auto PP = PathParser::CreateEnd(__pn_);
1360 PathParser PP = PathParser::CreateBegin(__pn_);
1364 return *(--PathParser::CreateEnd(__pn_));
1424 for (auto PP = PathParser::CreateBegin(__pn_); PP; ++PP) {
1475 static int DetermineLexicalElementCount(PathParser PP) {
1489 auto PP = PathParser::CreateBegin(__pn_);
1490 auto PPBase = PathParser::CreateBegin(base.__pn_);
1510 auto PP = PathParser::CreateBegin(__pn_);
1511 auto PPBase = PathParser::CreateBegin(base.__pn_);
1544 static int CompareRootName(PathParser *LHS, PathParser *RHS) {
1548 auto GetRootName = [](PathParser *Parser) -> string_view_t {
1557 static int CompareRootDir(PathParser *LHS, PathParser *RHS) {
1569 static int CompareRelative(PathParser *LHSPtr, PathParser *RHSPtr) {
1583 static int CompareEndState(PathParser *LHS, PathParser *RHS) {
1592 auto LHS = PathParser::CreateBegin(__pn_);
1593 auto RHS = PathParser::CreateBegin(__s);
1611 auto PP = PathParser::CreateBegin(__p.native());
1624 auto PP = PathParser::CreateBegin(__pn_);
1641 PathParser PP(__path_ptr_->native(), __entry_, __state_);
1650 PathParser PP(__path_ptr_->native(), __entry_, __state_);