entities.h
1//
2// Created: Tue Aug 29 16:20:33 2006
3// by: bynames.py
4// from: byalpha.html
5//
6// WARNING! All changes made in this file will be lost!
7
8/* This file is part of the KDE project
9 Copyright (C) 2006 Alfredo Beaumont Sainz <alfredo.beaumont@gmail.com>
10
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Library General Public
13 License as published by the Free Software Foundation; either
14 version 2 of the License, or (at your option) any later version.
15
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Library General Public License for more details.
20
21 You should have received a copy of the GNU Library General Public License
22 along with this library; see the file COPYING.LIB. If not, write to
23 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301, USA.
25*/
26
27
28#ifndef ENTITIES_H
29#define ENTITIES_H
30
31#include "kformuladefs.h"
32
33KFORMULA_NAMESPACE_BEGIN
34
35struct entityMap {
36 static int size();
37 int operator<( const char* right ) const {
38 return strcmp( name, right ) < 0;
39 }
40 const char* name;
41 const uint unicode;
42};
43
44extern const entityMap entities[];
45
46KFORMULA_NAMESPACE_END
47
48#endif // ENTITIES_H
49
const char * name(StdAction id)