Tables of commands for strgen. More...
#include "../core/enum_type.hpp"
Go to the source code of this file.
Data Structures | |
struct | CmdStruct |
struct | PluralForm |
Description of a plural form. More... | |
Typedefs | |
typedef void(* | ParseCmdProc )(Buffer *buffer, char *buf, int value) |
Enumerations | |
enum | CmdFlags { C_NONE = 0x0, C_DONTCOUNT = 0x1, C_CASE = 0x2, C_GENDER = 0x4 } |
Functions | |
void | EmitSingleChar (Buffer *buffer, char *buf, int value) |
void | EmitPlural (Buffer *buffer, char *buf, int value) |
void | EmitGender (Buffer *buffer, char *buf, int value) |
Variables | |
static const CmdStruct | _cmd_structs [] |
static const PluralForm | _plural_forms [] |
All plural forms used. | |
static const char *const | _pragmas [][4] |
All pragmas used. |
Tables of commands for strgen.
Definition in file strgen_tables.h.
enum CmdFlags |
C_NONE |
Nothing special about this command. |
C_DONTCOUNT |
These commands aren't counted for comparison. |
C_CASE |
These commands support cases. |
C_GENDER |
These commands support genders. |
Definition at line 14 of file strgen_tables.h.
const PluralForm _plural_forms[] [static] |
{ { 2, "Two forms: singular used for 1 only." }, { 1, "Only one form." }, { 2, "Two forms: singular used for 0 and 1." }, { 3, "Three forms: special cases for 0, and numbers ending in 1 except when ending in 11." }, { 5, "Five forms: special cases for 1, 2, 3 to 6, and 7 to 10." }, { 3, "Three forms: special cases for numbers ending in 1 except when ending in 11, and 2 to 9 except when ending in 12 to 19." }, { 3, "Three forms: special cases for numbers ending in 1 except wehn ending in 11, and 2 to 4 except when ending in 12 to 14." }, { 3, "Three forms: special cases for 1, and numbers ending in 2 to 4 except when ending in 12 to 14." }, { 4, "Four forms: special cases for numbers ending in 01, 02, and 03 to 04." }, { 2, "Two forms: singular used for numbers ending in 1 except when ending in 11." }, { 3, "Three forms: special cases for 1, and 2 to 4." }, { 2, "Two forms: cases for numbers ending with a consonant, and with a vowel." }, { 4, "Four forms: special cases for 1, 0 and numbers ending in 02 to 10, and numbers ending in 11 to 19." }, }
All plural forms used.
Definition at line 162 of file strgen_tables.h.
Referenced by FileStringReader::HandlePragma().
const char* const _pragmas[][4] [static] |
{ { "name", "0", "", "English name for the language" }, { "ownname", "t", "", "Localised name for the language" }, { "isocode", "0", "", "ISO code for the language" }, { "plural", "tp", "0", "Plural form to use" }, { "textdir", "tl", "ltr", "Text direction. Either ltr (left-to-right) or rtl (right-to-left)" }, { "digitsep", "td", ",", "Digit grouping separator for non-currency numbers" }, { "digitsepcur", "td", ",", "Digit grouping seprarator for currency numbers" }, { "decimalsep", "td", ".", "Decimal separator" }, { "winlangid", "x2", "0x0000", "Language ID for Windows" }, { "grflangid", "x1", "0x00", "Language ID for NewGRFs" }, { "gender", "tag", "", "List of genders" }, { "case", "tac", "", "List of cases" }, }
All pragmas used.
Definition at line 191 of file strgen_tables.h.