strusAnalyzer  0.17
Public Member Functions | List of all members
strus::analyzer::PatternMatcherResultItem Class Reference

Result item structure of a pattern match result. More...

#include <patternMatcherResultItem.hpp>

Inheritance diagram for strus::analyzer::PatternMatcherResultItem:
strus::analyzer::PatternMatcherResult

Public Member Functions

 PatternMatcherResultItem ()
 Default constructor. More...
 
 PatternMatcherResultItem (const char *name_, const char *value_, int ordpos_, int ordend_, const Position &origpos_, const Position &origend_)
 Constructor. More...
 
 PatternMatcherResultItem (const PatternMatcherResultItem &o)
 Copy constructor. More...
 
 ~PatternMatcherResultItem ()
 Destructor. More...
 
const char * name () const
 Name of the item, defined by the variable assigned to the match. More...
 
const char * value () const
 Pointer to value of the item. More...
 
int ordpos () const
 Ordinal (counting) position of the match (resp. the first term of the match) More...
 
int ordend () const
 Ordinal (counting) end position of the match. More...
 
const Positionorigpos () const
 Start of the result item in the original source. More...
 
const Positionorigend () const
 End of the result item in the original source (first byte after the item) More...
 

Detailed Description

Result item structure of a pattern match result.

Constructor & Destructor Documentation

strus::analyzer::PatternMatcherResultItem::PatternMatcherResultItem ( )
inline

Default constructor.

strus::analyzer::PatternMatcherResultItem::PatternMatcherResultItem ( const char *  name_,
const char *  value_,
int  ordpos_,
int  ordend_,
const Position origpos_,
const Position origend_ 
)
inline

Constructor.

strus::analyzer::PatternMatcherResultItem::PatternMatcherResultItem ( const PatternMatcherResultItem o)
inline

Copy constructor.

strus::analyzer::PatternMatcherResultItem::~PatternMatcherResultItem ( )
inline

Destructor.

Member Function Documentation

const char* strus::analyzer::PatternMatcherResultItem::name ( ) const
inline

Name of the item, defined by the variable assigned to the match.

int strus::analyzer::PatternMatcherResultItem::ordend ( ) const
inline

Ordinal (counting) end position of the match.

int strus::analyzer::PatternMatcherResultItem::ordpos ( ) const
inline

Ordinal (counting) position of the match (resp. the first term of the match)

const Position& strus::analyzer::PatternMatcherResultItem::origend ( ) const
inline

End of the result item in the original source (first byte after the item)

const Position& strus::analyzer::PatternMatcherResultItem::origpos ( ) const
inline

Start of the result item in the original source.

const char* strus::analyzer::PatternMatcherResultItem::value ( ) const
inline

Pointer to value of the item.

Note
The value is a null terminated string containing a constructed value of the result string or NULL if no such construction (format string) is defined.

The documentation for this class was generated from the following file: