OpenTTD Source
20241108-master-g80f628063a
|
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 int | MAX_PLURALS = 5 |
The maximum number of plurals. | |
static const PluralForm | _plural_forms [] |
All plural forms used. More... | |
static const char *const | _pragmas [][4] |
All pragmas used. More... | |
Tables of commands for strgen.
Definition in file strgen_tables.h.
enum CmdFlags |
Enumerator | |
---|---|
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 12 of file strgen_tables.h.
|
static |
All plural forms used.
Definition at line 171 of file strgen_tables.h.
Referenced by HeaderFileWriter::Finalise(), and StringReader::HandlePragma().
|
static |
All pragmas used.
Definition at line 202 of file strgen_tables.h.