From fcc66ce9f5d6db995536beab5539fd47e490bf14 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 20 Jun 2014 19:25:53 -0700 Subject: Improving CurlTask a bit. --- includes/BString.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'includes/BString.h') diff --git a/includes/BString.h b/includes/BString.h index a321a30..0a5fceb 100644 --- a/includes/BString.h +++ b/includes/BString.h @@ -126,6 +126,16 @@ class String : private std::string { char & operator[](ssize_t i) { if (i < 0) i = strlen() + i; return at(i); } void reserve(size_t s) { std::string::reserve(s); } + + size_t find_first_of(const String & set, size_t offset = 0) const { return std::string::find_first_of(set, offset); } + size_t find_last_of(const String & set, size_t offset = 0) const { return std::string::find_last_of(set, offset); } + size_t find_first_not_of(const String & set, size_t offset = 0) const { return std::string::find_first_not_of(set, offset); } + size_t find_last_not_of(const String & set, size_t offset = 0) const { return std::string::find_last_not_of(set, offset); } + + bool isEmpty() { return std::string::empty(); } + + using std::string::npos; + using std::string::size_type; }; }; -- cgit v1.2.3