]> git.lyx.org Git - lyx.git/blobdiff - src/support/LRegex.h
more changes read the ChangeLog
[lyx.git] / src / support / LRegex.h
index de0ce61f685788e11754972db710e63c8ea28a8f..ae1d41b4489b2f5f619770bda2350ccdbc0c51a8 100644 (file)
 
 #include <vector>
 
-using std::vector;
-using std::pair;
-
 ///
 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;
@@ -40,10 +38,10 @@ public:
        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;