Unicode String
[Data types.]

These functions provide basic unicode string handling. More...

Typedefs

typedef unsigned int Eina_Unicode
 A type that holds Unicode codepoints.

Functions

size_t eina_unicode_strlen (const Eina_Unicode *ustr) EINA_ARG_NONNULL(1) EINA_PURE
 Same as the standard strlen just with Eina_Unicode instead of char.
size_t eina_unicode_strnlen (const Eina_Unicode *ustr, int n) EINA_ARG_NONNULL(1) EINA_PURE
 Returns the length of a Eina_Unicode string, up to a limit.
Eina_Unicodeeina_unicode_strdup (const Eina_Unicode *text) EINA_ARG_NONNULL(1)
 Same as the standard strdup just with Eina_Unicode instead of char.
int eina_unicode_strcmp (const Eina_Unicode *a, const Eina_Unicode *b) EINA_PURE
 Same as the standard strcmp just with Eina_Unicode instead of char.
Eina_Unicodeeina_unicode_strcpy (Eina_Unicode *dest, const Eina_Unicode *source)
 Same as the standard strcpy just with Eina_Unicode instead of char.
Eina_Unicodeeina_unicode_strstr (const Eina_Unicode *haystack, const Eina_Unicode *needle) EINA_PURE
 Same as the standard strstr just with Eina_Unicode instead of char.
Eina_Unicodeeina_unicode_strncpy (Eina_Unicode *dest, const Eina_Unicode *source, size_t n)
 Same as the standard strncpy just with Eina_Unicode instead of char.
Eina_Unicodeeina_unicode_escape (const Eina_Unicode *str) EINA_ARG_NONNULL(1)

Variables

const Eina_UnicodeEINA_UNICODE_EMPTY_STRING

Detailed Description

These functions provide basic unicode string handling.

Eina_Unicode is a type that holds unicode codepoints.


Function Documentation

size_t eina_unicode_strnlen ( const Eina_Unicode ustr,
int  n 
)

Returns the length of a Eina_Unicode string, up to a limit.

This function returns the number of characters in string, up to a maximum of n. If the terminating character is not found in the string, it returns n.

Parameters:
ustr String to search
n Max length to search
Returns:
Number of characters or n.
Eina_Unicode* eina_unicode_escape ( const Eina_Unicode str  )