2023-08-31 04:27:00 +00:00
|
|
|
#pragma once
|
2023-08-23 05:51:55 +00:00
|
|
|
|
2023-08-31 04:27:00 +00:00
|
|
|
#include <cstdlib>
|
2023-08-23 05:51:55 +00:00
|
|
|
|
2023-08-31 04:27:00 +00:00
|
|
|
// Definition of the class generated by gperf
|
2023-08-23 05:51:55 +00:00
|
|
|
class HTMLCharacterHash
|
|
|
|
{
|
|
|
|
private:
|
2023-08-31 04:27:00 +00:00
|
|
|
static inline unsigned int hash(const char * str, size_t len);
|
|
|
|
|
2023-08-23 05:51:55 +00:00
|
|
|
public:
|
2023-08-31 04:27:00 +00:00
|
|
|
static const struct NameAndGlyph * Lookup(const char * str, size_t len);
|
2023-08-23 05:51:55 +00:00
|
|
|
};
|
|
|
|
|
2023-08-31 04:27:00 +00:00
|
|
|
// Definition of the struct generated by gperf
|
|
|
|
struct NameAndGlyph
|
2023-08-23 05:51:55 +00:00
|
|
|
{
|
2023-08-31 04:27:00 +00:00
|
|
|
const char * name;
|
|
|
|
const char * glyph;
|
|
|
|
};
|