|
mbgtools-lx
4.2.8
|
Go to the source code of this file.
Data Structures | |
| struct | CTRY |
Macros | |
| #define | _ext extern |
| #define | LNG_DEFINED |
| #define | CTRY_US 1 |
| #define | CTRY_UK 44 |
| #define | CTRY_GERMANY 49 |
| #define | CTRY_DEFINED |
| #define | DT_SEP_DOT '.' |
| #define | DT_SEP_MINUS '-' |
| #define | DT_SEP_SLASH '/' |
| #define | DT_SEP_LIST { DT_SEP_DOT, DT_SEP_MINUS, DT_SEP_SLASH, 0 } |
| #define | TM_SEP_COLON ':' |
| #define | TM_SEP_DOT '.' |
| #define | TM_SEP_LIST { TM_SEP_COLON, TM_SEP_DOT, 0 } |
| #define | _ctry_init() ctry_setup( ctry_get_code() ) |
| #define | _next_language() |
| #define | _lstr(_s) lstr_lng( (_s), language ) |
| #define | _clstr(_s) clstr_lng( language, _s ) |
Typedefs | |
| typedef uint8_t | LANGUAGE |
| typedef uint16_t | CTRY_CODE |
| typedef char * | LSTR[N_LNG] |
| typedef char ** | PLSTR |
| typedef const char *const | CLSTR[N_LNG] |
| typedef const char *const * | PCLSTR |
Enumerations | |
| enum | { LNG_ENGLISH, LNG_GERMAN, N_LNG } |
| enum | { DT_FMT_DDMMYYYY, DT_FMT_MMDDYYYY, DT_FMT_YYYYMMDD, N_DT_FMT } |
| enum | { TM_FMT_24H, N_TM_FMT } |
Functions | |
| int | lstr_idx (CLSTR s, int lng) |
| int | lstr_array_idx (CLSTR s, int idx, int n_lng, int lng) |
| const char * | lstr_lng (CLSTR s, int lng) |
| void | ctry_setup (CTRY_CODE code) |
| void | ctry_next (void) |
| const char * | clstr_lng (int index,...) |
Variables | |
| LANGUAGE | language |
| CTRY | ctry |
| #define _ctry_init | ( | ) | ctry_setup( ctry_get_code() ) |
Definition at line 199 of file ctry.h.
Referenced by get_tz_name(), inv_str(), pcps_serial_str(), pcps_setup_status_str(), pcps_status_strs(), and pcps_tz_name_from_status().
| #define _next_language | ( | ) |
| #define CTRY_GERMANY 49 |
Definition at line 138 of file ctry.h.
Referenced by ctry_next(), and ctry_setup().
| #define CTRY_UK 44 |
Definition at line 137 of file ctry.h.
Referenced by ctry_next(), and ctry_setup().
| #define CTRY_US 1 |
Definition at line 136 of file ctry.h.
Referenced by ctry_next(), and ctry_setup().
| #define DT_SEP_DOT '.' |
Definition at line 164 of file ctry.h.
Referenced by ctry_setup().
| #define DT_SEP_LIST { DT_SEP_DOT, DT_SEP_MINUS, DT_SEP_SLASH, 0 } |
| #define DT_SEP_MINUS '-' |
Definition at line 165 of file ctry.h.
Referenced by ctry_setup().
| #define DT_SEP_SLASH '/' |
Definition at line 166 of file ctry.h.
Referenced by ctry_setup().
| #define TM_SEP_COLON ':' |
Definition at line 173 of file ctry.h.
Referenced by ctry_setup().
| #define TM_SEP_LIST { TM_SEP_COLON, TM_SEP_DOT, 0 } |
| anonymous enum |
| void ctry_next | ( | void | ) |
Definition at line 132 of file ctry.c.
References CTRY::code, ctry, CTRY_GERMANY, ctry_setup(), CTRY_UK, and CTRY_US.
| void ctry_setup | ( | CTRY_CODE | code | ) |
Definition at line 92 of file ctry.c.
References CTRY::code, ctry, CTRY_GERMANY, CTRY_UK, CTRY_US, CTRY::dt_fmt, DT_FMT_DDMMYYYY, DT_FMT_MMDDYYYY, CTRY::dt_sep, DT_SEP_DOT, DT_SEP_MINUS, DT_SEP_SLASH, language, LNG_ENGLISH, LNG_GERMAN, CTRY::tm_fmt, TM_FMT_24H, CTRY::tm_sep, and TM_SEP_COLON.
Referenced by ctry_next(), and main().
| int lstr_array_idx | ( | CLSTR | s, |
| int | idx, | ||
| int | n_lng, | ||
| int | lng | ||
| ) |
Definition at line 73 of file ctry.c.
References mbg_database::idx, and lstr_idx().
| int lstr_idx | ( | CLSTR | s, |
| int | lng | ||
| ) |
Definition at line 51 of file ctry.c.
References N_LNG.
Referenced by lstr_array_idx(), and lstr_lng().
| const char* lstr_lng | ( | CLSTR | s, |
| int | lng | ||
| ) |
Definition at line 83 of file ctry.c.
References lstr_idx().
| CTRY ctry |
Definition at line 126 of file mbgstatus.c.
Referenced by ctry_next(), and ctry_setup().
| LANGUAGE language |
Definition at line 125 of file mbgstatus.c.
Referenced by ctry_setup(), pcps_date_time_str(), pcps_str_tm_gps_date_time(), and pcps_tzcode_str().