0.07.7
C++ Open Travel Request Parsing Library
Filter.hpp
Go to the documentation of this file.
1
#ifndef __OPENTREP_BOM_FILTER_HPP
2
#define __OPENTREP_BOM_FILTER_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// OpenTrep
8
#include <
opentrep/OPENTREP_Types.hpp
>
9
10
namespace
OPENTREP
{
11
21
struct
Filter
{
22
public
:
23
// /////////// Business support methods /////////
42
static
void
trim
(std::string& ioPhrase,
const
NbOfLetters_T
& iMinWordLength = 4);
43
64
static
bool
shouldKeep
(
const
std::string& iPhrase,
65
const
std::string& iWord);
66
67
68
private
:
69
// //////////////// Constructors and Destructors /////////////
73
Filter
();
74
78
Filter
(
const
Filter
&);
79
83
~
Filter
();
84
};
85
86
}
87
#endif // __OPENTREP_BOM_FILTER_HPP
OPENTREP::Filter
Class filtering out the words not suitable for indexing and/or searching, when part of greater string...
Definition:
Filter.hpp:21
OPENTREP::Filter::shouldKeep
static bool shouldKeep(const std::string &iPhrase, const std::string &iWord)
Definition:
Filter.cpp:144
OPENTREP::Filter::trim
static void trim(std::string &ioPhrase, const NbOfLetters_T &iMinWordLength=4)
Definition:
Filter.cpp:131
OPENTREP::NbOfLetters_T
unsigned int NbOfLetters_T
Definition:
OPENTREP_Types.hpp:705
OPENTREP
Definition:
BasChronometer.cpp:10
OPENTREP_Types.hpp
Generated on Sat Aug 1 2020 00:00:00 for OpenTREP by
1.8.18