Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/locale/collate.h
Context not available. | |||||
#endif | #endif | ||||
#define COLLATE_STR_LEN 24 /* should be 64-bit multiple */ | #define COLLATE_STR_LEN 24 /* should be 64-bit multiple */ | ||||
#define COLLATE_VERSION "BSD 1.0\n" | |||||
#define COLLATE_FMT_VERSION_LEN 12 | |||||
#define COLLATE_FMT_VERSION "BSD 1.0\n" | |||||
#define COLLATE_MAX_PRIORITY (0x7fffffff) /* max signed value */ | #define COLLATE_MAX_PRIORITY (0x7fffffff) /* max signed value */ | ||||
#define COLLATE_SUBST_PRIORITY (0x40000000) /* bit indicates subst table */ | #define COLLATE_SUBST_PRIORITY (0x40000000) /* bit indicates subst table */ | ||||
Context not available. | |||||
/* | /* | ||||
* The collate file format is as follows: | * The collate file format is as follows: | ||||
* | * | ||||
* char version[COLLATE_STR_LEN]; // must be COLLATE_VERSION | * char fmt_version[COLLATE_FMT_VERSION_LEN]; // must be COLLATE_FMT_VERSION | ||||
* char def_version[XLOCALE_DEF_VERSION_LEN]; // NUL-terminated, may be empty | |||||
* collate_info_t info; // see below, includes padding | * collate_info_t info; // see below, includes padding | ||||
* collate_char_pri_t char_data[256]; // 8 bit char values | * collate_char_pri_t char_data[256]; // 8 bit char values | ||||
* collate_subst_t subst[*]; // 0 or more substitutions | * collate_subst_t subst[*]; // 0 or more substitutions | ||||
Context not available. |