MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __root_path_raw

Method __root_path_raw

system/lib/libcxx/src/filesystem/path.cpp:65–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65string_view_t path::__root_path_raw() const {
66 auto PP = PathParser::CreateBegin(__pn_);
67 if (PP.State_ == PathParser::PS_InRootName) {
68 auto NextCh = PP.peek();
69 if (NextCh && isSeparator(*NextCh)) {
70 ++PP;
71 return createView(__pn_.data(), &PP.RawEntry.back());
72 }
73 return PP.RawEntry;
74 }
75 if (PP.State_ == PathParser::PS_InRootDir)
76 return *PP;
77 return {};
78}
79
80static bool ConsumeRootName(PathParser* PP) {
81 static_assert(PathParser::PS_BeforeBegin == 1 && PathParser::PS_InRootName == 2, "Values for enums are incorrect");

Callers

nothing calls this directly

Calls 5

isSeparatorFunction · 0.85
createViewFunction · 0.85
peekMethod · 0.80
dataMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected