mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-25 21:27:19 +02:00
Nibbler: Removed unused ::getUntilRx method
This commit is contained in:
parent
180d3e75ff
commit
de66200028
3 changed files with 1 additions and 48 deletions
|
@ -131,33 +131,6 @@ bool Nibbler::getUntil (const std::string& terminator, std::string& result)
|
|||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
#ifdef NIBBLER_FEATURE_REGEX
|
||||
bool Nibbler::getUntilRx (const std::string& regex, std::string& result)
|
||||
{
|
||||
if (_cursor < _length)
|
||||
{
|
||||
RX r (regex, true);
|
||||
std::vector <int> start;
|
||||
std::vector <int> end;
|
||||
if (r.match (start, end, _input->substr (_cursor)))
|
||||
{
|
||||
result = _input->substr (_cursor, start[0]);
|
||||
_cursor += start[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
result = _input->substr (_cursor);
|
||||
_cursor = _length;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Nibbler::getUntilOneOf (const std::string& chars, std::string& result)
|
||||
{
|
||||
|
|
|
@ -46,9 +46,6 @@ public:
|
|||
|
||||
bool getUntil (char, std::string&);
|
||||
bool getUntil (const std::string&, std::string&);
|
||||
#ifdef NIBBLER_FEATURE_REGEX
|
||||
bool getUntilRx (const std::string&, std::string&);
|
||||
#endif
|
||||
bool getUntilOneOf (const std::string&, std::string&);
|
||||
bool getUntilWS (std::string&);
|
||||
bool getUntilEOL (std::string&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue