DocTextFinderMatch Class Documentation

classDocTextFinderMatch

Namespace:datalogics_interface

Detailed Description

A phrase matching a regular expression, with location information.

Referenced by

Constructor & Destructor Documentation

DocTextFinderMatch

DocTextFinderMatch()

Default constructor. Produces an empty match with no quad-info.

DocTextFinderMatch

DocTextFinderMatch(std::stringmatch_string, std::vector< DocTextFinderQuadInfo >quad_info)

Parameters

match_string: std::string

The text that matched the regular expression.

quad_info: std::vector< DocTextFinderQuadInfo >

Bounding-box quads (with page numbers) that cover the matched text; one entry per page the match spans.

Construct a match from the matched text and its bounding boxes.

Member Function Documentation

get_match_string

const std::string &get_match_string()

Returns:

The matched text string from the document.

Gets the text string that matched the regular expression.

get_quad_info

Returns:

A list of DocTextFinderQuadInfo objects describing where the match is located.

Each DocTextFinderQuadInfo in the returned list contains the page number and bounding box quads for a portion of the matched text.