[vala] glib-2.0: Add optional index parameter to string.get_char
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: Add optional index parameter to string.get_char
- Date: Fri, 20 Aug 2010 19:45:09 +0000 (UTC)
commit afd78dbc351eeae9080dfc0e8bf8fd8393b07201
Author: Jürg Billeter <j bitron ch>
Date: Fri Aug 20 21:33:47 2010 +0200
glib-2.0: Add optional index parameter to string.get_char
vapi/glib-2.0.vapi | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 15ab536..e2dfd91 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -967,7 +967,10 @@ public class string {
[CCode (cname = "g_utf8_next_char")]
public unowned string next_char ();
[CCode (cname = "g_utf8_get_char")]
- public unichar get_char ();
+ static unichar utf8_get_char (char* str);
+ public unichar get_char (int index = 0) {
+ return utf8_get_char ((char*) this + index);
+ }
[CCode (cname = "g_utf8_get_char_validated")]
public unichar get_char_validated (ssize_t max_len = -1);
public unowned string offset (long offset) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]