Lines Matching refs:PP
89 PathParser PP(P, PS_BeforeBegin); in CreateBegin() local
90 PP.increment(); in CreateBegin()
91 return PP; in CreateBegin()
95 PathParser PP(P, PS_AtEnd); in CreateEnd() local
96 return PP; in CreateEnd()
1227 auto PP = PathParser::CreateEnd(p.native()); in __weakly_canonical() local
1228 --PP; in __weakly_canonical()
1231 while (PP.State != PathParser::PS_BeforeBegin) { in __weakly_canonical()
1232 tmp.assign(createView(p.native().data(), &PP.RawEntry.back())); in __weakly_canonical()
1241 DNEParts.push_back(*PP); in __weakly_canonical()
1242 --PP; in __weakly_canonical()
1244 if (PP.State == PathParser::PS_BeforeBegin) in __weakly_canonical()
1279 auto PP = PathParser::CreateBegin(__pn_); in __root_name() local
1280 if (PP.State == PathParser::PS_InRootName) in __root_name()
1281 return *PP; in __root_name()
1286 auto PP = PathParser::CreateBegin(__pn_); in __root_directory() local
1287 if (PP.State == PathParser::PS_InRootName) in __root_directory()
1288 ++PP; in __root_directory()
1289 if (PP.State == PathParser::PS_InRootDir) in __root_directory()
1290 return *PP; in __root_directory()
1295 auto PP = PathParser::CreateBegin(__pn_); in __root_path_raw() local
1296 if (PP.State == PathParser::PS_InRootName) { in __root_path_raw()
1297 auto NextCh = PP.peek(); in __root_path_raw()
1299 ++PP; in __root_path_raw()
1300 return createView(__pn_.data(), &PP.RawEntry.back()); in __root_path_raw()
1302 return PP.RawEntry; in __root_path_raw()
1304 if (PP.State == PathParser::PS_InRootDir) in __root_path_raw()
1305 return *PP; in __root_path_raw()
1309 static bool ConsumeRootName(PathParser *PP) { in ConsumeRootName() argument
1313 while (PP->State <= PathParser::PS_InRootName) in ConsumeRootName()
1314 ++(*PP); in ConsumeRootName()
1315 return PP->State == PathParser::PS_AtEnd; in ConsumeRootName()
1318 static bool ConsumeRootDir(PathParser* PP) { in ConsumeRootDir() argument
1322 while (PP->State <= PathParser::PS_InRootDir) in ConsumeRootDir()
1323 ++(*PP); in ConsumeRootDir()
1324 return PP->State == PathParser::PS_AtEnd; in ConsumeRootDir()
1328 auto PP = PathParser::CreateBegin(__pn_); in __relative_path() local
1329 if (ConsumeRootDir(&PP)) in __relative_path()
1331 return createView(PP.RawEntry.data(), &__pn_.back()); in __relative_path()
1340 auto PP = PathParser::CreateBegin(__pn_); in __parent_path() local
1341 if (ConsumeRootDir(&PP)) in __parent_path()
1347 auto PP = PathParser::CreateEnd(__pn_); in __parent_path() local
1348 --PP; in __parent_path()
1349 if (PP.RawEntry.data() == __pn_.data()) in __parent_path()
1351 --PP; in __parent_path()
1352 return createView(__pn_.data(), &PP.RawEntry.back()); in __parent_path()
1360 PathParser PP = PathParser::CreateBegin(__pn_); in __filename() local
1361 if (ConsumeRootDir(&PP)) in __filename()
1424 for (auto PP = PathParser::CreateBegin(__pn_); PP; ++PP) { in lexically_normal() local
1425 auto Part = *PP; in lexically_normal()
1475 static int DetermineLexicalElementCount(PathParser PP) { in DetermineLexicalElementCount() argument
1477 for (; PP; ++PP) { in DetermineLexicalElementCount()
1478 auto Elem = *PP; in DetermineLexicalElementCount()
1489 auto PP = PathParser::CreateBegin(__pn_); in lexically_relative() local
1492 return PP.State != PPBase.State && in lexically_relative()
1493 (PP.inRootPath() || PPBase.inRootPath()); in lexically_relative()
1495 if (PP.inRootName() && PPBase.inRootName()) { in lexically_relative()
1496 if (*PP != *PPBase) in lexically_relative()
1501 if (PP.inRootPath()) in lexically_relative()
1502 ++PP; in lexically_relative()
1510 auto PP = PathParser::CreateBegin(__pn_); in lexically_relative() local
1512 while (PP && PPBase && PP.State == PPBase.State && *PP == *PPBase) { in lexically_relative()
1513 ++PP; in lexically_relative()
1518 if (!PP && !PPBase) in lexically_relative()
1528 if (ElemCount == 0 && (PP.atEnd() || *PP == "")) in lexically_relative()
1537 for (; PP; ++PP) in lexically_relative()
1538 Result /= *PP; in lexically_relative()
1611 auto PP = PathParser::CreateBegin(__p.native()); in hash_value() local
1614 while (PP) { in hash_value()
1615 hash_value = __hash_combine(hash_value, hasher(*PP)); in hash_value()
1616 ++PP; in hash_value()
1624 auto PP = PathParser::CreateBegin(__pn_); in begin() local
1627 it.__state_ = static_cast<path::iterator::_ParserState>(PP.State); in begin()
1628 it.__entry_ = PP.RawEntry; in begin()
1629 it.__stashed_elem_.__assign_view(*PP); in begin()
1641 PathParser PP(__path_ptr_->native(), __entry_, __state_); in __increment() local
1642 ++PP; in __increment()
1643 __state_ = static_cast<_ParserState>(PP.State); in __increment()
1644 __entry_ = PP.RawEntry; in __increment()
1645 __stashed_elem_.__assign_view(*PP); in __increment()
1650 PathParser PP(__path_ptr_->native(), __entry_, __state_); in __decrement() local
1651 --PP; in __decrement()
1652 __state_ = static_cast<_ParserState>(PP.State); in __decrement()
1653 __entry_ = PP.RawEntry; in __decrement()
1654 __stashed_elem_.__assign_view(*PP); in __decrement()