forked from enlightenment/efl
eina: eina_strbuf_append_length(sb, s, 0) is possible
also fix typo in doc, remove a trailing space and myself to authors SVN revision: 63811
This commit is contained in:
parent
4f4407578d
commit
e708e12fa9
|
@ -18,3 +18,4 @@ Tom Hacohen <tom@stosb.com>
|
||||||
Sebastian Dransfeld <sd@tango.flipp.net>
|
Sebastian Dransfeld <sd@tango.flipp.net>
|
||||||
Myungjae Lee <mjae.lee@samsung.com>
|
Myungjae Lee <mjae.lee@samsung.com>
|
||||||
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
|
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
|
||||||
|
billiob (Boris Faure) <billiob@gmail.com>
|
||||||
|
|
|
@ -183,7 +183,7 @@ EAPI Eina_Bool eina_strbuf_append_n(Eina_Strbuf *buf, const char *str, size_t ma
|
||||||
* This function appends @p str to @p buf. @p str must be of size at
|
* This function appends @p str to @p buf. @p str must be of size at
|
||||||
* most @p length. It is slightly faster than eina_strbuf_append() as
|
* most @p length. It is slightly faster than eina_strbuf_append() as
|
||||||
* it does not compute the size of @p str. It is useful when dealing
|
* it does not compute the size of @p str. It is useful when dealing
|
||||||
* with strings of known size, such as eina_strngshare. If @p buf
|
* with strings of known size, such as eina_stringshare. If @p buf
|
||||||
* can't append it, #EINA_FALSE is returned, otherwise #EINA_TRUE is
|
* can't append it, #EINA_FALSE is returned, otherwise #EINA_TRUE is
|
||||||
* returned.
|
* returned.
|
||||||
*
|
*
|
||||||
|
@ -191,7 +191,7 @@ EAPI Eina_Bool eina_strbuf_append_n(Eina_Strbuf *buf, const char *str, size_t ma
|
||||||
* @see eina_strbuf_append()
|
* @see eina_strbuf_append()
|
||||||
* @see eina_strbuf_append_n()
|
* @see eina_strbuf_append_n()
|
||||||
*/
|
*/
|
||||||
EAPI Eina_Bool eina_strbuf_append_length(Eina_Strbuf *buf, const char *str, size_t length) EINA_ARG_NONNULL(1, 2);
|
EAPI Eina_Bool eina_strbuf_append_length(Eina_Strbuf *buf, const char *str, size_t length) EINA_ARG_NONNULL(1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Append a character to a string buffer, reallocating as
|
* @brief Append a character to a string buffer, reallocating as
|
||||||
|
|
|
@ -447,7 +447,7 @@ eina_strbuf_common_append_length(size_t csize,
|
||||||
|
|
||||||
if (EINA_UNLIKELY(!_eina_strbuf_common_grow(csize, buf, buf->len + length)))
|
if (EINA_UNLIKELY(!_eina_strbuf_common_grow(csize, buf, buf->len + length)))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
memcpy(((unsigned char *)(buf->buf)) + (buf->len * csize), str,
|
memcpy(((unsigned char *)(buf->buf)) + (buf->len * csize), str,
|
||||||
length * csize);
|
length * csize);
|
||||||
buf->len += length;
|
buf->len += length;
|
||||||
memset(((unsigned char *)(buf->buf)) + (buf->len * csize), 0, csize);
|
memset(((unsigned char *)(buf->buf)) + (buf->len * csize), 0, csize);
|
||||||
|
|
Loading…
Reference in New Issue