|
wxMaxima
|
Unicode code points and their names, see UnicodeNames.h. More...
#include "UnicodeNames.h"#include "../data/UnicodeData.h"#include <mutex>#include <wx/mstream.h>#include <wx/tokenzr.h>#include <wx/txtstrm.h>#include <wx/zstream.h>Functions | |
| std::optional< long > | wxm::HexCodePoint (const wxString &text) |
| The code point a hexadecimal number names, if it names one. | |
| void | wxm::ForEachUnicodeChar (const std::function< bool(long, const wxString &)> &func) |
Calls func(codePoint, name) for each named character in UnicodeData.txt. | |
| wxString | wxm::UnicodeCharName (long codePoint) |
| The name UnicodeData.txt gives a code point. | |
Unicode code points and their names, see UnicodeNames.h.
| void wxm::ForEachUnicodeChar | ( | const std::function< bool(long, const wxString &)> & | func | ) |
Calls func(codePoint, name) for each named character in UnicodeData.txt.
In the table's order, which is ascending code points. Control characters and the private-use planes are skipped; the "<..., First>"/"<..., Last>" markers of the other ranges are not. Stops early if func returns false.
| std::optional< long > wxm::HexCodePoint | ( | const wxString & | text | ) |
The code point a hexadecimal number names, if it names one.
| text | A hex number, optionally preceded by "u+" or "U+" ("61", "00be", "U+1D49C"). |
| wxString wxm::UnicodeCharName | ( | long | codePoint | ) |
The name UnicodeData.txt gives a code point.
Decompresses and scans the table, stopping at the code point; the result of the last call is cached, as the popup asks for the same code point while the list is redrawn.