|
wex v26.04.0
|
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 tool &t, std::string line, size_t line_no, int pos) | |
| Constructor. | |
| const std::string | context () const |
| Returns context. | |
| const std::string & | line () const |
| Returns matching line. | |
| size_t | line_no () const |
| Returns matching line no. | |
| const wex::path & | path () const |
| Returns path containing match. | |
| int | pos () const |
| Returns start pos of match. | |
| const wex::tool & | tool () const |
| Returns tool. | |
Collects data to present a find in files match.
| const std::string wex::path_match::context | ( | ) | const |
Returns context.
This returns context around the matching pos, instead of the complete line. The context size is determined by config.