]> git.lyx.org Git - lyx.git/blobdiff - src/support/LRegex.C
remove commented HAVE_SSTREAM code
[lyx.git] / src / support / LRegex.C
index 1babf22127d05f10c34ca5c56d3c190345f04a5d..aaec005645506a4e287287ab61d159637c00ecbf 100644 (file)
@@ -1,7 +1,3 @@
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include <config.h>
 
 #include <sys/types.h>
@@ -12,6 +8,10 @@
 #include "lyxregex.h"
 #endif
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include "LRegex.h"
 
 using std::make_pair;
@@ -55,7 +55,7 @@ struct LRegex::Impl {
        }
        
        ///
-       LRegex::MatchPair first_match(string const & str) const
+       LRegex::MatchPair const first_match(string const & str) const
        {
                regmatch_t tmp;
                regexec(preg, str.c_str(), 1, &tmp, 0);
@@ -67,7 +67,7 @@ struct LRegex::Impl {
        }
        
        ///
-       string getError() const
+       string const getError() const
        {
                size_t nr = regerror(error_code, preg, 0, 0);
                char * tmp = new char[nr];
@@ -134,13 +134,13 @@ bool LRegex::exact_match(string const & str) const
 }
 
 
-LRegex::MatchPair LRegex::first_match(string const & str) const
+LRegex::MatchPair const LRegex::first_match(string const & str) const
 {
        return impl->first_match(str);
 }
 
 
-string LRegex::getError() const
+string const LRegex::getError() const
 {
        return impl->getError();
 }