MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > h) String Functions > leStringUtils_GetLineCount Function
MPLAB® Harmony Graphics Suite
leStringUtils_GetLineCount Function

Gets the line count for a leChar style string

C
LIB_EXPORT uint32_t leStringUtils_GetLineCount(
    const leChar* str, 
    uint32_t size
);
Parameters
Parameters 
Description 
const leChar* str 
the source leChar string 
uint32_t size 
the size of the input buffer in code points 
Returns

uint32_t - the number of lines in the string

MPLAB® Harmony Graphics Suite