Eina unicode: add eina_unicode_unicode_to_utf8_range
authorDaniel Hirt <daniel.hirt@samsung.com>
Sat, 21 Nov 2015 10:39:00 +0000 (12:39 +0200)
committerDaniel Hirt <daniel.hirt@samsung.com>
Tue, 24 Nov 2015 12:22:57 +0000 (14:22 +0200)
commit89ef4b70b8b6a04a911da8ef94c2124fab031032
treecd05ff544859770a1acef47ed4a1873511b9cd6d
parent120305b08eb53cec419513d35c7e519a57c8e377
Eina unicode: add eina_unicode_unicode_to_utf8_range

Required some special treatment to get words (substring) out of an
input Unicode string to a utf8 one. This saves the trouble converting
the whole string: you input an offset in the Eina_Unicode array, and
provide the required length. That's is, now you can extract words and
whatnot in utf8 form.

To save code I wrapped the original one to get the whole length.
src/lib/eina/eina_unicode.c
src/lib/eina/eina_unicode.h
src/tests/eina/eina_test_ustr.c