diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/eina/src/include/eina_ustrbuf.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/libraries/eina/src/include/eina_ustrbuf.h b/libraries/eina/src/include/eina_ustrbuf.h index f68cb7b..9710c42 100644 --- a/libraries/eina/src/include/eina_ustrbuf.h +++ b/libraries/eina/src/include/eina_ustrbuf.h | |||
@@ -65,7 +65,25 @@ EAPI Eina_UStrbuf *eina_ustrbuf_new(void) EINA_MALLOC EINA_WARN_UNUSED_RESULT; | |||
65 | * @see eina_ustrbuf_string_get() | 65 | * @see eina_ustrbuf_string_get() |
66 | * @since 1.1.0 | 66 | * @since 1.1.0 |
67 | */ | 67 | */ |
68 | EAPI Eina_Strbuf *eina_ustrbuf_manage_new(Eina_Unicode *str) EINA_MALLOC EINA_WARN_UNUSED_RESULT; | 68 | EAPI Eina_UStrbuf *eina_ustrbuf_manage_new(Eina_Unicode *str) EINA_MALLOC EINA_WARN_UNUSED_RESULT; |
69 | |||
70 | /** | ||
71 | * @brief Create a new string buffer using the passed string. The passed | ||
72 | * string is used directly as the buffer, it's somehow the opposite function of | ||
73 | * @ref eina_ustrbuf_string_steal . The passed string must be malloced. | ||
74 | * | ||
75 | * @param str the string to manage | ||
76 | * @param length the length of the string. | ||
77 | * @return Newly allocated string buffer instance. | ||
78 | * | ||
79 | * This function creates a new string buffer. On error, @c NULL is | ||
80 | * returned and Eina error is set to #EINA_ERROR_OUT_OF_MEMORY. To | ||
81 | * free the resources, use eina_ustrbuf_free(). | ||
82 | * | ||
83 | * @see eina_ustrbuf_manage_new() | ||
84 | * @since 1.2.0 | ||
85 | */ | ||
86 | EAPI Eina_UStrbuf *eina_ustrbuf_manage_new_length(Eina_Unicode *str, size_t length) EINA_MALLOC EINA_WARN_UNUSED_RESULT; | ||
69 | 87 | ||
70 | /** | 88 | /** |
71 | * @brief Free a string buffer. | 89 | * @brief Free a string buffer. |