Minsky
schema3::anonymous_namespace{schema3.cc} Namespace Reference

Functions

bool matchesStart (const string &x, const string &y)
 

Function Documentation

◆ matchesStart()

bool schema3::anonymous_namespace{schema3.cc}::matchesStart ( const string &  x,
const string &  y 
)
inline

Definition at line 206 of file schema3.cc.

Referenced by schema3::MinskyItemFactory::create().

207  {
208  const size_t n=min(x.length(),y.length());
209  return x.substr(0,n)==y.substr(0,n);
210  }
Here is the caller graph for this function: