wex v24.04.0
Public Member Functions | List of all members
wex::path_match Class Reference

Collects data to present a find in files match. More...

#include <wex/common/path-match.h>

Public Member Functions

 path_match (const path &p)
 Constructor path only.
 
 path_match (const path &p, const std::string &line, size_t line_no, int pos)
 Constructor.
 
auto & line () const
 Returns matching line.
 
auto line_no () const
 Returns matching line no.
 
auto & path () const
 Returns path containing match.
 
auto pos () const
 Returns start pos of match.
 

Detailed Description

Collects data to present a find in files match.

Constructor & Destructor Documentation

◆ path_match()

wex::path_match::path_match ( const path & p,
const std::string & line,
size_t line_no,
int pos )
inlineexplicit

Constructor.

Parameters
ppath containing match
linematching line
line_noline number containing match
pospos on line where match starts, -1 not known