sentence_highlighter.cpp¶
file src/app/widgets/sentence_highlighter.cpp ยท Applications
Implementation of sentence_spans and SentenceHighlighter.
Source src/app/widgets/sentence_highlighter.cpp
Namespaces¶
| Namespace | Description |
|---|---|
nmeasim::app |
The Qt Widgets desktop application: the main window, its dock panels, the map, the instruments and the settings dialog, built on nmeasim::io. |
Namespace members¶
Declared or defined in this file and documented on the page of their namespace.
| Member | Description |
|---|---|
nmeasim::app::sentence_spans |
Splits a console line into coloured runs. |
Summary¶
File-local functions
| Name | Description |
|---|---|
is_hex() |
Tells whether a character is a hexadecimal digit, as used in NMEA 0183 checksums. |
File-local functions¶
is_hex()¶
bool is_hex(QChar c)
Tells whether a character is a hexadecimal digit, as used in NMEA 0183 checksums.
Parameters
| Name | Type | Description |
|---|---|---|
c |
QChar |
Character to test. |
Returns bool: True for the ASCII digits 0 to 9 and for A to F and a to f; false for every other character, including non-ASCII decimal digits.
Declared in src/app/widgets/sentence_highlighter.cpp:23