Lines Matching refs:PP

47   auto PP = PathParser::CreateBegin(__pn_);  in __root_name()  local
48 if (PP.State_ == PathParser::PS_InRootName) in __root_name()
49 return *PP; in __root_name()
54 auto PP = PathParser::CreateBegin(__pn_); in __root_directory() local
55 if (PP.State_ == PathParser::PS_InRootName) in __root_directory()
56 ++PP; in __root_directory()
57 if (PP.State_ == PathParser::PS_InRootDir) in __root_directory()
58 return *PP; in __root_directory()
63 auto PP = PathParser::CreateBegin(__pn_); in __root_path_raw() local
64 if (PP.State_ == PathParser::PS_InRootName) { in __root_path_raw()
65 auto NextCh = PP.peek(); in __root_path_raw()
67 ++PP; in __root_path_raw()
68 return createView(__pn_.data(), &PP.RawEntry.back()); in __root_path_raw()
70 return PP.RawEntry; in __root_path_raw()
72 if (PP.State_ == PathParser::PS_InRootDir) in __root_path_raw()
73 return *PP; in __root_path_raw()
77 static bool ConsumeRootName(PathParser* PP) { in ConsumeRootName() argument
79 while (PP->State_ <= PathParser::PS_InRootName) in ConsumeRootName()
80 ++(*PP); in ConsumeRootName()
81 return PP->State_ == PathParser::PS_AtEnd; in ConsumeRootName()
84 static bool ConsumeRootDir(PathParser* PP) { in ConsumeRootDir() argument
87 while (PP->State_ <= PathParser::PS_InRootDir) in ConsumeRootDir()
88 ++(*PP); in ConsumeRootDir()
89 return PP->State_ == PathParser::PS_AtEnd; in ConsumeRootDir()
93 auto PP = PathParser::CreateBegin(__pn_); in __relative_path() local
94 if (ConsumeRootDir(&PP)) in __relative_path()
96 return createView(PP.RawEntry.data(), &__pn_.back()); in __relative_path()
105 auto PP = PathParser::CreateBegin(__pn_); in __parent_path() local
106 if (ConsumeRootDir(&PP)) in __parent_path()
112 auto PP = PathParser::CreateEnd(__pn_); in __parent_path() local
113 --PP; in __parent_path()
114 if (PP.RawEntry.data() == __pn_.data()) in __parent_path()
116 --PP; in __parent_path()
117 return createView(__pn_.data(), &PP.RawEntry.back()); in __parent_path()
125 PathParser PP = PathParser::CreateBegin(__pn_); in __filename() local
126 if (ConsumeRootDir(&PP)) in __filename()
182 for (auto PP = PathParser::CreateBegin(__pn_); PP; ++PP) { in lexically_normal() local
183 auto Part = *PP; in lexically_normal()
234 static int DetermineLexicalElementCount(PathParser PP) { in DetermineLexicalElementCount() argument
236 for (; PP; ++PP) { in DetermineLexicalElementCount()
237 auto Elem = *PP; in DetermineLexicalElementCount()
248 auto PP = PathParser::CreateBegin(__pn_); in lexically_relative() local
251 return PP.State_ != PPBase.State_ && (PP.inRootPath() || PPBase.inRootPath()); in lexically_relative()
253 if (PP.inRootName() && PPBase.inRootName()) { in lexically_relative()
254 if (*PP != *PPBase) in lexically_relative()
259 if (PP.inRootPath()) in lexically_relative()
260 ++PP; in lexically_relative()
268 auto PP = PathParser::CreateBegin(__pn_); in lexically_relative() local
270 while (PP && PPBase && PP.State_ == PPBase.State_ && *PP == *PPBase) { in lexically_relative()
271 ++PP; in lexically_relative()
276 if (!PP && !PPBase) in lexically_relative()
286 if (ElemCount == 0 && (PP.atEnd() || *PP == PATHSTR(""))) in lexically_relative()
295 for (; PP; ++PP) in lexically_relative()
296 Result /= *PP; in lexically_relative()
367 auto PP = PathParser::CreateBegin(__p.native()); in hash_value() local
370 while (PP) { in hash_value()
371 hash_value = __hash_combine(hash_value, hasher(*PP)); in hash_value()
372 ++PP; in hash_value()
380 auto PP = PathParser::CreateBegin(__pn_); in begin() local
383 it.__state_ = static_cast<path::iterator::_ParserState>(PP.State_); in begin()
384 it.__entry_ = PP.RawEntry; in begin()
385 it.__stashed_elem_.__assign_view(*PP); in begin()
397 PathParser PP(__path_ptr_->native(), __entry_, __state_); in __increment() local
398 ++PP; in __increment()
399 __state_ = static_cast<_ParserState>(PP.State_); in __increment()
400 __entry_ = PP.RawEntry; in __increment()
401 __stashed_elem_.__assign_view(*PP); in __increment()
406 PathParser PP(__path_ptr_->native(), __entry_, __state_); in __decrement() local
407 --PP; in __decrement()
408 __state_ = static_cast<_ParserState>(PP.State_); in __decrement()
409 __entry_ = PP.RawEntry; in __decrement()
410 __stashed_elem_.__assign_view(*PP); in __decrement()