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

Method TrySplit

util/generic/strbuf.h:207–209  ·  view source on GitHub ↗

* Tries to split string in two parts using given delimiter character. * Searches for the delimiter, scanning string from the beginning. * The delimiter is excluded from the result. Both out parameters are * left unmodified if there was no delimiter character in string. * * @param[in] delim Delimiter character. * @param[out] l The fir

Source from the content-addressed store, hash-verified

205 * @returns Whether the split was actually performed.
206 */
207 inline bool TrySplit(TCharType delim, TdSelf& l, TdSelf& r) const noexcept {
208 return TrySplitOn(TBase::find(delim), l, r);
209 }
210
211 /**
212 * Tries to split string in two parts using given delimiter character.

Callers 6

TParsedHttpRequestMethod · 0.80
HasPrefixFunction · 0.80
HandleOptMethod · 0.80
ShellQuoteArgFunction · 0.80
DoParsePartMethod · 0.80

Calls 2

findFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected