forked from enlightenment/efl
parent
69368ae6bd
commit
95d903dab7
|
@ -21,7 +21,7 @@ EAPI void eina_strbuf_remove(Eina_Strbuf *buf, unsigned int start, unsigned int
|
||||||
EAPI const char *eina_strbuf_string_get(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
|
EAPI const char *eina_strbuf_string_get(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
|
||||||
EAPI char *eina_strbuf_string_remove(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
|
EAPI char *eina_strbuf_string_remove(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
|
||||||
EAPI size_t eina_strbuf_length_get(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
|
EAPI size_t eina_strbuf_length_get(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
|
||||||
EAPI int eina_strbuf_replace(Eina_Strbuf *buf, const char *str,
|
EAPI Eina_Bool eina_strbuf_replace(Eina_Strbuf *buf, const char *str,
|
||||||
const char *with, unsigned int n) EINA_ARG_NONNULL(1, 2, 3);
|
const char *with, unsigned int n) EINA_ARG_NONNULL(1, 2, 3);
|
||||||
#define eina_strbuf_replace_first(buf, str, with) \
|
#define eina_strbuf_replace_first(buf, str, with) \
|
||||||
eina_strbuf_replace(buf, str, with, 1)
|
eina_strbuf_replace(buf, str, with, 1)
|
||||||
|
|
|
@ -41,7 +41,7 @@ struct _Eina_Strbuf
|
||||||
};
|
};
|
||||||
|
|
||||||
static void _eina_strbuf_init(Eina_Strbuf *buf);
|
static void _eina_strbuf_init(Eina_Strbuf *buf);
|
||||||
static int _eina_strbuf_resize(Eina_Strbuf *buf, size_t size);
|
static Eina_Bool _eina_strbuf_resize(Eina_Strbuf *buf, size_t size);
|
||||||
#define _eina_strbuf_grow(buf, _size) \
|
#define _eina_strbuf_grow(buf, _size) \
|
||||||
(_size > buf->size) ? _eina_strbuf_resize(buf, _size) : EINA_TRUE
|
(_size > buf->size) ? _eina_strbuf_resize(buf, _size) : EINA_TRUE
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ eina_strbuf_length_get(Eina_Strbuf *buf)
|
||||||
*
|
*
|
||||||
* @return true on success
|
* @return true on success
|
||||||
*/
|
*/
|
||||||
EAPI int
|
EAPI Eina_Bool
|
||||||
eina_strbuf_replace(Eina_Strbuf *buf, const char *str, const char *with,
|
eina_strbuf_replace(Eina_Strbuf *buf, const char *str, const char *with,
|
||||||
unsigned int n)
|
unsigned int n)
|
||||||
{
|
{
|
||||||
|
@ -439,7 +439,7 @@ _eina_strbuf_init(Eina_Strbuf *buf)
|
||||||
*
|
*
|
||||||
* @return true on success
|
* @return true on success
|
||||||
*/
|
*/
|
||||||
static int
|
static Eina_Bool
|
||||||
_eina_strbuf_resize(Eina_Strbuf *buf, size_t size)
|
_eina_strbuf_resize(Eina_Strbuf *buf, size_t size)
|
||||||
{
|
{
|
||||||
char *buffer;
|
char *buffer;
|
||||||
|
|
Loading…
Reference in New Issue