src/dbtree/nodetreebase.cpp:3467:67: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm]
if( name_str.find( name ) != std::string_view::npos ) {
^
src/dbtree/nodetreebase.cpp:3477:67: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm]
if( name_str.find( name ) != std::string_view::npos ) {
^
src/dbtree/nodetreebase.cpp:3487:67: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm]
if( name_str.find( name ) != std::string_view::npos ) {
^
src/dbtree/nodetreebase.cpp:3554:61: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm]
if( res_str.find( word ) != std::string::npos ) {
^
src/dbtree/nodetreebase.cpp:3565:58: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm]
if( regex.match( pattern, res_str, offset ) ){
^
src/dbtree/nodetreebase.cpp:3576:61: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm]
if( res_str.find( word ) != std::string::npos ) {
^
src/dbtree/nodetreebase.cpp:3587:58: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm]
if( regex.match( pattern, res_str, offset ) ){
^
src/dbtree/nodetreebase.cpp:3598:61: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm]
if( res_str.find( word ) != std::string::npos ) {
^
src/dbtree/nodetreebase.cpp:3609:58: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm]
if( regex.match( pattern, res_str, offset ) ){
^
std::any_of()
が使えるとcppcheckに指摘されたためforループ文を修正します。cppcheck 2.11.1のレポート