|
JS8Call-Improved master
|
Helper for checking and suggesting compressed-codewords. More...
#include <JSC_checker.h>


Public Member Functions | |
| JSCChecker (QObject *parent=nullptr) | |
| Construct a checker instance. | |
Static Public Member Functions | |
| static void | checkRange (QTextEdit *edit, int start, int end) |
Check the text in edit between start and end. | |
| static QStringList | suggestions (QString word, int n, bool *pFound) |
Generate up to n suggestion words for word. | |
Helper for checking and suggesting compressed-codewords.
The class exposes two static convenience methods: one to examine a range inside a QTextEdit and mark or process words, and another to produce suggestion candidates for a single word.
|
explicit |
Construct a checker instance.
Construct a new JSCChecker::JSCChecker object.
| parent | Optional parent QObject. |
| parent |
|
static |
Check the text in edit between start and end.
Check the range of text in the QTextEdit for valid JSC callsigns.
| edit | The QTextEdit containing the text to check. |
| start | Byte offset (or cursor position) of the range start. |
| end | Byte offset (or cursor position) of the range end. |
This routine inspects words in the given range and can be used to highlight unknown words or trigger UI updates. Implementation may interact with the UI; call from the GUI thread.
| edit | |
| start | |
| end |

|
static |
Generate up to n suggestion words for word.
Generate suggestions for the given word.
| word | The input word to generate suggestions for. |
| n | Maximum number of suggestions to return. |
| pFound | Optional output boolean set to true when an exact match is found. |
| word | |
| n | |
| pFound |
