MCPcopy Create free account
hub / github.com/buggins/coolreader / match

Method match

tinydict/tinydict.cpp:379–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379bool TinyDictWord::match( const char * str, bool exact ) const
380{
381 if ( exact )
382 return !strcmp( word, str );
383 int i=0;
384 for ( ; str[i]; i++ ) {
385 if ( str[i] != word[i] )
386 return false;
387 }
388 return str[i]==0;
389}
390
391bool TinyDictIndexFile::find( const char * prefix, bool exactMatch, TinyDictWordList & words )
392{

Callers 1

findMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected