PDFTextWordInterop *PDFTextLineInterop::getWords() { if(_words == NULL) { TextLine *line = (TextLine *)_textLine; TextWord *words = line->getWords(); _words = new PDFTextWordInterop(_textBlock, this, words, 0); } return _words; }
int PDFTextLineInterop::getWordCount() { if(_wordCount == -1) { TextLine *line = (TextLine *)_textLine; TextWord *words = line->getWords(); TextWord *word = NULL; _wordCount = 0; while(words) { word = words; words = words->getNext(); _wordCount++; } } return _wordCount; }