]> git.ipfire.org Git - thirdparty/vala.git/commit
glib-2.0: add string.get_prev_char()
authorSébastien Wilmet <swilmet@src.gnome.org>
Wed, 4 Jul 2012 19:39:01 +0000 (21:39 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 18 Jul 2012 09:45:55 +0000 (11:45 +0200)
commitb4e884c150100d56636d5cf6be4e5311d62bb718
tree8d2210925d64898769314d2c8fcccc0fd5197d0c
parent7763d971337f04b3a976857fe8b107e7f68abc41
glib-2.0: add string.get_prev_char()

This is the opposite of string.get_next_char().

There is a difference though, to be more convenient in a loop:

get_next_char() returns the current chararcter, and the next index.
get_prev_char() returns the previous character, and the previous index.

Fixes bug 655185.
vapi/glib-2.0.vapi