Unit tests for g_utf8_pointer_to_offset and g_utf8_offset_to_pointer.
authorMatthias Clasen <mclasen@redhat.com>
Thu, 17 Nov 2005 15:50:31 +0000 (15:50 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 17 Nov 2005 15:50:31 +0000 (15:50 +0000)
commit1ee0917984152f9fe09b33a3660ba96cec0b55b1
treed2d75181bad86744a499f00b4e4bb721ebf41afb
parent92ea153ae9b9d744ef34041cac9e69bec42856bc
Unit tests for g_utf8_pointer_to_offset and g_utf8_offset_to_pointer.

2005-11-17  Matthias Clasen  <mclasen@redhat.com>

* tests/Makefile.am:
* tests/utf8-pointer.c: Unit tests for g_utf8_pointer_to_offset
and g_utf8_offset_to_pointer.

* glib/gutf8.c (g_utf8_pointer_to_offset)
(g_utf8_offset_to_pointer): Handle negative offsets, and use
"stutter stepping" for going backwards. (#320638, Larry
Ewing)
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
glib/gutf8.c
tests/Makefile.am
tests/utf8-pointer.c [new file with mode: 0644]