Code Propagation
- Took a patch to tw from the clog version of Nibbler.
This commit is contained in:
@@ -1175,6 +1175,14 @@ bool Nibbler::skipRx (const std::string& regex)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
void Nibbler::getRemainder (std::string& result)
|
||||||
|
{
|
||||||
|
if (_cursor < _length)
|
||||||
|
result = _input.substr (_cursor);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
bool Nibbler::skipAllOneOf (const std::string& chars)
|
bool Nibbler::skipAllOneOf (const std::string& chars)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -93,6 +93,8 @@ public:
|
|||||||
bool skipRx (const std::string&);
|
bool skipRx (const std::string&);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void getRemainder (std::string&);
|
||||||
|
|
||||||
char next ();
|
char next ();
|
||||||
std::string next (const int quantity);
|
std::string next (const int quantity);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user