From ef18c9c988730813f6299d0c7792920e525137fd Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 19 Nov 2011 11:13:48 -0800 Subject: Handling more Connection tags, separated with commas; and adding the 'split' method to String. --- includes/BString.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'includes/BString.h') diff --git a/includes/BString.h b/includes/BString.h index 89f1d9f..8242af8 100644 --- a/includes/BString.h +++ b/includes/BString.h @@ -8,6 +8,7 @@ #endif #include #include +#include namespace Balau { @@ -44,6 +45,8 @@ class String : private std::string { int to_int(int base = 0) const { return strtol(to_charp(), NULL, base); } double to_double() const { return strtod(to_charp(), NULL); } + typedef std::vector List; + List split(char c); size_t strlen() const { return std::string::length(); } ssize_t strchr(char c, size_t begin = 0) const { return find(c, begin); } -- cgit v1.2.3