Commit Graph

14 Commits

Author SHA1 Message Date
Mykyta Biliavskyi 37c58d4397 eina: extend eina_str_escape to escape more common case.
Summary: Added new symbols, that will be escaped. There are '\"', '\t' and '\n'.

Reviewers: raster, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2130

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-13 09:33:28 +01:00
vivek 2ae90fd1ff eina_str: add null check condition in eina_memdup.
Summary:
Added null check in eina_memdup function in eina_str

Signed-off-by: vivek <vivek.ellur@samsung.com>

Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1997

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-20 11:42:13 +01:00
Mike Blumenkrantz 10d8199b2f +eina_memdup
for those times when three lines of code should be one

@feature
2014-12-15 14:32:42 -05:00
Guillaume Friloux 19e0422adf Fix warnings on calls to iconv, on freebsd. 2014-05-30 09:31:11 +02:00
Lucas De Marchi ad76ce025c Revert "eina: add functions to alloc strings from a printf fmt"
This reverts commit b5fce696c7 and fixes
to NEWS and @since that came later.

These functions are pretty trivial and their functionality can be
obtained with asprintf() and snprintf. The first is not available only
on windows, but there's an implementation for that one on Evil, that
should be used instead.
2013-09-25 22:51:03 -03:00
Jorge Zapata b5fce696c7 eina: add functions to alloc strings from a printf fmt 2013-09-24 12:20:27 +09:00
Jérémy Zurcher 0baf4b3561 eina_str_split_full_helper: indent 2013-06-12 23:34:40 +02:00
Jérémy Zurcher bc182253a7 eina_str_split_full_helper: check params, set NULL at the end of token array 2013-06-12 23:34:40 +02:00
Mike Blumenkrantz 37aa26b977 add eina_str_convert_len() for converting from encodings which contain '\0' characters
eina_str_convert() is GUARANTEED to break when doing any such encoding (eg. UTF16->UTF8). I don't know who added the original function, but this is very bad, and we should almost certainly deprecate eina_str_convert() so people are not surprised when they are unable to convert strings as expected.
2013-05-29 13:46:11 +01:00
Daniel Juyung Seo c886845a1b eina_str.c: fixed formatting. 2013-05-08 20:53:45 +09:00
Cedric BAIL fde00d91a8 eina: eina_strlcat now work with NULL src. 2013-02-28 07:49:16 +09:00
Vincent Torri 7fe3d35994 merge: __UNUSED__ --> EINA_UNUSED and some fixes in eo.
SVN revision: 77542
2012-10-05 20:09:47 +00:00
Cedric BAIL 1000f350e3 efl: backport Igor's eina patch.
SVN revision: 77415
2012-10-04 09:31:46 +00:00
Vincent Torri 785f2a6b3a merge : add eina
currently, examples, tests and benchmark are not set. That's the next things i'll do


SVN revision: 76710
2012-09-16 10:57:48 +00:00