Skip to content
  • Matthias Clasen's avatar
    Unit tests for g_utf8_pointer_to_offset and g_utf8_offset_to_pointer. · 1ee09179
    Matthias Clasen authored
    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)
    1ee09179