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 | |
| EAPI size_t | eina_unicode_strlen (const Eina_Unicode *ustr) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT EINA_PURE |
| Same as the standard strlen just with Eina_Unicode instead of char. | |
| EAPI size_t | eina_unicode_strnlen (const Eina_Unicode *ustr, int n) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT EINA_PURE |
| Returns the length of a Eina_Unicode string, up to a limit. | |
| EAPI Eina_Unicode * | eina_unicode_strdup (const Eina_Unicode *text) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC |
| Same as the standard strdup just with Eina_Unicode instead of char. | |
| EAPI int | eina_unicode_strcmp (const Eina_Unicode *a, const Eina_Unicode *b) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1 |
| EAPI Eina_Unicode * | eina_unicode_strcpy (Eina_Unicode *dest, const Eina_Unicode *source) EINA_ARG_NONNULL(1 |
|
EAPI Eina_Unicode *EAPI Eina_Unicode * | eina_unicode_strstr (const Eina_Unicode *haystack, const Eina_Unicode *needle) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1 |
| EAPI Eina_Unicode * | eina_unicode_strncpy (Eina_Unicode *dest, const Eina_Unicode *source, size_t n) EINA_ARG_NONNULL(1 |
| EAPI Eina_Unicode *EAPI Eina_Unicode * | eina_unicode_escape (const Eina_Unicode *str) EINA_ARG_NONNULL(1) EINA_MALLOC EINA_WARN_UNUSED_RESULT |
Variables | |
| EAPI const Eina_Unicode * | EINA_UNICODE_EMPTY_STRING |
| EAPI int | EINA_PURE |
Detailed Description
These functions provide basic unicode string handling.Eina_Unicode is a type that holds unicode codepoints.
Function Documentation
| EAPI 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.
| EAPI Eina_Unicode* EAPI Eina_Unicode* eina_unicode_escape | ( | const Eina_Unicode * | str | ) |
- See also:
- eina_str_escape()
