]> git.lyx.org Git - lyx.git/blobdiff - src/support/LRegex.h
remove commented HAVE_SSTREAM code
[lyx.git] / src / support / LRegex.h
index 5b33f72d8b001613c13d83f28d41434ee9f82f26..6db4f410597d8d8c17c921ba80d8e0aa1f55e3cd 100644 (file)
@@ -19,6 +19,7 @@
 class LRegex {
 public:
        ///
+       explicit
        LRegex(string const & regex);
 
        ///
@@ -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;
@@ -55,20 +56,4 @@ private:
        Impl * impl;
 };
 
-
-// We comment out these, we can comment them in when we need them.
-#if 0
-// some built in regular expressions
-
-extern const LRegex LRXwhite;          // = "[ \n\t\r\v\f]+"
-extern const LRegex LRXint;            // = "-?[0-9]+"
-extern const LRegex LRXdouble;         // = "-?\\(\\([0-9]+\\.[0-9]*\\)\\|
-                                       //    \\([0-9]+\\)\\|\\(\\.[0-9]+\\)\\)
-                                       //    \\([eE][---+]?[0-9]+\\)?"
-//extern const LRegex LRXalpha;          // = "[A-Za-z]+"
-//extern const LRegex LRXlowercase;      // = "[a-z]+"
-//extern const LRegex LRXuppercase;      // = "[A-Z]+"
-//extern const LRegex LRXalphanum;       // = "[0-9A-Za-z]+"
-extern const LRegex LRXidentifier;     // = "[A-Za-z_][A-Za-z0-9_]*"
-#endif
 #endif