#include <tsTeletextCharset.h>
Implementation of a Teletext character set.
◆ TeletextCharset()
| ts::TeletextCharset::TeletextCharset |
( |
| ) |
|
◆ teletextToUcs2()
| UChar ts::TeletextCharset::teletextToUcs2 |
( |
uint8_t | chr | ) |
const |
Check parity and translate any reasonable Teletext character into UCS-2.
- Parameters
-
| [in] | chr | Teletext character. |
- Returns
- UCS-2 equivalent.
◆ g2AccentToUcs2()
| UChar ts::TeletextCharset::g2AccentToUcs2 |
( |
uint8_t | chr, |
|
|
uint8_t | accent ) const |
Translate a G2 character into UCS-2.
- Parameters
-
| [in] | chr | Teletext character. |
| [in] | accent | Accent mode (0 to 14) if c is a letter. |
- Returns
- UCS-2 equivalent.
◆ g2ToUcs2()
| UChar ts::TeletextCharset::g2ToUcs2 |
( |
uint8_t | chr | ) |
const |
Translate a G2 character into UCS-2.
- Parameters
-
| [in] | chr | Teletext character. |
- Returns
- UCS-2 equivalent.
◆ setG0Charset()
| void ts::TeletextCharset::setG0Charset |
( |
uint32_t | triplet | ) |
|
Set default G0 character set.
- Parameters
-
◆ setX28()
| void ts::TeletextCharset::setX28 |
( |
uint8_t | charset | ) |
|
Set the X/28 character set and use it as current character set.
- Parameters
-
| [in] | charset | Charactet set index. |
◆ setM29()
| void ts::TeletextCharset::setM29 |
( |
uint8_t | charset | ) |
|
Set the M/29 character set and use it as current character set if X/28 is not defined.
- Parameters
-
| [in] | charset | Charactet set index. |
◆ resetX28()
| void ts::TeletextCharset::resetX28 |
( |
uint8_t | fallback | ) |
|
Reset the X/28 character set to undefined. Use M/29 as current character or use fallback if M/29 is undefined.
- Parameters
-
| [in] | fallback | Fallback charactet set index if M/29 is undefined. |
◆ CHAR_COUNT
| size_t ts::TeletextCharset::CHAR_COUNT = 96 |
|
staticconstexpr |
Number of characters per charset.
The documentation for this class was generated from the following file: