MCPcopy Create free account
hub / github.com/cinder/Cinder / Dictionary

Method Dictionary

samples/_timeline/VisualDictionary/src/Dictionary.cpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18using namespace ci;
19
20Dictionary::Dictionary( DataSourceRef dataSource )
21{
22 Buffer decompressed = decompressBuffer( Buffer( dataSource ), false, true );
23
24 // read out all the words, which are separated by lines and are already alphabetized
25 IStreamMemRef stream = IStreamMem::create( decompressed.getData(), decompressed.getSize() );
26 while( ! stream->isEof() )
27 mWords.push_back( stream->readLine() );
28}
29
30// Functor used to determine whether the prefix of length 'compareLength' of two words are the same
31struct CompareStringPrefix {

Callers

nothing calls this directly

Calls 8

decompressBufferFunction · 0.85
BufferClass · 0.85
readLineMethod · 0.80
createFunction · 0.50
getDataMethod · 0.45
getSizeMethod · 0.45
isEofMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected