![]() |
MPLABĀ® Harmony Graphics Suite
GFX v3.13.0
Legato API Documentation
|
String table functions and definitions. More...


Go to the source code of this file.
Data Structures | |
| struct | leStringTable |
| This struct represents string a string table. More... | |
| struct | leStringInfo |
| This struct represents string a string table entry. More... | |
Macros | |
| #define | LE_STRING_ARRAY_SIZE 4 |
| #define | LE_STRING_ENTRY_SIZE 2 |
| #define | LE_STRING_MAX_CHAR_WIDTH 6 |
Typedefs | |
| typedef enum leStringEncodingMode | leStringEncodingMode |
| This enum represents string encoding modes. More... | |
| typedef struct leStringTable | leStringTable |
| This struct represents string a string table. More... | |
| typedef struct leStringInfo | leStringInfo |
| This struct represents string a string table entry. | |
Enumerations | |
| enum | leStringEncodingMode { LE_STRING_ENCODING_ASCII, LE_STRING_ENCODING_UTF8, LE_STRING_ENCODING_UTF16 } |
| This enum represents string encoding modes. More... | |
Functions | |
| uint32_t | leStringTable_GetStringCount (const leStringTable *table) |
| Gets the number of strings in a string table. More... | |
| uint32_t | leStringTable_GetLanguageCount (const leStringTable *table) |
| Get number of languages in a string table. More... | |
| 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. More... | |
| uint32_t | leStringTable_GetActiveStringOffset (const leStringTable *table, uint32_t stringID) |
| Get offset of a string in table using active global language. More... | |
| leFont * | leStringTable_GetStringFont (const leStringTable *table, uint32_t stringID, uint32_t languageID) |
| Get font for a string table string. More... | |
| leResult | leStringTable_StringLookup (const leStringTable *table, leStringInfo *info) |
| Get info for a string table string. More... | |
| leResult | leStringTable_GetStringLength (const leStringTable *table, leStringInfo *info) |
| Get length of a string in the string table in codepoints. More... | |
String table functions and definitions.
| typedef enum leStringEncodingMode leStringEncodingMode |
This enum represents string encoding modes.
String encoding modes are used to encode text.
| typedef struct leStringTable leStringTable |
This struct represents string a string table.
String table is used to describe a string table asset. There is typically only ever one of these defined at any one time.
| enum leStringEncodingMode |
This enum represents string encoding modes.
String encoding modes are used to encode text.
| uint32_t leStringTable_GetActiveStringOffset | ( | const leStringTable * | table, |
| uint32_t | stringID | ||
| ) |
Get offset of a string in table using active global language.
Gets the offset of a string in table by stringID.
| table | is the table to query. |
| stringID | is the search criteria. |

| uint32_t leStringTable_GetLanguageCount | ( | const leStringTable * | table | ) |
Get number of languages in a string table.
Gets the number of languages in table.
| table | is the table to query. |
| uint32_t leStringTable_GetStringCount | ( | const leStringTable * | table | ) |
Gets the number of strings in a string table.
Gets the number of strings in table.
| table | is the table to query. |
| leFont* leStringTable_GetStringFont | ( | const leStringTable * | table, |
| uint32_t | stringID, | ||
| uint32_t | languageID | ||
| ) |
Get font for a string table string.
Gets the font in table by stringID and languageID.
| table | is the table to query. |
| stringID | the string search criteria. |
| languageID | the language search criteria. |
| leResult leStringTable_GetStringLength | ( | const leStringTable * | table, |
| leStringInfo * | info | ||
| ) |
Get length of a string in the string table in codepoints.
Gets the length of a string in table by info.
| table | is the table to query. |
| info | is the info search criteria. |
| 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.
Gets the offset of a string in table by stringID and languageID.
| table | is the table to query. |
| stringID | the search criteria. |
| languageID | the search criteria. |

| leResult leStringTable_StringLookup | ( | const leStringTable * | table, |
| leStringInfo * | info | ||
| ) |
Get info for a string table string.
Gets the offset of a string in table by info.
| table | is the table to query. |
| info | is the filled leStringInfo structure |