strusAnalyzer  0.17
Public Member Functions | List of all members
strus::PatternLexerContextInterface Class Referenceabstract

Interface for detecting lexems used as basic entities by pattern matching in text. More...

#include <patternLexerContextInterface.hpp>

Public Member Functions

virtual ~PatternLexerContextInterface ()
 Destructor. More...
 
virtual std::vector
< analyzer::PatternLexem
match (const char *src, std::size_t srclen)=0
 Do process a document source string to return a list of labeled terms (lexems) found that matched. More...
 
virtual void reset ()=0
 Reset the pattern lexer context for a reuse within another document or query. More...
 

Detailed Description

Interface for detecting lexems used as basic entities by pattern matching in text.

Constructor & Destructor Documentation

virtual strus::PatternLexerContextInterface::~PatternLexerContextInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual std::vector<analyzer::PatternLexem> strus::PatternLexerContextInterface::match ( const char *  src,
std::size_t  srclen 
)
pure virtual

Do process a document source string to return a list of labeled terms (lexems) found that matched.

Parameters
[in]srcpointer to source of the tokens to match against
[in]srclenlength of src to scan in bytes
Returns
list of matched lexems
virtual void strus::PatternLexerContextInterface::reset ( )
pure virtual

Reset the pattern lexer context for a reuse within another document or query.


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