Android-cuttlefish cvd tool
Namespaces | Macros | Functions | Variables
ConfirmationUITranslations.cpp File Reference
#include <teeui/localization/ConfirmationUITranslations.h>
#include <stdint.h>
#include <string.h>
Include dependency graph for ConfirmationUITranslations.cpp:

Namespaces

namespace  teeui
 
namespace  teeui::localization
 

Macros

#define ARRAY_ELEMENTS(arr)    (sizeof(arr)/sizeof(arr[0]))
 
#define NUM_LANGUAGE_IDS    (ARRAY_ELEMENTS(languageIds) - 1)
 
#define NUM_TRANSLATION_IDS   uint32_t(TranslationId::__COUNT__)
 
#define MAX_LANG_ID_SIZE   256
 

Functions

static int teeui::localization::findStr (const char *const *haystack, const char *needle)
 
int teeui::localization::langIdMatch (const char *const *lang_ids, const char *lang_id)
 
const char * teeui::localization::selectLangId (const char *lang_id)
 
const char * teeui::localization::lookup (TranslationId translation_id)
 
Languages teeui::localization::getLanguages (void)
 

Variables

static constexpr const char * teeui::localization::languageIds []
 
static constexpr const char * teeui::localization::translationIds [NUM_TRANSLATION_IDS][NUM_LANGUAGE_IDS]
 
static size_t teeui::localization::selectedLangIdIndex = 0
 

Macro Definition Documentation

◆ ARRAY_ELEMENTS

#define ARRAY_ELEMENTS (   arr)     (sizeof(arr)/sizeof(arr[0]))

◆ MAX_LANG_ID_SIZE

#define MAX_LANG_ID_SIZE   256

◆ NUM_LANGUAGE_IDS

#define NUM_LANGUAGE_IDS    (ARRAY_ELEMENTS(languageIds) - 1)

◆ NUM_TRANSLATION_IDS

#define NUM_TRANSLATION_IDS   uint32_t(TranslationId::__COUNT__)