Lines Matching refs:PP

106     PathParser PP(P, PS_BeforeBegin);  in CreateBegin()  local
107 PP.increment(); in CreateBegin()
108 return PP; in CreateBegin()
112 PathParser PP(P, PS_AtEnd); in CreateEnd() local
113 return PP; in CreateEnd()
1578 auto PP = PathParser::CreateEnd(p.native()); in __weakly_canonical() local
1579 --PP; in __weakly_canonical()
1582 while (PP.State != PathParser::PS_BeforeBegin) { in __weakly_canonical()
1583 tmp.assign(createView(p.native().data(), &PP.RawEntry.back())); in __weakly_canonical()
1592 DNEParts.push_back(*PP); in __weakly_canonical()
1593 --PP; in __weakly_canonical()
1595 if (PP.State == PathParser::PS_BeforeBegin) in __weakly_canonical()
1630 auto PP = PathParser::CreateBegin(__pn_); in __root_name() local
1631 if (PP.State == PathParser::PS_InRootName) in __root_name()
1632 return *PP; in __root_name()
1637 auto PP = PathParser::CreateBegin(__pn_); in __root_directory() local
1638 if (PP.State == PathParser::PS_InRootName) in __root_directory()
1639 ++PP; in __root_directory()
1640 if (PP.State == PathParser::PS_InRootDir) in __root_directory()
1641 return *PP; in __root_directory()
1646 auto PP = PathParser::CreateBegin(__pn_); in __root_path_raw() local
1647 if (PP.State == PathParser::PS_InRootName) { in __root_path_raw()
1648 auto NextCh = PP.peek(); in __root_path_raw()
1650 ++PP; in __root_path_raw()
1651 return createView(__pn_.data(), &PP.RawEntry.back()); in __root_path_raw()
1653 return PP.RawEntry; in __root_path_raw()
1655 if (PP.State == PathParser::PS_InRootDir) in __root_path_raw()
1656 return *PP; in __root_path_raw()
1660 static bool ConsumeRootName(PathParser *PP) { in ConsumeRootName() argument
1664 while (PP->State <= PathParser::PS_InRootName) in ConsumeRootName()
1665 ++(*PP); in ConsumeRootName()
1666 return PP->State == PathParser::PS_AtEnd; in ConsumeRootName()
1669 static bool ConsumeRootDir(PathParser* PP) { in ConsumeRootDir() argument
1673 while (PP->State <= PathParser::PS_InRootDir) in ConsumeRootDir()
1674 ++(*PP); in ConsumeRootDir()
1675 return PP->State == PathParser::PS_AtEnd; in ConsumeRootDir()
1679 auto PP = PathParser::CreateBegin(__pn_); in __relative_path() local
1680 if (ConsumeRootDir(&PP)) in __relative_path()
1682 return createView(PP.RawEntry.data(), &__pn_.back()); in __relative_path()
1691 auto PP = PathParser::CreateBegin(__pn_); in __parent_path() local
1692 if (ConsumeRootDir(&PP)) in __parent_path()
1698 auto PP = PathParser::CreateEnd(__pn_); in __parent_path() local
1699 --PP; in __parent_path()
1700 if (PP.RawEntry.data() == __pn_.data()) in __parent_path()
1702 --PP; in __parent_path()
1703 return createView(__pn_.data(), &PP.RawEntry.back()); in __parent_path()
1711 PathParser PP = PathParser::CreateBegin(__pn_); in __filename() local
1712 if (ConsumeRootDir(&PP)) in __filename()
1779 for (auto PP = PathParser::CreateBegin(__pn_); PP; ++PP) { in lexically_normal() local
1780 auto Part = *PP; in lexically_normal()
1831 static int DetermineLexicalElementCount(PathParser PP) { in DetermineLexicalElementCount() argument
1833 for (; PP; ++PP) { in DetermineLexicalElementCount()
1834 auto Elem = *PP; in DetermineLexicalElementCount()
1845 auto PP = PathParser::CreateBegin(__pn_); in lexically_relative() local
1848 return PP.State != PPBase.State && in lexically_relative()
1849 (PP.inRootPath() || PPBase.inRootPath()); in lexically_relative()
1851 if (PP.inRootName() && PPBase.inRootName()) { in lexically_relative()
1852 if (*PP != *PPBase) in lexically_relative()
1857 if (PP.inRootPath()) in lexically_relative()
1858 ++PP; in lexically_relative()
1866 auto PP = PathParser::CreateBegin(__pn_); in lexically_relative() local
1868 while (PP && PPBase && PP.State == PPBase.State && *PP == *PPBase) { in lexically_relative()
1869 ++PP; in lexically_relative()
1874 if (!PP && !PPBase) in lexically_relative()
1884 if (ElemCount == 0 && (PP.atEnd() || *PP == PATHSTR(""))) in lexically_relative()
1893 for (; PP; ++PP) in lexically_relative()
1894 Result /= *PP; in lexically_relative()
1967 auto PP = PathParser::CreateBegin(__p.native()); in hash_value() local
1970 while (PP) { in hash_value()
1971 hash_value = __hash_combine(hash_value, hasher(*PP)); in hash_value()
1972 ++PP; in hash_value()
1980 auto PP = PathParser::CreateBegin(__pn_); in begin() local
1983 it.__state_ = static_cast<path::iterator::_ParserState>(PP.State); in begin()
1984 it.__entry_ = PP.RawEntry; in begin()
1985 it.__stashed_elem_.__assign_view(*PP); in begin()
1997 PathParser PP(__path_ptr_->native(), __entry_, __state_); in __increment() local
1998 ++PP; in __increment()
1999 __state_ = static_cast<_ParserState>(PP.State); in __increment()
2000 __entry_ = PP.RawEntry; in __increment()
2001 __stashed_elem_.__assign_view(*PP); in __increment()
2006 PathParser PP(__path_ptr_->native(), __entry_, __state_); in __decrement() local
2007 --PP; in __decrement()
2008 __state_ = static_cast<_ParserState>(PP.State); in __decrement()
2009 __entry_ = PP.RawEntry; in __decrement()
2010 __stashed_elem_.__assign_view(*PP); in __decrement()