Mercurial > octave
diff liboctave/util/lo-regexp.cc @ 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 | 863ae57eee69 |
children | 397d043bb2ff |
line wrap: on
line diff
--- a/liboctave/util/lo-regexp.cc Mon Dec 21 11:53:10 2020 +0100 +++ b/liboctave/util/lo-regexp.cc Mon Dec 21 16:48:11 2020 +0100 @@ -437,7 +437,7 @@ } bool - regexp::is_match (const std::string& buffer) + regexp::is_match (const std::string& buffer) const { regexp::match_data rx_lst = match (buffer); @@ -445,7 +445,7 @@ } Array<bool> - regexp::is_match (const string_vector& buffer) + regexp::is_match (const string_vector& buffer) const { octave_idx_type len = buffer.numel ();