summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-12-27 22:28:40 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-12-27 22:28:40 +0100
commit86ea7a0f67a7dfb2b46c2f0a71cd7fd001457a10 (patch)
tree9cfb4fcd89f0d29e30350e107adc81f42c1c2e43 /include
parenta6f9afd43c0a1d6e11a474569dcfe70156f1a80a (diff)
Adding more reading functions to Lua, including 64 bits.
Diffstat (limited to 'include')
-rw-r--r--include/BString.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/BString.h b/include/BString.h
index df295f6..4a89ce3 100644
--- a/include/BString.h
+++ b/include/BString.h
@@ -51,6 +51,8 @@ class String : public Base {
String extract(size_t = 0, ssize_t = -1) const;
char * strdup(size_t = 0, ssize_t = -1) const;
int to_int(const char * fmt = "%i") const;
+ int64 to_int64(const char * fmt = "%lld") const { int64 r; sscanf(str, fmt, &r); return r; }
+ Uint64 to_Uint64(const char * fmt = "%llu") const { Uint64 r; sscanf(str, fmt, &r); return r; }
double to_double() const;
String to_sqldate() const;
String to_sqltime() const;