30 #ifndef LEGATO_STRINGTABLE_H 31 #define LEGATO_STRINGTABLE_H 41 #define LE_STRING_ARRAY_SIZE 4 42 #define LE_STRING_ENTRY_SIZE 2 43 #define LE_STRING_MAX_CHAR_WIDTH 6 52 LE_STRING_ENCODING_ASCII,
53 LE_STRING_ENCODING_UTF8,
54 LE_STRING_ENCODING_UTF16
86 uint8_t* stringTableData;
88 leStringEncodingMode encodingMode;
107 uint32_t stringIndex;
157 uint32_t languageID);
194 uint32_t languageID);
virtual uint32_t length(const leString *_this)
Get length of the string.
leResult leStringTable_GetStringLength(const leStringTable *table, leStringInfo *info)
Get length of a string in the string table in codepoints.
Definition: legato_stringtable.c:214
Common macros and definitions used by Legato.
Font functions and definitions.
leResult leStringTable_StringLookup(const leStringTable *table, leStringInfo *info)
Get info for a string table string.
Definition: legato_stringtable.c:184
uint32_t leStringTable_GetStringCount(const leStringTable *table)
Gets the number of strings in a string table.
Definition: legato_stringtable.c:49
struct leStringInfo leStringInfo
This struct represents string a string table entry.
This struct represents a font object.
Definition: legato_font.h:156
leResult
This enum represents function call results.
Definition: legato_common.h:123
This struct represents a stream descriptor.
Definition: legato_stream.h:60
leStringEncodingMode
This enum represents string encoding modes.
Definition: legato_stringtable.h:50
uint32_t leStringTable_GetStringOffset(const leStringTable *table, uint32_t stringID, uint32_t languageID)
Get offset of a string in table by string and language ID.
Definition: legato_stringtable.c:73
This struct represents string a string table.
Definition: legato_stringtable.h:83
uint32_t leStringTable_GetActiveStringOffset(const leStringTable *table, uint32_t stringID)
Get offset of a string in table using active global language.
Definition: legato_stringtable.c:104
struct leStringTable leStringTable
This struct represents string a string table.
This struct represents string a string table entry.
Definition: legato_stringtable.h:105
uint32_t leStringTable_GetLanguageCount(const leStringTable *table)
Get number of languages in a string table.
Definition: legato_stringtable.c:61
leFont * leStringTable_GetStringFont(const leStringTable *table, uint32_t stringID, uint32_t languageID)
Get font for a string table string.
Definition: legato_stringtable.c:110