A3
- Removed obsolete A3::extract_words method.
This commit is contained in:
21
src/A3.cpp
21
src/A3.cpp
@@ -609,27 +609,6 @@ const A3 A3::extract_modifications () const
|
|||||||
return mods;
|
return mods;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
const std::vector <std::string> A3::extract_words () const
|
|
||||||
{
|
|
||||||
std::vector <std::string> words;
|
|
||||||
std::vector <Arg>::const_iterator arg;
|
|
||||||
for (arg = this->begin (); arg != this->end (); ++arg)
|
|
||||||
{
|
|
||||||
if (arg->_category == Arg::cat_program ||
|
|
||||||
arg->_category == Arg::cat_rc ||
|
|
||||||
arg->_category == Arg::cat_override ||
|
|
||||||
arg->_category == Arg::cat_command ||
|
|
||||||
arg->_category == Arg::cat_terminator)
|
|
||||||
;
|
|
||||||
|
|
||||||
else
|
|
||||||
words.push_back (arg->_raw);
|
|
||||||
}
|
|
||||||
|
|
||||||
return words;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
const A3 A3::tokenize (const A3& input) const
|
const A3 A3::tokenize (const A3& input) const
|
||||||
{
|
{
|
||||||
|
|||||||
1
src/A3.h
1
src/A3.h
@@ -62,7 +62,6 @@ public:
|
|||||||
|
|
||||||
const A3 extract_filter () const;
|
const A3 extract_filter () const;
|
||||||
const A3 extract_modifications () const;
|
const A3 extract_modifications () const;
|
||||||
const std::vector <std::string> extract_words () const;
|
|
||||||
|
|
||||||
const A3 tokenize (const A3&) const;
|
const A3 tokenize (const A3&) const;
|
||||||
const A3 infix (const A3&) const;
|
const A3 infix (const A3&) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user