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