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

Method Contains

util/generic/strbase.h:429–431  ·  view source on GitHub ↗

~~~~Contains~~~~ * @returns Whether this string contains the provided substring. */

Source from the content-addressed store, hash-verified

427 * @returns Whether this string contains the provided substring.
428 */
429 inline bool Contains(const TStringView s, size_t pos = 0) const noexcept {
430 return !s.length() || find(s, pos) != npos;
431 }
432
433 inline bool Contains(TChar c, size_t pos = 0) const noexcept {
434 return find(c, pos) != npos;

Callers 11

TestContainsMethod · 0.45
TestZeroMethod · 0.45
containsMethod · 0.45
TestRethrowAppendMethod · 0.45
TestFormat1Method · 0.45
TestMacroOverloadMethod · 0.45

Calls 2

findFunction · 0.50
lengthMethod · 0.45

Tested by 9

TestContainsMethod · 0.36
TestZeroMethod · 0.36
TestRethrowAppendMethod · 0.36
TestFormat1Method · 0.36
TestMacroOverloadMethod · 0.36