MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / startsWith

Function startsWith

src/Interpreters/SynonymsExtensions.cpp:81–84  ·  view source on GitHub ↗

Duplicate of code from StringUtils.h. Copied here for less dependencies.

Source from the content-addressed store, hash-verified

79
80/// Duplicate of code from StringUtils.h. Copied here for less dependencies.
81static bool startsWith(const std::string & s, const char * prefix)
82{
83 return s.size() >= strlen(prefix) && 0 == memcmp(s.data(), prefix, strlen(prefix));
84}
85
86SynonymsExtensions::SynonymsExtensions(const Poco::Util::AbstractConfiguration & config)
87{

Callers 15

ClusterMethod · 0.70
SynonymsExtensionsMethod · 0.70
functionIsJoinGetFunction · 0.70
functionIsDictGetFunction · 0.70
readFileInfoMethod · 0.70
createTableMethod · 0.70
prepareOnClusterQueryMethod · 0.70
filterAndSortQueueNodesFunction · 0.70
visitOtherMethod · 0.70
getLogEntryNumberMethod · 0.70

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected