#pragma interface
#endif
-#include <vector>
-
#include "LString.h"
+#include <vector>
+
///
class LRegex {
public:
///
+ explicit
LRegex(string const & regex);
///
~LRegex();
///
- typedef pair<string::size_type, string::size_type> MatchPair;
+ typedef std::pair<string::size_type, string::size_type> MatchPair;
///
- typedef vector<MatchPair> SubMatches;
+ typedef std::vector<MatchPair> SubMatches;
/// Returns all the matches in a vector
SubMatches const & exec(string const & str) const;
bool exact_match(string const & str) const;
///
- MatchPair first_match(string const & str) const;
+ MatchPair const first_match(string const & str) const;
///
- string getError() const;
+ string const getError() const;
///
int getErrorCode() const;