diff options
author | Pixel <pixel@nobis-crew.org> | 2011-11-19 11:13:48 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-11-19 11:13:48 -0800 |
commit | ef18c9c988730813f6299d0c7792920e525137fd (patch) | |
tree | 53545ac07456f26cc0f19f8f5f7f2d218c4ca480 /includes | |
parent | 861a79f0207a8391fa37b30427d36cf46c41cbd4 (diff) |
Handling more Connection tags, separated with commas; and adding the 'split' method to String.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/BString.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <stdlib.h> #include <string> +#include <vector> 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<String> 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); } |