X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/b4fd1197563aca30cf01bf3efaa5c015ba768e11..80f25cc9d4d64c4df417557cf2967d157d466f4c:/CyteKit/RegEx.hpp diff --git a/CyteKit/RegEx.hpp b/CyteKit/RegEx.hpp index 5799946a..40068a77 100644 --- a/CyteKit/RegEx.hpp +++ b/CyteKit/RegEx.hpp @@ -1,5 +1,5 @@ /* Cydia - iPhone UIKit Front-End for Debian APT - * Copyright (C) 2008-2014 Jay Freeman (saurik) + * Copyright (C) 2008-2015 Jay Freeman (saurik) */ /* GNU General Public License, Version 3 {{{ */ @@ -58,14 +58,18 @@ class RegEx { { } - RegEx(const char *regex, NSString *data = nil) : + RegEx(const char *regex) : regex_(NULL), size_(_not(size_t)) { this->operator =(regex); + } - if (data != nil) - this->operator ()(data); + template + RegEx(const char *regex, const Type_ &data) : + RegEx(regex) + { + this->operator ()(data); } void operator =(const char *regex) {