eina: add eina_tmpstr_manage_new, eina_tmpstr_manage_new_length APIs
authorShilpa Singh <shilpa.singh@samsung.com>
Tue, 3 Nov 2015 22:01:51 +0000 (14:01 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 9 Nov 2015 18:42:35 +0000 (10:42 -0800)
commit297ea39a5cd11d1b0697ded2f46412ecddba63b7
tree4417b512ad0dfb312b23a97b492305d778c778b0
parente45b8015772ba0cee01a111080e4c04ea513c23f
eina: add eina_tmpstr_manage_new, eina_tmpstr_manage_new_length APIs

Summary:
Add eina_tmpstr_manage_new, eina_tmpstr_manage_new_length APIs, these APIs create new tmpstr but reuse the input string memory.

@feature

Test Plan: Test case and example updated

Reviewers: tasn, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/examples/eina/eina_tmpstr_01.c
src/lib/eina/eina_tmpstr.c
src/lib/eina/eina_tmpstr.h
src/tests/eina/eina_test_tmpstr.c