[vala] Add to_uint64 to string class
- From: Jaap A. Haitsma <jhaitsma src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Add to_uint64 to string class
- Date: Tue, 13 Oct 2009 19:50:24 +0000 (UTC)
commit 8e253b863049cd8124645136e6a5c60916738a78
Author: Philipp Zabel <philipp zabel gmail com>
Date: Tue Oct 13 21:49:04 2009 +0200
Add to_uint64 to string class
vapi/glib-2.0.vapi | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index eaea833..38b590e 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -921,6 +921,9 @@ public class string {
public ulong to_ulong (out weak string endptr = null, int _base = 0);
[CCode (cname = "g_ascii_strtoll")]
public int64 to_int64 (out weak string endptr = null, int _base = 0);
+ [CCode (cname = "g_ascii_strtoull")]
+ public uint64 to_uint64 (out weak string endptr = null, int _base = 0);
+
public bool to_bool () {
if (this == "true") {
return true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]