wxMaxima
Loading...
Searching...
No Matches
UnicodeNames.h
Go to the documentation of this file.
1// -*- mode: c++; c-file-style: "linux"; c-basic-offset: 2; indent-tabs-mode: nil -*-
2//
3// Copyright (C) 2026 Gunter Königsmann <wxMaxima@physikbuch.de>
4//
5// This program is free software; you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation; either version 2 of the License, or
8// (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15//
16// You should have received a copy of the GNU General Public License
17// along with this program; if not, write to the Free Software
18// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19//
20// SPDX-License-Identifier: GPL-2.0+
21
22
33#ifndef UNICODENAMES_H
34#define UNICODENAMES_H
35
36#include <functional>
37#include <optional>
38#include <wx/string.h>
39
40namespace wxm {
49std::optional<long> HexCodePoint(const wxString &text);
50
61wxString UnicodeCharName(long codePoint);
62
69void ForEachUnicodeChar(const std::function<bool(long, const wxString &)> &func);
70} // namespace wxm
71
72#endif // UNICODENAMES_H
std::optional< long > HexCodePoint(const wxString &text)
The code point a hexadecimal number names, if it names one.
Definition: UnicodeNames.cpp:36
wxString UnicodeCharName(long codePoint)
The name UnicodeData.txt gives a code point.
Definition: UnicodeNames.cpp:79
void ForEachUnicodeChar(const std::function< bool(long, const wxString &)> &func)
Calls func(codePoint, name) for each named character in UnicodeData.txt.
Definition: UnicodeNames.cpp:57
void func()
function in group 1
Definition: group.cpp:13