Files
mars-unicode-tables/TAB/codepageTables.h
2026-06-12 20:38:01 +02:00

40 lines
926 B
C

/*
* Generated interface for MARS-NWE Unicode codepage mapping tables.
*
* Source data: Unicode.org Public/MAPPINGS.
* Do not replace these generated descriptors with Novell NSS unitables directory files.
*/
#ifndef MARS_UNICODE_CODEPAGE_TABLES_H
#define MARS_UNICODE_CODEPAGE_TABLES_H
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct MARSUnicodeCodePagePair_s {
uint16_t code;
uint16_t unicode;
} MARSUnicodeCodePagePair_t;
typedef struct MARSUnicodeCodePage_s {
const char *name;
const char *source;
uint8_t max_code_bytes;
uint32_t pair_count;
const MARSUnicodeCodePagePair_t *pairs;
} MARSUnicodeCodePage_t;
extern const MARSUnicodeCodePage_t MARSUnicodeCodePages[];
extern const size_t MARSUnicodeCodePageCount;
const MARSUnicodeCodePage_t *MARSUnicodeFindCodePage(const char *name);
#ifdef __cplusplus
}
#endif
#endif /* MARS_UNICODE_CODEPAGE_TABLES_H */