45 #ifndef LE_STRINGUTILS_H    46 #define LE_STRINGUTILS_H   294 leResult leStringUtils_GetCharIndexAtPointCStr(
const char* str,
   310 leResult leDecodeCodePoint(uint32_t encoding,
 leResult leStringUtils_GetCharRectCStr(const char *str, const leFont *font, uint32_t charIdx, leRect *rect)
Gets a glyph bounding rectangle for a C-style string. 
Definition: legato_stringutils.c:439
 
uint32_t leStringUtils_FromCStr(const char *str, leChar *buf, uint32_t size)
Convert c-style string to leChar. 
Definition: legato_stringutils.c:36
 
uint32_t leStringUtils_ToCStr(const leChar *str, uint32_t strSize, char *buf, uint32_t bufSize)
Convert leChar buffer to C-style string. 
Definition: legato_stringutils.c:58
 
leResult leStringUtils_GetRectCStr(const char *str, const leFont *font, leRect *rect)
Gets the bounding rectangle for a C-style string. 
Definition: legato_stringutils.c:128
 
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 rectangle. 
Definition: legato_common.h:394
 
uint32_t leStringUtils_GetLineCountCStr(const char *str)
Get line count for a C-style string. 
Definition: legato_stringutils.c:194
 
leResult leStringUtils_GetLineIndicesCStr(const char *str, uint32_t line, uint32_t *start, uint32_t *end)
Gets the line indices for a C-style string. 
Definition: legato_stringutils.c:262
 
leResult leStringUtils_GetLineIndices(const leChar *str, uint32_t size, uint32_t line, uint32_t *start, uint32_t *end)
Get line indices for a leChar style string. 
Definition: legato_stringutils.c:221
 
leResult leStringUtils_GetLineRect(const leChar *str, uint32_t size, const leFont *font, uint32_t line, leRect *rect)
Gets the line bounding rectangle for a leChar style string. 
Definition: legato_stringutils.c:305
 
leResult leStringUtils_GetLineRectCStr(const char *str, const leFont *font, uint32_t line, leRect *rect)
Gets the line bounding rectangle for a C-style string. 
Definition: legato_stringutils.c:347
 
This struct represents a rasterized font object. 
Definition: legato_font.h:188
 
leResult leStringUtils_GetCharRect(const leChar *str, uint32_t size, const leFont *font, uint32_t charIdx, leRect *rect)
Gets a glyph bounding rectangle for a leChar style string. 
Definition: legato_stringutils.c:393
 
This structure represents a integer Cartesian point. 
Definition: legato_common.h:346
 
uint32_t leStringUtils_GetLineCount(const leChar *str, uint32_t size)
Get line count for a leChar style string. 
Definition: legato_stringutils.c:172
 
uint16_t leChar
This typedef represents Legato character. 
Definition: legato_common.h:414
 
leResult leStringUtils_GetRect(const leChar *str, uint32_t size, const leFont *font, leRect *rect)
Get bounding rectangle for a leChar style string. 
Definition: legato_stringutils.c:86
 
Fixed string functions and definitions.