mirror of https://gitlab.com/cppit/jucipp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
623 B
24 lines
623 B
#pragma once |
|
#include <boost/filesystem.hpp> |
|
#include <sstream> |
|
|
|
class Grep { |
|
public: |
|
class Location { |
|
public: |
|
std::string file_path; |
|
unsigned long line; |
|
unsigned long offset; |
|
std::string markup; |
|
operator bool() const { return !file_path.empty(); } |
|
}; |
|
|
|
Grep(const boost::filesystem::path &path, const std::string &pattern, bool case_sensitive, bool extended_regex); |
|
|
|
operator bool(); |
|
|
|
Location get_location(std::string line, bool color_codes_to_markup, bool include_offset, const std::string &only_for_file = {}) const; |
|
|
|
boost::filesystem::path project_path; |
|
std::stringstream output; |
|
}; |