]> git.lyx.org Git - lyx.git/blobdiff - src/support/LRegex.h
more changes read the ChangeLog
[lyx.git] / src / support / LRegex.h
index ebafc8540241f7c367eca3664aafe37409308773..ae1d41b4489b2f5f619770bda2350ccdbc0c51a8 100644 (file)
 #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;
@@ -37,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;