MCPcopy Create free account
hub / github.com/catboost/catboost / DoParseFirstPart

Method DoParseFirstPart

util/folder/pathsplit.cpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17void TPathSplitTraitsUnix::DoParseFirstPart(const TStringBuf part) {
18 if (part == TStringBuf(".")) {
19 push_back(TStringBuf("."));
20
21 return;
22 }
23
24 if (IsAbsolutePath(part)) {
25 IsAbsolute = true;
26 }
27
28 DoParsePart(part);
29}
30
31void TPathSplitTraitsUnix::DoParsePart(const TStringBuf part0) {
32 DoAppendHint(part0.size() / 8);

Callers 1

TPathSplitBaseClass · 0.80

Calls 4

IsAbsolutePathFunction · 0.85
push_backFunction · 0.50
sizeMethod · 0.45
SubStrMethod · 0.45

Tested by

no test coverage detected