BadWord Class Reference

#include <SpellCheckerDialog.h>

List of all members.

Public Member Functions

 BadWord (int _lineIndex, int _wordIndex, const QByteArray &_resultInfo)
 Bad Word Constructor.

Public Attributes

int lineIndex
int wordIndex
int charIndex
QString badWord
QStringList suggestionList


Detailed Description

Definition at line 37 of file SpellCheckerDialog.h.


Constructor & Destructor Documentation

BadWord::BadWord ( int  _lineIndex,
int  _wordIndex,
const QByteArray &  _resultInfo 
) [inline]

Bad Word Constructor.

This is the initializer for the BadWord object.

Lines that begin with '&' are lines where a list of correction words were found.

_resultInfo Input Line
    & parserr 32 154: pars err, pars-err, parser,...
Keys Definitions;
  '&'        ~ denotes a line with suggestions
  'parserr'  ~ indicates the incorrect word
  '32'       ~ indicates how many suggestions are given
  '154'      ~ the character position on this line where
                the misspelled word is found
  ':'        ~ separates the list of suggestions
  'pars err' ~ the first suggestion
  ','        ~ suggestion delimiter
  'pars-err' ~ the second suggestion
Lines that begin with '#' are lines where a list of correction words could not be found.

_resultInfo Input Line
    # dhdhuhudhddhhe 10
Keys Definitions;
  '#'              ~ denotes a line with no suggestions
  'dhdhuhudhddhhe' ~ indicates the incorrect word
  '10'             ~ indicates the character position on
                      the line where the bad word was
                      found.
Parameters:
_wordIndex int ~ Word position within the entire text where the bad word was found. Words are chunks of text separated by spaces. Therefore, it is possible to take this word index and split up the input text by space and find the bad word by this index value... more or less.
_resultInfo QByteArray ~ Result response that comes from the spell checker. This text has the bad word, information about where it's located within the body of text, and all the possible correct word suggestions.

Definition at line 49 of file SpellCheckerDialog.h.


Member Data Documentation

This is the bad word identified by the spell checker.

Definition at line 197 of file SpellCheckerDialog.h.

Definition at line 191 of file SpellCheckerDialog.h.

The line on which where this misspelled word occurred

Definition at line 174 of file SpellCheckerDialog.h.

This is a string list of suggestions provided by the spell checker.

Definition at line 204 of file SpellCheckerDialog.h.

This indicates where this bad word resides in the list of words provided to the spell checker. It is the index into the entire document, regardless of paragraph or line breaks. The index is based upon chunks of text that are separated by spaces.

Definition at line 184 of file SpellCheckerDialog.h.


The documentation for this class was generated from the following file:




~ ~ ~ ~ ~ ~
Source Code without Comments is like a Cranberry Garland
without the berries. Comment your Code!
 
Commence Database User Support Group Forum
http://newsgroup.showoff-db.org/
~ ~ ~ ~ ~ ~
Author: Mark Petryk
Lorimark Solutions, LLC
mark@lorimarksolutions.com