mirror of
https://github.com/depp/syncfiles.git
synced 2024-06-14 11:29:28 +00:00
5ad207f785
This simplifies the conversion test, since we don't need to be careful about which data we run the conversion test in. It will also simplify the command-line conversion tool and its distribution. The classic Mac OS version of this program will continue to embed conversion tables in the resource fork.
26 lines
731 B
C
26 lines
731 B
C
#ifndef data_h
|
|
#define data_h
|
|
/* data.h - charmap data, not used for classic Mac OS builds */
|
|
#include "convert/defs.h"
|
|
|
|
/* Get the ID of the given character map. Return NULL if no such character map
|
|
exists. */
|
|
const char *CharmapID(int cmap);
|
|
|
|
/* Get the human-readable name fo the given character map. Return NULL if no
|
|
such character map exists. */
|
|
const char *CharmapName(int cmap);
|
|
|
|
/* Conversion table data. */
|
|
struct CharmapData {
|
|
const UInt8 *ptr;
|
|
Size size;
|
|
};
|
|
|
|
/* Get the conversion table data for the given charmap. Returns an empty buffer
|
|
with a NULL pointer if the character map does not exist or if no conversion
|
|
table exists for that character map. */
|
|
struct CharmapData CharmapData(int cmap);
|
|
|
|
#endif
|