strusAnalyzer  0.17
normalizerFunctionInstanceInterface.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
10 #ifndef _STRUS_ANALYZER_NORMALIZER_FUNCTION_INSTANCE_INTERFACE_HPP_INCLUDED
11 #define _STRUS_ANALYZER_NORMALIZER_FUNCTION_INSTANCE_INTERFACE_HPP_INCLUDED
13 #include <string>
14 
16 namespace strus
17 {
18 
22 {
23 public:
26 
31  virtual std::string normalize( const char* src, std::size_t srcsize) const=0;
32 
35  virtual analyzer::FunctionView view() const=0;
36 };
37 
38 }//namespace
39 #endif
40 
virtual ~NormalizerFunctionInstanceInterface()
Destructor.
Definition: normalizerFunctionInstanceInterface.hpp:25
Structure describing the internal representation of a normalizer/tokenizer/aggregator function in the...
Structure describing the internal representation of a normalizer/tokenizer/aggregator function in the...
Definition: functionView.hpp:29
virtual analyzer::FunctionView view() const =0
Get the definition of the function as structure for introspection.
Interface for a parameterized normalization function.
Definition: normalizerFunctionInstanceInterface.hpp:21
virtual std::string normalize(const char *src, std::size_t srcsize) const =0
Normalization of a token.