summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-19 11:13:48 -0800
committerPixel <pixel@nobis-crew.org>2011-11-19 11:13:48 -0800
commitef18c9c988730813f6299d0c7792920e525137fd (patch)
tree53545ac07456f26cc0f19f8f5f7f2d218c4ca480 /includes
parent861a79f0207a8391fa37b30427d36cf46c41cbd4 (diff)
Handling more Connection tags, separated with commas; and adding the 'split' method to String.
Diffstat (limited to 'includes')
-rw-r--r--includes/BString.h3
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); }