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

Class TPathSplitBase

util/folder/pathsplit.h:69–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68template <class TTraits>
69class TPathSplitBase: public TTraits {
70public:
71 inline TPathSplitBase() = default;
72
73 inline TPathSplitBase(const TStringBuf part) {
74 this->ParseFirstPart(part);
75 }
76
77 inline TPathSplitBase& AppendHint(size_t hint) {
78 this->DoAppendHint(hint);
79
80 return *this;
81 }
82
83 inline TPathSplitBase& ParseFirstPart(const TStringBuf part) {
84 this->DoParseFirstPart(part);
85
86 return *this;
87 }
88
89 inline TPathSplitBase& ParsePart(const TStringBuf part) {
90 this->DoParsePart(part);
91
92 return *this;
93 }
94
95 template <class It>
96 inline TPathSplitBase& AppendMany(It b, It e) {
97 this->AppendHint(e - b);
98
99 while (b != e) {
100 this->AppendComponent(*b++);
101 }
102
103 return *this;
104 }
105};
106
107using TPathSplit = TPathSplitBase<TPathSplitTraitsLocal>;
108using TPathSplitUnix = TPathSplitBase<TPathSplitTraitsUnix>;

Callers

nothing calls this directly

Calls 4

DoAppendHintMethod · 0.80
DoParseFirstPartMethod · 0.80
DoParsePartMethod · 0.80
AppendComponentMethod · 0.80

Tested by

no test coverage detected