Lines Matching refs:PathParser
80 struct PathParser { struct
96 PathParser(string_view_t P, ParserState State) noexcept : Path(P), in PathParser() function
100 PathParser(string_view_t P, string_view_t E, unsigned char S) in PathParser() function
105 static PathParser CreateBegin(string_view_t P) noexcept { in CreateBegin() argument
106 PathParser PP(P, PS_BeforeBegin); in CreateBegin()
111 static PathParser CreateEnd(string_view_t P) noexcept { in CreateEnd() argument
112 PathParser PP(P, PS_AtEnd); in CreateEnd()
236 PathParser& operator++() noexcept { in operator ++() argument
241 PathParser& operator--() noexcept { in operator --() argument
642 using parser::PathParser;
1578 auto PP = PathParser::CreateEnd(p.native()); in __weakly_canonical()
1582 while (PP.State != PathParser::PS_BeforeBegin) { in __weakly_canonical()
1595 if (PP.State == PathParser::PS_BeforeBegin) in __weakly_canonical()
1630 auto PP = PathParser::CreateBegin(__pn_); in __root_name()
1631 if (PP.State == PathParser::PS_InRootName) in __root_name()
1637 auto PP = PathParser::CreateBegin(__pn_); in __root_directory()
1638 if (PP.State == PathParser::PS_InRootName) in __root_directory()
1640 if (PP.State == PathParser::PS_InRootDir) in __root_directory()
1646 auto PP = PathParser::CreateBegin(__pn_); in __root_path_raw()
1647 if (PP.State == PathParser::PS_InRootName) { in __root_path_raw()
1655 if (PP.State == PathParser::PS_InRootDir) in __root_path_raw()
1660 static bool ConsumeRootName(PathParser *PP) { in ConsumeRootName()
1661 static_assert(PathParser::PS_BeforeBegin == 1 && in ConsumeRootName()
1662 PathParser::PS_InRootName == 2, in ConsumeRootName()
1664 while (PP->State <= PathParser::PS_InRootName) in ConsumeRootName()
1666 return PP->State == PathParser::PS_AtEnd; in ConsumeRootName()
1669 static bool ConsumeRootDir(PathParser* PP) { in ConsumeRootDir()
1670 static_assert(PathParser::PS_BeforeBegin == 1 && in ConsumeRootDir()
1671 PathParser::PS_InRootName == 2 && in ConsumeRootDir()
1672 PathParser::PS_InRootDir == 3, "Values for enums are incorrect"); in ConsumeRootDir()
1673 while (PP->State <= PathParser::PS_InRootDir) in ConsumeRootDir()
1675 return PP->State == PathParser::PS_AtEnd; in ConsumeRootDir()
1679 auto PP = PathParser::CreateBegin(__pn_); in __relative_path()
1691 auto PP = PathParser::CreateBegin(__pn_); in __parent_path()
1698 auto PP = PathParser::CreateEnd(__pn_); in __parent_path()
1711 PathParser PP = PathParser::CreateBegin(__pn_); in __filename()
1715 return *(--PathParser::CreateEnd(__pn_)); in __filename()
1779 for (auto PP = PathParser::CreateBegin(__pn_); PP; ++PP) { in lexically_normal()
1831 static int DetermineLexicalElementCount(PathParser PP) { in DetermineLexicalElementCount()
1845 auto PP = PathParser::CreateBegin(__pn_); in lexically_relative()
1846 auto PPBase = PathParser::CreateBegin(base.__pn_); in lexically_relative()
1866 auto PP = PathParser::CreateBegin(__pn_); in lexically_relative()
1867 auto PPBase = PathParser::CreateBegin(base.__pn_); in lexically_relative()
1900 static int CompareRootName(PathParser *LHS, PathParser *RHS) { in CompareRootName()
1904 auto GetRootName = [](PathParser *Parser) -> string_view_t { in CompareRootName()
1913 static int CompareRootDir(PathParser *LHS, PathParser *RHS) { in CompareRootDir()
1925 static int CompareRelative(PathParser *LHSPtr, PathParser *RHSPtr) { in CompareRelative()
1939 static int CompareEndState(PathParser *LHS, PathParser *RHS) { in CompareEndState()
1948 auto LHS = PathParser::CreateBegin(__pn_); in __compare()
1949 auto RHS = PathParser::CreateBegin(__s); in __compare()
1967 auto PP = PathParser::CreateBegin(__p.native()); in hash_value()
1980 auto PP = PathParser::CreateBegin(__pn_); in begin()
1997 PathParser PP(__path_ptr_->native(), __entry_, __state_); in __increment()
2006 PathParser PP(__path_ptr_->native(), __entry_, __state_); in __decrement()