SymbolTable Class Reference
#include <symboltable.h>
Public Types | |
| typedef TQMap< TQChar, TQString > | NameTable |
| typedef TQMap< TQString, TQChar > | EntryTable |
Public Member Functions | |
| void | init (const TQFont &font) |
| bool | contains (TQString name) const |
| TQChar | unicode (TQString name) const |
| TQString | name (TQChar symbol) const |
| TQFont | font (TQChar symbol, const TQFont &f) const |
| CharClass | charClass (TQChar symbol) const |
| TQString | greekLetters () const |
| TQChar | unicodeFromSymbolFont (TQChar pos) const |
| TQStringList | allNames () const |
Detailed Description
The symbol table.
It contains all names that are know to the system.
Definition at line 77 of file symboltable.h.
Member Typedef Documentation
◆ EntryTable
| typedef TQMap<TQString, TQChar> SymbolTable::EntryTable |
Definition at line 117 of file symboltable.h.
◆ NameTable
| typedef TQMap<TQChar, TQString> SymbolTable::NameTable |
Definition at line 116 of file symboltable.h.
Constructor & Destructor Documentation
◆ SymbolTable()
| SymbolTable::SymbolTable | ( | ) |
Definition at line 61 of file symboltable.cpp.
Member Function Documentation
◆ allNames()
| TQStringList SymbolTable::allNames | ( | ) | const |
- Returns
- all known names as strings.
Definition at line 127 of file symboltable.cpp.
◆ charClass()
| CharClass SymbolTable::charClass | ( | TQChar | symbol | ) | const |
Definition at line 107 of file symboltable.cpp.
◆ contains()
| bool SymbolTable::contains | ( | TQString | name | ) | const |
Definition at line 83 of file symboltable.cpp.
◆ font()
| TQFont SymbolTable::font | ( | TQChar | symbol, |
| const TQFont & | f ) const |
Definition at line 99 of file symboltable.cpp.
◆ greekLetters()
| TQString SymbolTable::greekLetters | ( | ) | const |
- Returns
- a string with all greek letters.
Definition at line 121 of file symboltable.cpp.
◆ init()
| void SymbolTable::init | ( | const TQFont & | font | ) |
lazy init support.
Needs to be run before anything else.
- Parameters
-
install if true fonts may be installed if needed
Definition at line 66 of file symboltable.cpp.
◆ name()
| TQString SymbolTable::name | ( | TQChar | symbol | ) | const |
Definition at line 94 of file symboltable.cpp.
◆ unicode()
| TQChar SymbolTable::unicode | ( | TQString | name | ) | const |
- Returns
- the char in the symbol font that belongs to the given name.
Definition at line 88 of file symboltable.cpp.
◆ unicodeFromSymbolFont()
| TQChar SymbolTable::unicodeFromSymbolFont | ( | TQChar | pos | ) | const |
- Returns
- the unicode value of the symbol font char.
Definition at line 115 of file symboltable.cpp.
The documentation for this class was generated from the following files:
