Mercurial > octave
diff liboctave/util/lo-regexp.h @ 29212:cf059093ffbc
stat: Make regular expression for Windows a static const (bug #59706).
* liboctave/system/file-stat.cc (file_stat::update_internal): Make regular
expression for Windows a static const.
* liboctave/util/lo-regexp.h, liboctave/util/lo-regexp.cc (is_match): Make
member function a const.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Mon, 21 Dec 2020 16:48:11 +0100 |
parents | bd51beb6205e |
children | 397d043bb2ff |
line wrap: on
line diff
--- a/liboctave/util/lo-regexp.h Mon Dec 21 11:53:10 2020 +0100 +++ b/liboctave/util/lo-regexp.h Mon Dec 21 16:48:11 2020 +0100 @@ -73,9 +73,9 @@ match_data match (const std::string& buffer); - bool is_match (const std::string& buffer); + bool is_match (const std::string& buffer) const; - Array<bool> is_match (const string_vector& buffer); + Array<bool> is_match (const string_vector& buffer) const; std::string replace (const std::string& buffer, const std::string& replacement);