diff liboctave/util/lo-regexp.h @ 29213:397d043bb2ff

Add changes missing in cf059093ffbc. * liboctave/util/lo-regexp.h, liboctave/util/lo-regexp.cc (match, is_match, replace): Add const qualifier to member functions.
author Markus Mützel <markus.muetzel@gmx.de>
date Mon, 21 Dec 2020 18:55:51 +0100
parents cf059093ffbc
children 7854d5752dd2
line wrap: on
line diff
--- a/liboctave/util/lo-regexp.h	Mon Dec 21 16:48:11 2020 +0100
+++ b/liboctave/util/lo-regexp.h	Mon Dec 21 18:55:51 2020 +0100
@@ -71,16 +71,16 @@
       compile_internal ();
     }
 
-    match_data match (const std::string& buffer);
+    match_data match (const std::string& buffer) const;
 
     bool is_match (const std::string& buffer) const;
 
     Array<bool> is_match (const string_vector& buffer) const;
 
     std::string replace (const std::string& buffer,
-                         const std::string& replacement);
+                         const std::string& replacement) const;
 
-    static regexp::match_data
+    static match_data
     match (const std::string& pat, const std::string& buffer,
            const regexp::opts& opt = regexp::opts (),
            const std::string& who = "regexp")