comparison liboctave/util/lo-regexp.cc @ 30178:d0184bad0c07

maint: lo-regexp.cc: Use C++ named struct declaration rather than C-style typedef. * lo-regexp.cc: Use C++ named struct declaration for "rep_token_t" rather than C-style typedef.
author Rik <rik@octave.org>
date Tue, 14 Sep 2021 17:15:28 -0700
parents 32f4357ac8d9
children f3f3e3793fb5
comparison
equal deleted inserted replaced
30177:2f39642b9084 30178:d0184bad0c07
456 456
457 return retval; 457 return retval;
458 } 458 }
459 459
460 // Declare rep_token_t used in processing replacement string 460 // Declare rep_token_t used in processing replacement string
461 typedef struct 461 struct rep_token_t
462 { 462 {
463 std::size_t pos; 463 std::size_t pos;
464 int num; 464 int num;
465 } rep_token_t; 465 };
466 466
467 std::string 467 std::string
468 regexp::replace (const std::string& buffer, 468 regexp::replace (const std::string& buffer,
469 const std::string& replacement) const 469 const std::string& replacement) const
470 { 470 {