@ -13,29 +13,29 @@
# define MAX_UTF8_PER_UTF16 3
# define MAX_UTF8_PER_UTF16 3
/**
/**
* utf16_strlen ( ) - Get the length of an utf16 string
* u16_strlen - count non - zero words
*
*
* Returns the number of 16 bit characters in an utf16 string , not
* This function matches wsclen ( ) if the - fshort - wchar compiler flag is set .
* including the terminating NULL character .
* In the EFI context we explicitly need a function handling u16 strings .
*
*
* @ in the string to measure
* @ in : null terminated u16 string
* @ return the string length
* ReturnValue : number of non - zero words .
* This is not the number of utf - 16 letters !
*/
*/
size_t utf 16_strlen ( const uint16_t * in ) ;
size_t u16_strlen ( const u16 * in ) ;
/**
/**
* utf16_strnlen ( ) - Get the length of a fixed - size utf16 string .
* u16_strlen - count non - zero words
*
*
* Returns the number of 16 bit characters in an utf16 string ,
* This function matches wscnlen_s ( ) if the - fshort - wchar compiler flag is set .
* not including the terminating NULL character , but at most
* In the EFI context we explicitly need a function handling u16 strings .
* ' count ' number of characters . In doing this , utf16_strnlen ( )
* looks at only the first ' count ' characters .
*
*
* @ in the string to measure
* @ in : null terminated u16 string
* @ count the maximum number of characters to count
* @ count : maximum number of words to count
* @ return the string length , up to a maximum of ' count '
* ReturnValue : number of non - zero words .
* This is not the number of utf - 16 letters !
*/
*/
size_t utf 16_strnlen ( const uint16_t * in , size_t count ) ;
size_t u16_strnlen ( const u16 * in , size_t count ) ;
/**
/**
* utf16_strcpy ( ) - UTF16 equivalent of strcpy ( )
* utf16_strcpy ( ) - UTF16 equivalent of strcpy ( )