#include <hashcomp.h>
irc::sepstream allows for splitting token separated lists. Each successive call to sepstream::GetToken() returns the next token, until none remain, at which point the method returns false.
◆ sepstream()
irc::sepstream::sepstream |
( |
const std::string & |
source, |
|
|
char |
separator, |
|
|
bool |
allowempty = false |
|
) |
| |
Create a sepstream and fill it with the provided data
◆ Contains()
bool irc::sepstream::Contains |
( |
const std::string & |
value | ) |
|
Returns true if the specified value exists in the stream
- Parameters
-
value | The value to search for |
- Returns
- True if the value was found, False otherwise
◆ GetNumericToken()
template<typename Numeric >
bool irc::sepstream::GetNumericToken |
( |
Numeric & |
token | ) |
|
|
inline |
Fetch the next numeric token from the stream
- Parameters
-
token | The next token from the stream is placed here |
- Returns
- True if tokens still remain, false if there are none left
◆ GetRemaining()
const std::string irc::sepstream::GetRemaining |
( |
| ) |
|
Fetch the entire remaining stream, without tokenizing
- Returns
- The remaining part of the stream
◆ GetToken()
bool irc::sepstream::GetToken |
( |
std::string & |
token | ) |
|
Fetch the next token from the stream
- Parameters
-
token | The next token from the stream is placed here |
- Returns
- True if tokens still remain, false if there are none left
◆ StreamEnd()
bool irc::sepstream::StreamEnd |
( |
| ) |
|
Returns true if the end of the stream has been reached
- Returns
- True if the end of the stream has been reached, otherwise false
◆ allow_empty
bool irc::sepstream::allow_empty |
|
protected |
◆ pos
size_t irc::sepstream::pos |
|
protected |
◆ sep
◆ tokens
std::string irc::sepstream::tokens |
|
protected |
The documentation for this class was generated from the following files: