  | 
  
    MPLABĀ® Harmony Graphics Suite
    
   | 
 
 
 
 
Go to the documentation of this file.
   45 #ifndef LE_STRINGUTILS_H 
   46 #define LE_STRINGUTILS_H 
  422 LIB_EXPORT 
leResult leStringUtils_GetCharIndexAtPoint(
const leChar* str,
 
  461 LIB_EXPORT 
leResult leStringUtils_GetCharIndexAtPointCStr(
const char* str,
 
  506 LIB_EXPORT 
leResult leDecodeCodePoint(uint32_t encoding,
 
  
LIB_EXPORT 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
This enum represents function call results.
Definition: legato_common.h:134
 
This struct represents a rectangle.
Definition: legato_common.h:405
 
LIB_EXPORT 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
 
LIB_EXPORT uint32_t leStringUtils_FromCStr(const char *str, leChar *buf, uint32_t size)
Convert c-style string to leChar.
Definition: legato_stringutils.c:36
 
LIB_EXPORT 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
 
LIB_EXPORT 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
 
LIB_EXPORT uint32_t leStringUtils_GetLineCountCStr(const char *str)
Get line count for a C-style string.
Definition: legato_stringutils.c:194
 
This struct represents a font object.
Definition: legato_font.h:136
 
This struct represents a rasterized font object.
Definition: legato_font.h:167
 
This struct represents a font glyph.
Definition: legato_font.h:90
 
LIB_EXPORT uint32_t leStringUtils_GetLineCount(const leChar *str, uint32_t size)
Get line count for a leChar style string.
Definition: legato_stringutils.c:172
 
virtual uint32_t length(const leString *_this)
Get length of the string.
 
LIB_EXPORT leBool leRectContainsPoint(const leRect *rect, const lePoint *point)
Determines if a point is inside a rectangle.
Definition: legato_rect.c:31
 
Fixed string functions and definitions.
 
leResult leFont_GetGlyphInfo(const leFont *fnt, uint32_t codepoint, leFontGlyph *glyph)
Get glyph info.
Definition: legato_font.c:171
 
String utility functions and definitions.
 
Rectangle functions and definitions.
 
LIB_EXPORT 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
 
LIB_EXPORT 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
 
LIB_EXPORT 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
 
LIB_EXPORT 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
 
uint16_t leChar
This typedef represents Legato character.
Definition: legato_common.h:424
 
@ LE_TRUE
Definition: legato_common.h:159
 
LIB_EXPORT 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 structure represents a integer Cartesian point.
Definition: legato_common.h:357