|
|||
|
|||
|
#include <hashcomp.h>
Inheritance diagram for irc::sepstream:


Public Member Functions | |
| sepstream (const std::string &source, char seperator) | |
| Create a sepstream and fill it with the provided data. | |
| virtual | ~sepstream () |
| virtual bool | GetToken (std::string &token) |
| Fetch the next token from the stream. | |
| virtual const std::string | GetRemaining () |
| Fetch the entire remaining stream, without tokenizing. | |
| virtual bool | StreamEnd () |
| Returns true if the end of the stream has been reached. | |
Private Attributes | |
| std::string | tokens |
| Original string. | |
| std::string::iterator | last_starting_position |
| Last position of a seperator token. | |
| std::string::iterator | n |
| Current string position. | |
| char | sep |
| Seperator value. | |
Each successive call to sepstream::GetToken() returns the next token, until none remain, at which point the method returns an empty string.
Definition at line 320 of file hashcomp.h.
|
||||||||||||
|
Create a sepstream and fill it with the provided data.
Definition at line 240 of file hashcomp.cpp. References last_starting_position, n, and tokens. |
|
|
Definition at line 283 of file hashcomp.cpp. |
|
|
Fetch the entire remaining stream, without tokenizing.
Definition at line 273 of file hashcomp.cpp. |
|
|
Fetch the next token from the stream.
Definition at line 246 of file hashcomp.cpp. References last_starting_position, n, sep, and tokens. Referenced by LogManager::AddLogTypes(), callerid_data::callerid_data(), CloakUser::Cloak4(), ModuleAlias::DoAlias(), CommandAccept::EncodeParameter(), irc::portparser::GetToken(), ModuleAlias::GetVar(), CommandSamode::Handle(), CommandHelpop::Handle(), CommandCAP::Handle(), TreeSocket::HasItem(), TreeSocket::ListDifference(), CommandParser::LoopCall(), ModuleHTTPAccessList::OnEvent(), ModulePermanentChannels::OnRehash(), ModuleAlias::OnUserPreMessage(), ServerConfig::Read(), IdentRequestSocket::ReadResponse(), TreeSocket::SendCapabilities(), ProtocolInterface::SendModeStr(), Channel::SetDefaultModes(), and CommandParser::TranslateUIDs(). |
|
|
Returns true if the end of the stream has been reached.
Definition at line 278 of file hashcomp.cpp. |
|
|
Last position of a seperator token.
Definition at line 328 of file hashcomp.h. Referenced by GetToken(), and sepstream(). |
|
|
Current string position.
Definition at line 331 of file hashcomp.h. Referenced by GetRemaining(), GetToken(), sepstream(), and StreamEnd(). |
|
|
Seperator value.
Definition at line 334 of file hashcomp.h. Referenced by GetToken(). |
|
|
Original string.
Definition at line 325 of file hashcomp.h. Referenced by GetRemaining(), GetToken(), sepstream(), and StreamEnd(). |