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

Function FastStrChr

util/string/split.h:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74template <class I1, class I2>
75static inline I1* FastStrChr(I1* str, I2 f) noexcept {
76 I1* ret = NStringSplitPrivate::Find(str, f);
77
78 if (!ret) {
79 ret = str + std::char_traits<I1>::length(str);
80 }
81
82 return ret;
83}
84
85template <class I>
86static inline I* FastStrStr(I* str, I* f, size_t l) noexcept {

Callers 1

FindMethod · 0.85

Calls 2

FindFunction · 0.70
lengthFunction · 0.50

Tested by

no test coverage detected