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

Method TryRSplit

util/generic/strbuf.h:222–224  ·  view source on GitHub ↗

* Tries to split string in two parts using given delimiter character. * Searches for the delimiter, scanning string from the end. * 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 first par

Source from the content-addressed store, hash-verified

220 * @returns Whether the split was actually performed.
221 */
222 inline bool TryRSplit(TCharType delim, TdSelf& l, TdSelf& r) const noexcept {
223 return TrySplitOn(TBase::rfind(delim), l, r);
224 }
225
226 /**
227 * Tries to split string in two parts using given delimiter sequence.

Callers 2

TryGetSchemeHostAndPortFunction · 0.80
mode_model_sumFunction · 0.80

Calls 2

rfindFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected