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

Method getArticle

tinydict/tinydict.cpp:842–849  ·  view source on GitHub ↗

returns article for word by index

Source from the content-addressed store, hash-verified

840
841/// returns article for word by index
842const char * TinyDictWordList::getArticle( int index )
843{
844 if ( !dict )
845 return NULL;
846 if ( index<0 || index>=count )
847 return NULL;
848 return dict->getData()->read( list[index] );
849}
850
851/// searches dictionary for specified word, caller is responsible for deleting of returned object
852TinyDictWordList * TinyDictionary::find( const char * prefix, int options )

Callers 2

mainFunction · 0.80
translateMethod · 0.80

Calls 2

readMethod · 0.45
getDataMethod · 0.45

Tested by

no test coverage detected