Message catalog lookup and plural-form evaluation subroutines. This implementation comes from musl. See below for details and copyright info.
More...
|
| static uint64_t | msgcat_plural_eval (const char *, uint64_t) |
| |
| static const char * | msgcat_mo_lookup (const void *p, size_t size, const char *s) |
| |
| void | msgcat_init (msgcat_t *p, const void *map, size_t map_size) |
| | Initialize a msgcat_t, given the contents and content-length of a .mo file. More...
|
| |
| const char * | msgcat_ngettext (const msgcat_t *p, const char *msgid1, const char *msgid2, uint64_t n) |
| | Return a translation, if present, from the given message catalog. More...
|
| |
| static uint32_t | swapc (uint32_t x, int c) |
| |
| uint32_t | msgcat_nstringsFromHeader (const char buf[12]) |
| | Return the number of strings in a message catalog, given its first 12 bytes. More...
|
| |
| static const char * | skipspace (const char *s) |
| |
| static const char * | evalexpr (struct st *st, const char *s, int d) |
| |
| static const char * | evalprim (struct st *st, const char *s, int d) |
| |
| static int | binop (struct st *st, int op, uint64_t left) |
| |
| static const char * | parseop (struct st *st, const char *s) |
| |
| static const char * | evalbinop (struct st *st, const char *s, int minprec, int d) |
| |
Message catalog lookup and plural-form evaluation subroutines. This implementation comes from musl. See below for details and copyright info.
Definition in file msgcat.c.