forked from enlightenment/efl
string_remove -> string_steal
Better naming SVN revision: 46028
This commit is contained in:
parent
fe99f062e9
commit
5847c6f245
|
@ -152,7 +152,7 @@ _edje_format_reparse(Edje_File *edf, const char *str, Edje_Style_Tag **tag_ret)
|
|||
}
|
||||
if (tmp)
|
||||
eina_strbuf_free(tmp);
|
||||
ret = eina_strbuf_string_remove(txt);
|
||||
ret = eina_strbuf_string_steal(txt);
|
||||
eina_strbuf_free(txt);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -1334,7 +1334,7 @@ _edje_text_escape(const char *text)
|
|||
text += advance;
|
||||
}
|
||||
|
||||
ret = eina_strbuf_string_remove(txt);
|
||||
ret = eina_strbuf_string_steal(txt);
|
||||
eina_strbuf_free(txt);
|
||||
return ret;
|
||||
}
|
||||
|
@ -1408,7 +1408,7 @@ _edje_text_unescape(const char *text)
|
|||
eina_strbuf_append_n(txt, last, len);
|
||||
}
|
||||
|
||||
ret = eina_strbuf_string_remove(txt);
|
||||
ret = eina_strbuf_string_steal(txt);
|
||||
eina_strbuf_free(txt);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ EAPI Eina_Bool eina_strbuf_insert(Eina_Strbuf *buf, const char *str,
|
|||
#define eina_strbuf_prepend(buf, str) eina_strbuf_insert(buf, str, 0)
|
||||
EAPI Eina_Bool eina_strbuf_remove(Eina_Strbuf *buf, unsigned int start, unsigned int end) 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_steal(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
|
||||
EAPI size_t eina_strbuf_length_get(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
|
||||
EAPI Eina_Bool eina_strbuf_replace(Eina_Strbuf *buf, const char *str,
|
||||
const char *with, unsigned int n) EINA_ARG_NONNULL(1, 2, 3);
|
||||
|
|
|
@ -270,11 +270,11 @@ eina_strbuf_string_get(Eina_Strbuf *buf)
|
|||
}
|
||||
|
||||
/**
|
||||
* Remove the contents of a string buffer
|
||||
* Steal the contents of a string buffer
|
||||
* @param buf the buffer
|
||||
*/
|
||||
EAPI char *
|
||||
eina_strbuf_string_remove(Eina_Strbuf *buf)
|
||||
eina_strbuf_string_steal(Eina_Strbuf *buf)
|
||||
{
|
||||
char *ret;
|
||||
EINA_MAGIC_CHECK_STRBUF(buf, NULL);
|
||||
|
|
|
@ -3025,7 +3025,7 @@ evas_object_textblock_text_markup_get(const Evas_Object *obj)
|
|||
}
|
||||
}
|
||||
}
|
||||
o->markup_text = eina_strbuf_string_remove(txt);
|
||||
o->markup_text = eina_strbuf_string_steal(txt);
|
||||
eina_strbuf_free(txt);
|
||||
return o->markup_text;
|
||||
}
|
||||
|
@ -4484,7 +4484,7 @@ evas_textblock_cursor_range_text_get(const Evas_Textblock_Cursor *cur1, const Ev
|
|||
}
|
||||
if (n == n2) break;
|
||||
}
|
||||
ret = eina_strbuf_string_remove(txt);
|
||||
ret = eina_strbuf_string_steal(txt);
|
||||
eina_strbuf_free(txt);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue