Anope IRC Services  Version 2.0
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | Friends
Anope::string Class Reference

#include <anope.h>

Public Types

typedef std::string::iterator iterator
 
typedef std::string::const_iterator const_iterator
 
typedef
std::string::reverse_iterator 
reverse_iterator
 
typedef
std::string::const_reverse_iterator 
const_reverse_iterator
 
typedef std::string::size_type size_type
 

Public Member Functions

 string ()
 
 string (char chr)
 
 string (size_type n, char chr)
 
 string (const char *_str)
 
 string (const char *_str, size_type n)
 
 string (const std::string &_str)
 
 string (const ci::string &_str)
 
 string (const string &_str, size_type pos, size_type n=npos)
 
template<class InputIterator >
 string (InputIterator first, InputIterator last)
 
stringoperator= (char chr)
 
stringoperator= (const char *_str)
 
stringoperator= (const std::string &_str)
 
stringoperator= (const string &_str)
 
bool operator== (const char *_str) const
 
bool operator== (const std::string &_str) const
 
bool operator== (const string &_str) const
 
bool equals_cs (const char *_str) const
 
bool equals_cs (const std::string &_str) const
 
bool equals_cs (const string &_str) const
 
bool equals_ci (const char *_str) const
 
bool equals_ci (const std::string &_str) const
 
bool equals_ci (const string &_str) const
 
bool operator!= (const char *_str) const
 
bool operator!= (const std::string &_str) const
 
bool operator!= (const string &_str) const
 
stringoperator+= (char chr)
 
stringoperator+= (const char *_str)
 
stringoperator+= (const std::string &_str)
 
stringoperator+= (const string &_str)
 
const string operator+ (char chr) const
 
const string operator+ (const char *_str) const
 
const string operator+ (const std::string &_str) const
 
const string operator+ (const string &_str) const
 
bool operator< (const string &_str) const
 
const char * c_str () const
 
const char * data () const
 
std::string & str ()
 
const std::string & str () const
 
ci::string ci_str () const
 
bool empty () const
 
size_type length () const
 
size_type capacity () const
 
void push_back (char c)
 
stringappend (const string &s)
 
stringappend (const char *s, size_t n)
 
void resize (size_type n)
 
iterator erase (const iterator &i)
 
iterator erase (const iterator &first, const iterator &last)
 
void erase (size_type pos=0, size_type n=std::string::npos)
 
stringltrim (const Anope::string &what=" \t\r\n")
 
stringrtrim (const Anope::string &what=" \t\r\n")
 
stringtrim (const Anope::string &what=" \t\r\n")
 
void clear ()
 
size_type find (const string &_str, size_type pos=0) const
 
size_type find (char chr, size_type pos=0) const
 
size_type find_ci (const string &_str, size_type pos=0) const
 
size_type find_ci (char chr, size_type pos=0) const
 
size_type rfind (const string &_str, size_type pos=npos) const
 
size_type rfind (char chr, size_type pos=npos) const
 
size_type rfind_ci (const string &_str, size_type pos=npos) const
 
size_type rfind_ci (char chr, size_type pos=npos) const
 
size_type find_first_of (const string &_str, size_type pos=0) const
 
size_type find_first_of_ci (const string &_str, size_type pos=0) const
 
size_type find_first_not_of (const string &_str, size_type pos=0) const
 
size_type find_first_not_of_ci (const string &_str, size_type pos=0) const
 
size_type find_last_of (const string &_str, size_type pos=npos) const
 
size_type find_last_of_ci (const string &_str, size_type pos=npos) const
 
size_type find_last_not_of (const string &_str, size_type pos=npos) const
 
size_type find_last_not_of_ci (const string &_str, size_type pos=npos) const
 
bool is_number_only () const
 
bool is_pos_number_only () const
 
string replace (size_type pos, size_type n, const string &_str)
 
string replace (size_type pos, size_type n, const string &_str, size_type pos1, size_type n1)
 
string replace (size_type pos, size_type n, size_type n1, char chr)
 
string replace (iterator first, iterator last, const string &_str)
 
string replace (iterator first, iterator last, size_type n, char chr)
 
template<class InputIterator >
string replace (iterator first, iterator last, InputIterator f, InputIterator l)
 
string replace_all_cs (const string &_orig, const string &_repl) const
 
string replace_all_ci (const string &_orig, const string &_repl) const
 
string lower () const
 
string upper () const
 
string substr (size_type pos=0, size_type n=npos) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
char & operator[] (size_type n)
 
const char & operator[] (size_type n) const
 

Static Public Attributes

static const size_type npos = static_cast<size_type>(-1)
 

Private Attributes

std::string _string
 

Friends

const string operator+ (char chr, const string &str)
 
const string operator+ (const char *_str, const string &str)
 
const string operator+ (const std::string &_str, const string &str)
 
std::ostream & operator<< (std::ostream &os, const string &_str)
 
std::istream & operator>> (std::istream &is, string &_str)
 

Detailed Description

A wrapper string class around all the other string classes, this class will allow us to only require one type of string everywhere that can be converted at any time to a specific type of string.

Definition at line 27 of file anope.h.

Member Typedef Documentation

typedef std::string::const_iterator Anope::string::const_iterator

Definition at line 40 of file anope.h.

typedef std::string::const_reverse_iterator Anope::string::const_reverse_iterator

Definition at line 42 of file anope.h.

typedef std::string::iterator Anope::string::iterator

Extras.

Definition at line 39 of file anope.h.

typedef std::string::reverse_iterator Anope::string::reverse_iterator

Definition at line 41 of file anope.h.

typedef std::string::size_type Anope::string::size_type

Definition at line 43 of file anope.h.

Constructor & Destructor Documentation

Anope::string::string ( )
inline

Constructors that can take in any type of string.

Definition at line 49 of file anope.h.

Anope::string::string ( char  chr)
inline

Definition at line 50 of file anope.h.

Anope::string::string ( size_type  n,
char  chr 
)
inline

Definition at line 51 of file anope.h.

Anope::string::string ( const char *  _str)
inline

Definition at line 52 of file anope.h.

Anope::string::string ( const char *  _str,
size_type  n 
)
inline

Definition at line 53 of file anope.h.

Anope::string::string ( const std::string &  _str)
inline

Definition at line 54 of file anope.h.

Anope::string::string ( const ci::string _str)
inline

Definition at line 55 of file anope.h.

Anope::string::string ( const string _str,
size_type  pos,
size_type  n = npos 
)
inline

Definition at line 56 of file anope.h.

template<class InputIterator >
Anope::string::string ( InputIterator  first,
InputIterator  last 
)
inline

Definition at line 57 of file anope.h.

Member Function Documentation

string& Anope::string::append ( const string s)
inline
string& Anope::string::append ( const char *  s,
size_t  n 
)
inline

Definition at line 145 of file anope.h.

References append().

iterator Anope::string::begin ( )
inline
const_iterator Anope::string::begin ( ) const
inline

Definition at line 283 of file anope.h.

const char* Anope::string::c_str ( ) const
inline

The following functions return the various types of strings.

Definition at line 117 of file anope.h.

Referenced by CommandOSDNS::AddIP(), InfoFormatter::AddOption(), CommandOSDNS::AddServer(), CommandOSDNS::AddZone(), DBFlatFile::BackupDatabase(), BSKick::bot_kick(), BotInfo::BotInfo(), LDAPService::BuildMods(), XLineManager::CanAdd(), GnuTLSModule::CheckFile(), Channel::CheckKick(), NSMaxEmail::CheckLimitReached(), CollideKill(), Configuration::Conf::Conf(), MySQLService::Connect(), ModuleManager::DeleteModule(), CommandOSDNS::DelIP(), CommandOSDNS::DelServer(), CommandOSDNS::DelZone(), OSNews::DisplayNews(), dlerror(), CommandCSAKick::DoAdd(), CommandNSAccess::DoAdd(), CommandBSBot::DoAdd(), CommandOSAKill::DoAdd(), CommandCSAccess::DoAdd(), CommandCSXOP::DoAdd(), CommandNSAJoin::DoAdd(), CommandEntryMessage::DoAdd(), CommandNSCert::DoAdd(), CommandOSIgnore::DoAdd(), CommandBSBadwords::DoAdd(), CommandOSException::DoAdd(), CommandCSEnforce::DoBans(), CommandBSBot::DoChange(), CommandEntryMessage::DoClear(), CommandCSFlags::DoClear(), CommandCSAKick::DoClear(), CommandCSXOP::DoClear(), CommandCSAccess::DoClear(), CommandCSMode::DoClear(), CommandNSAccess::DoDel(), CommandEntryMessage::DoDel(), CommandCSAKick::DoDel(), CommandNSAJoin::DoDel(), CommandNSCert::DoDel(), NewsBase::DoDel(), CommandOSAKill::DoDel(), CommandBSBot::DoDel(), CommandCSXOP::DoDel(), CommandCSAccess::DoDel(), CommandOSIgnore::DoDel(), CommandOSException::DoDel(), CommandBSBadwords::DoDelete(), CommandCSLevels::DoDisable(), CommandCSAKick::DoEnforce(), CommandMSSet::DoLimit(), CommandCSEnforce::DoLimit(), CommandOSSet::DoList(), CommandNSAccess::DoList(), CommandNSAJoin::DoList(), CommandEntryMessage::DoList(), CommandBSBadwords::DoList(), CommandNSCert::DoList(), CommandCSFlags::DoList(), CommandCSAKick::DoList(), CommandCSXOP::DoList(), CommandCSAccess::DoList(), CommandCSLevels::DoList(), CommandCSMode::DoLock(), CommandCSFlags::DoModify(), CommandMSSet::DoNotify(), MemoListCallback::DoRead(), CommandCSEnforce::DoRegOnly(), CommandCSLevels::DoReset(), CommandCSEnforce::DoRestricted(), CommandCSEnforce::DoSecureOps(), CommandCSMode::DoSet(), CommandCSLevels::DoSet(), CommandCSEnforce::DoSSLOnly(), CommandOSStats::DoStatsUplink(), CSTop::DoTop(), CommandOSSession::DoView(), CommandCSAKick::DoView(), CommandCSAccess::DoView(), SQLiteService::Escape(), MySQLService::Escape(), CommandOSReload::Execute(), CommandOSOLine::Execute(), CommandHSDel::Execute(), CommandHSList::Execute(), CommandOSSVSNick::Execute(), CommandHSOn::Execute(), CommandCSGetKey::Execute(), CommandHSSet::Execute(), CommandMSCancel::Execute(), CommandMSCheck::Execute(), CommandCSInvite::Execute(), CommandMSInfo::Execute(), CommandMSList::Execute(), CommandBSSetFantasy::Execute(), CommandCSRegister::Execute(), CommandNSDrop::Execute(), CommandNSGetPass::Execute(), CommandNSList::Execute(), CommandBSAssign::Execute(), CommandBSSay::Execute(), CommandCSDrop::Execute(), CommandCSStatus::Execute(), CommandOSConfig::Execute(), CommandCSSync::Execute(), CommandCSUnban::Execute(), CommandOSKick::Execute(), CommandOSKill::Execute(), CommandOSChanList::Execute(), CommandOSModInfo::Execute(), CommandBSSetGreet::Execute(), CommandOSModLoad::Execute(), CommandOSNOOP::Execute(), CommandCSInfo::Execute(), CommandCSList::Execute(), CommandCSKick::Execute(), CommandNSInfo::Execute(), CommandCSClone::Execute(), CommandNSStatus::Execute(), CommandCSSetKeepTopic::Execute(), CommandOSMode::Execute(), CommandMSIgnore::Execute(), CommandNSLogout::Execute(), CommandOSChanKill::Execute(), CommandNSConfirm::Execute(), CommandNSResetPass::Execute(), CommandNSGetEMail::Execute(), CommandMSRSend::Execute(), CommandMSSend::Execute(), CommandNSAList::Execute(), CommandOSLogSearch::Execute(), CommandHelp::Execute(), CommandCSBan::Execute(), CommandHSGroup::Execute(), CommandBSInfo::Execute(), CommandCSUp::Execute(), CommandOSModReLoad::Execute(), CommandCSSuspend::Execute(), CommandHSDelAll::Execute(), CommandNSSuspend::Execute(), CommandNSIdentify::Execute(), CommandCSSetAutoOp::Execute(), CommandOSOper::Execute(), CommandOSSVSJoin::Execute(), CommandBSSetBanExpire::Execute(), CommandNSGroup::Execute(), CommandBSAct::Execute(), CommandOSModList::Execute(), CommandBSUnassign::Execute(), CommandCSSetMisc::Execute(), CommandNSAccess::Execute(), CommandCSLog::Execute(), CommandNSRegister::Execute(), CommandNSSetPassword::Execute(), CommandOSSVSPart::Execute(), CommandHSSetAll::Execute(), CommandOSUserList::Execute(), CommandOSModUnLoad::Execute(), CommandNSRecover::Execute(), CommandCSSetBanType::Execute(), CommandCSDown::Execute(), CommandOSUMode::Execute(), CommandOSForbid::Execute(), CommandBSSetPrivate::Execute(), CommandCSUnSuspend::Execute(), CommandBSSetNoBot::Execute(), CommandCSTopic::Execute(), CommandNSUnSuspend::Execute(), CommandNSSASetPassword::Execute(), CommandCSSetPrivate::Execute(), CommandHSActivate::Execute(), CommandCSSetDescription::Execute(), CommandOSStats::Execute(), CommandNSUngroup::Execute(), CommandCSEnforce::Execute(), CommandNSAJoin::Execute(), CommandHSReject::Execute(), CommandSeen::Execute(), CommandNSCert::Execute(), CommandCSSetFounder::Execute(), CommandNSGList::Execute(), CommandCSSetKeepModes::Execute(), CommandBSKickCaps::Execute(), CommandCSFlags::Execute(), CommandCSSetPeace::Execute(), CommandCSSetPersist::Execute(), CommandBSKickFlood::Execute(), CommandBSKickRepeat::Execute(), CommandCSSetRestricted::Execute(), CommandCSSetSecure::Execute(), CommandCSModes::Execute(), CommandCSSetSecureFounder::Execute(), CommandBSSetDontKickOps::Execute(), CommandCSSetSecureOps::Execute(), CommandBSSetDontKickVoices::Execute(), CommandCSSetSignKick::Execute(), CommandCSSetSuccessor::Execute(), CommandCSSetNoexpire::Execute(), CommandNSSASetNoexpire::Execute(), EBCRYPT::Generate(), CommandOSSXLineBase::GetDesc(), Language::InitLanguages(), Anope::IsFile(), User::Kill(), LDAPService::LDAPService(), GnuTLS::X509CertCredentials::LoadFile(), ModuleManager::LoadModule(), CommandCSTopic::Lock(), main(), cidr::mask(), PCRERegex::Matches(), POSIXRegex::Matches(), TRERegex::Matches(), Module::Module(), CommandOSSNLine::OnAdd(), CommandOSSQLine::OnAdd(), BSKick::OnBotInfo(), OSDefcon::OnChannelSync(), OSForbid::OnCheckKick(), ChanServCore::OnCheckModes(), CommandOSSXLineBase::OnClear(), HTTPProxyConnect::OnConnect(), CommandOSSXLineBase::OnDel(), ChanServCore::OnDelChan(), CommandOSDNS::OnDepool(), NSCert::OnFingerprint(), CommandBSSet::OnHelp(), CommandCSSet::OnHelp(), CommandNSSet::OnHelp(), CommandCSSetKeepTopic::OnHelp(), CommandNSSASet::OnHelp(), CommandCSRegister::OnHelp(), CommandOSChanList::OnHelp(), CommandCSSetAutoOp::OnHelp(), CommandBSKick::OnHelp(), CommandNSList::OnHelp(), RewriteCommand::OnHelp(), CommandCSSetBanType::OnHelp(), CommandOSUserList::OnHelp(), CommandNSSetHide::OnHelp(), CommandCSSetPrivate::OnHelp(), CommandNSSetPrivate::OnHelp(), CommandCSSetDescription::OnHelp(), CommandNSSASetHide::OnHelp(), CommandNSSASetPrivate::OnHelp(), CommandBSKickAMSG::OnHelp(), CommandNSSetAutoOp::OnHelp(), CommandNSSASetAutoOp::OnHelp(), CommandCSSetFounder::OnHelp(), CommandOSIgnore::OnHelp(), CommandOSForbid::OnHelp(), CommandOSAKill::OnHelp(), CommandCSFlags::OnHelp(), CommandOSSNLine::OnHelp(), CommandCSSetPeace::OnHelp(), CommandCSAKick::OnHelp(), CommandCSXOP::OnHelp(), CommandCSAccess::OnHelp(), CommandCSSetPersist::OnHelp(), CommandOSSQLine::OnHelp(), CommandNSSetKill::OnHelp(), CommandCSSetSecure::OnHelp(), CommandNSSASetKill::OnHelp(), CommandCSLevels::OnHelp(), CommandNSSetLanguage::OnHelp(), CommandNSSASetLanguage::OnHelp(), CommandNSSetMessage::OnHelp(), CommandNSSetSecure::OnHelp(), CommandNSSASetSecure::OnHelp(), OSInfo::OnInfo(), BSAssign::OnInvite(), BotServCore::OnJoinChannel(), Greet::OnJoinChannel(), DBFlatFile::OnLoadDatabase(), CSLog::OnLog(), LDAPOper::OnNickIdentify(), NickServCore::OnNickIdentify(), CommandOSDNS::OnPool(), BotServCore::OnPostHelp(), MemoServCore::OnPostHelp(), NickServCore::OnPostHelp(), OSForbid::OnPreCommand(), NSSet::OnPreCommand(), HostServCore::OnPreHelp(), GlobalCore::OnPreHelp(), BotServCore::OnPreHelp(), MemoServCore::OnPreHelp(), ChanServCore::OnPreHelp(), OperServCore::OnPreHelp(), NickServCore::OnPreHelp(), BSKick::OnPrivmsg(), SSLModule::OnReload(), ModuleDNS::OnReload(), WebCPanel::ChanServ::Modes::OnRequest(), SQLAuthenticationResult::OnResult(), SQLOperResult::OnResult(), IdentifyInterface::OnResult(), OnIdentifyInterface::OnResult(), DBFlatFile::OnSaveDatabase(), DBFlatFile::OnSerializeTypeCreate(), Command::OnServHelp(), CommandOSDNS::OnSet(), NSGroupRequest::OnSuccess(), NSRecoverRequest::OnSuccess(), Command::OnSyntaxError(), HostServCore::OnUserLogin(), NickServCore::OnUserLogin(), OSForbid::OnUserNickChange(), Configuration::File::Open(), InfoFormatter::operator[](), Packet::PackName(), BotInfo::Part(), PCRERegex::PCRERegex(), POSIXRegex::POSIXRegex(), CommandBSKickBase::Process(), CommandOSSXLineBase::ProcessList(), CommandCSAKick::ProcessList(), CommandCSAccess::ProcessList(), LogInfo::ProcessMessage(), sockaddrs::pton(), SOCKS5ProxyConnect::Read(), LDAPService::Reconnect(), CommandSource::Reply(), req_send_memos(), Anope::Resolve(), rsend_notify(), CommandNSSetChanstats::Run(), Message::Mode::Run(), CommandNSSetGreet::Run(), Message::MOTD::Run(), CommandNSSetMisc::Run(), IRCDMessageEncap::Run(), Message::Privmsg::Run(), Message::Stats::Run(), CommandNSSetHide::Run(), Message::Time::Run(), Message::Version::Run(), Message::Whois::Run(), Command::Run(), CommandNSSetPrivate::Run(), CommandNSSetAutoOp::Run(), CommandNSSetDisplay::Run(), CommandNSSetEmail::Run(), CommandNSSetKeepModes::Run(), CommandNSSetKill::Run(), CommandNSSetLanguage::Run(), CommandNSSetMessage::Run(), IRCDMessageNick::Run(), CommandNSSetSecure::Run(), IRCDMessageMetadata::Run(), runDefCon(), SQLiteService::RunQuery(), MySQLService::RunQuery(), Mail::Send(), MemoServCore::Send(), MyRedisService::Send(), SocketIO::Send(), CommandOSDefcon::SendLevels(), User::SendMessage(), Command::SendSyntax(), Server::Server(), setuidgid(), CommandSeen::SimpleSeen(), SQLiteService::SQLiteService(), SSLModule::SSLModule(), Language::Translate(), TRERegex::TRERegex(), Anope::Unhex(), CommandCSTopic::Unlock(), User::User(), NickServCore::Validate(), HTTPReply::Write(), BufferedSocket::Write(), BinarySocket::Write(), BadwordsDelCallback::~BadwordsDelCallback(), and SXLineDelCallback::~SXLineDelCallback().

size_type Anope::string::capacity ( ) const
inline

Returns the size of the currently allocated storage space in the string object. This can be equal or greater than the length of the string.

Definition at line 137 of file anope.h.

ci::string Anope::string::ci_str ( ) const
inline

Definition at line 121 of file anope.h.

Referenced by CommandMSIgnore::Execute(), and ci::less::operator()().

void Anope::string::clear ( )
inline
const char* Anope::string::data ( ) const
inline

Definition at line 118 of file anope.h.

Referenced by GnuTLS::Datum::Datum(), DHAES::ProcessMessage(), and DHBS::ProcessMessage().

bool Anope::string::empty ( ) const
inline

Returns if the string is empty or not.

Definition at line 126 of file anope.h.

Referenced by ModeManager::AddChannelMode(), InfoFormatter::AddOption(), CommandOSDNS::AddServer(), ModeManager::AddUserMode(), XLineManager::AddXLine(), CommandCSTopic::Append(), Anope::B64Decode(), BotInfo::BotInfo(), BuildModeStrings(), Log::BuildPrefix(), User::ChangeNick(), Channel::Channel(), ChannelInfo::ChannelInfo(), CommandBSKickBase::CheckArguments(), Channel::CheckKick(), NSMaxEmail::CheckLimitReached(), XLineManager::Clear(), EBCRYPT::Compare(), NSMaxEmail::CountEmail(), MChanstats::CountSmileys(), defconReverseModes(), ModuleManager::DeleteModule(), CommandOSDNS::DelServer(), XLineManager::DelXLine(), CommandOSDNS::DisplayPoolState(), dlerror(), CommandCSAKick::DoAdd(), CommandNSAccess::DoAdd(), CommandOSAKill::DoAdd(), CommandCSXOP::DoAdd(), CommandNSAJoin::DoAdd(), CommandNSCert::DoAdd(), NewsBase::DoAdd(), CommandOSIgnore::DoAdd(), CommandBSBadwords::DoAdd(), CommandOSException::DoAdd(), CommandBSBot::DoChange(), MyXMLRPCEvent::DoChannel(), MyXMLRPCEvent::DoCheckAuthentication(), CommandCSMode::DoClear(), MyXMLRPCEvent::DoCommand(), CommandNSAccess::DoDel(), CommandNSAJoin::DoDel(), CommandNSCert::DoDel(), NewsBase::DoDel(), CommandOSAKill::DoDel(), CommandBSBot::DoDel(), CommandCSXOP::DoDel(), CommandCSAccess::DoDel(), CommandOSIgnore::DoDel(), CommandOSException::DoDel(), CommandBSBadwords::DoDelete(), CommandMSSet::DoLimit(), CommandNSAccess::DoList(), CommandBSBadwords::DoList(), CommandCSFlags::DoList(), CommandCSXOP::DoList(), CommandCSMode::DoLock(), CommandCSFlags::DoModify(), CommandOSException::DoMove(), CommandMSSet::DoNotify(), CommandOSSet::DoSetDebug(), CommandOSSet::DoSetNoExpire(), CommandOSSet::DoSetReadOnly(), CommandOSSet::DoSetSuperAdmin(), MyXMLRPCEvent::DoStats(), CommandOSStats::DoStatsUplink(), Anope::DoTime(), CSTop::DoTop(), MyXMLRPCEvent::DoUser(), ChannelStatus::Empty(), CommandOSChanList::Execute(), CommandOSModInfo::Execute(), CommandHSSet::Execute(), CommandMSInfo::Execute(), CommandMSList::Execute(), CommandCSRegister::Execute(), CommandNSList::Execute(), CommandOSConfig::Execute(), CommandHSList::Execute(), CommandHSOn::Execute(), CommandOSJupe::Execute(), CommandOSKill::Execute(), CommandOSLogin::Execute(), CommandOSMode::Execute(), CommandNSInfo::Execute(), CommandNSStatus::Execute(), CommandCSClone::Execute(), CommandCSInfo::Execute(), CommandMSIgnore::Execute(), CommandNSLogout::Execute(), CommandOSChanKill::Execute(), CommandNSGetEMail::Execute(), CommandHelp::Execute(), CommandMSDel::Execute(), CommandHSGroup::Execute(), CommandCSSuspend::Execute(), CommandNSSuspend::Execute(), CommandOSLogout::Execute(), CommandOSOper::Execute(), CommandNSGroup::Execute(), CommandBSAct::Execute(), CommandHSRequest::Execute(), CommandOSModList::Execute(), CommandCSSetMisc::Execute(), CommandMSRead::Execute(), CommandNSAccess::Execute(), CommandCSLog::Execute(), CommandNSRegister::Execute(), CommandOSSVSPart::Execute(), CommandHSSetAll::Execute(), CommandOSUserList::Execute(), CommandNSRecover::Execute(), CommandOSForbid::Execute(), CommandCSUnSuspend::Execute(), CommandNSUnSuspend::Execute(), CommandOSDefcon::Execute(), CommandHSActivate::Execute(), CommandCSSetDescription::Execute(), CommandOSStats::Execute(), CommandNSUngroup::Execute(), CommandNSAJoin::Execute(), CommandHSReject::Execute(), CommandNSCert::Execute(), CommandNSGList::Execute(), CommandHSWaiting::Execute(), CommandBSKickCaps::Execute(), CommandBSBadwords::Execute(), CommandCSFlags::Execute(), CommandCSAKick::Execute(), CommandBSKickFlood::Execute(), CommandCSAccess::Execute(), CommandBSKickRepeat::Execute(), CommandCSLevels::Execute(), CommandCSSetSuccessor::Execute(), Rewrite::Find(), IRCDProto::Format(), Log::FormatCommand(), BotInfo::GenerateUID(), Configuration::Block::Get(), MyXMLRPCServiceInterface::GetData(), User::GetDisplayedHost(), MemoInfo::GetMemoInfo(), ModeLocksImpl::GetMLockAsString(), Panel::GetNickFromSession(), Entry::GetNUHMask(), Server::GetSID(), User::GetUID(), User::GetVIdent(), Channel::HasMode(), XLine::HasNickOrReal(), NickAlias::HasVhost(), Anope::Init(), IRCDProto::IsChannelValid(), IRCDProto::IsHostValid(), IRCDProto::IsIdentValid(), IRCDProto::IsNickValid(), NickCore::IsOnAccess(), XLine::IsRegex(), ColonDelimitedParamMode::IsValid(), ChannelModeKey::IsValid(), LoadChannels(), Configuration::Conf::LoadConf(), ModuleManager::LoadModule(), LoadNicks(), Rewrite::Match(), InspIRCdExtban::FinerprintMatcher::Matches(), Entry::Matches(), MessageSource::MessageSource(), NickAlias::NickAlias(), NickCore::NickCore(), NumberList::NumberList(), CommandOSSNLine::OnAdd(), CommandOSSQLine::OnAdd(), CSSuspend::OnChanInfo(), BSAutoAssign::OnChanRegistered(), CSLog::OnChanRegistered(), ProtoInspIRCd20::OnChanRegistered(), ChanServCore::OnCheckModes(), CSMode::OnCheckModes(), CommandOSSXLineBase::OnDel(), ChanServCore::OnDelChan(), UplinkSocket::OnError(), CommandCSSet::OnHelp(), CommandNSSet::OnHelp(), CommandOSChanList::OnHelp(), CommandNSList::OnHelp(), RewriteCommand::OnHelp(), CommandOSUserList::OnHelp(), CommandOSIgnore::OnHelp(), CommandOSForbid::OnHelp(), CommandOSAKill::OnHelp(), CommandOSSNLine::OnHelp(), CommandCSXOP::OnHelp(), CommandOSSQLine::OnHelp(), User::OnIntroduce(), Greet::OnJoinChannel(), CSLog::OnLog(), GlobalCore::OnNewServer(), LDAPOper::OnNickIdentify(), NSIdentifyLDAP::OnNickIdentify(), NickServCore::OnNickIdentify(), NSSuspend::OnNickInfo(), NSIdentifyLDAP::OnNickRegister(), ModuleSQL::OnNotify(), ModuleLDAP::OnNotify(), BotServCore::OnPostHelp(), ModuleSQLAuthentication::OnPreCommand(), NSIdentifyLDAP::OnPreCommand(), BotServCore::OnPreHelp(), Fantasy::OnPrivmsg(), BSKick::OnPrivmsg(), HostServCore::OnReload(), GlobalCore::OnReload(), IRC2SQL::OnReload(), ChanServCore::OnReload(), ModuleDNSBL::OnReload(), MemoServCore::OnReload(), ModuleRewrite::OnReload(), CSSetMisc::OnReload(), NSSetMisc::OnReload(), OperServCore::OnReload(), NSIdentifyLDAP::OnReload(), ModuleProxyScan::OnReload(), NickServCore::OnReload(), OSDefcon::OnReload(), HTTPD::OnReload(), CSFlags::OnReload(), CSXOP::OnReload(), CSAccess::OnReload(), CSMode::OnReload(), WebCPanel::Index::OnRequest(), WebCPanel::Confirm::OnRequest(), WebCPanel::NickServ::Info::OnRequest(), WebCPanel::ChanServ::Set::OnRequest(), WebCPanel::HostServ::Request::OnRequest(), WebCPanel::ChanServ::Info::OnRequest(), WebCPanel::ChanServ::Access::OnRequest(), WebCPanel::ChanServ::Akick::OnRequest(), WebCPanel::ChanServ::Modes::OnRequest(), WebCPanel::MemoServ::Memos::OnRequest(), GlobalCore::OnRestart(), SQLAuthenticationResult::OnResult(), SQLOperResult::OnResult(), DBMySQL::OnSerializeCheck(), RewriteCommand::OnServHelp(), GlobalCore::OnShutdown(), ModuleProxyScan::OnUserConnect(), NickServCore::OnUserConnect(), OSDefcon::OnUserConnect(), HostServCore::OnUserLogin(), NickServCore::OnUserLogin(), NickServCore::OnUserQuit(), LogInfo::OpenLogFiles(), SQL::Result::operator bool(), ParseCommandLineArguments(), BotInfo::Part(), Privilege::Privilege(), ListFormatter::Process(), CommandBSKickBase::Process(), Anope::Process(), CommandOSSXLineBase::ProcessList(), CommandCSAKick::ProcessList(), CommandOSAKill::ProcessList(), CommandCSAccess::ProcessList(), CommandOSException::ProcessList(), Plain::ProcessMessage(), DHBS::ProcessMessage(), LogInfo::ProcessMessage(), ProxyCallbackListener::ProxyCallbackClient::ProcessWrite(), BufferedSocket::ProcessWrite(), MyHTTPClient::Read(), Channel::RemoveModeInternal(), MyXMLRPCServiceInterface::Reply(), req_send_memos(), SQLiteService::Run(), CommandNSSetGreet::Run(), CommandNSSetMisc::Run(), Message::Part::Run(), Message::Quit::Run(), Command::Run(), IRCDMessageJoin::Run(), IRCDMessageCapab::Run(), IRCDMessageSJoin::Run(), CommandNSSetEmail::Run(), IRCDMessageFJoin::Run(), runDefCon(), CSStats::RunQuery(), CSTop::RunQuery(), DBMySQL::RunQueryResult(), MyXMLRPCServiceInterface::Sanitize(), Mail::Send(), CommandBSInfo::send_bot_channels(), HybridProto::SendChannel(), BahamutIRCdProto::SendChannel(), UnrealIRCdProto::SendConnect(), IRCDProto::SendKickInternal(), CommandOSDefcon::SendLevels(), SASLService::SendMechs(), IRCDProto::SendPartInternal(), IRCDProto::SendPing(), IRCDProto::SendPong(), IRCDProto::SendQuitInternal(), InspIRCd12Proto::SendServer(), TemplateFileServer::Serve(), Server::Server(), CommandCSTopic::Set(), User::SetCloakedHost(), User::SetDisplayedHost(), MyManager::SetIPPort(), ChanAccess::SetMask(), ModeLocksImpl::SetMLock(), Channel::SetModeInternal(), User::SetRealname(), Server::SetSID(), setuidgid(), IRCDProto::SID_Retrieve(), Message::Join::SJoin(), sockaddrs::sockaddrs(), DefConTimeout::Tick(), Packet::UnpackName(), User::UpdateHost(), User::User(), Mail::Validate(), ValidateNotEmpty(), Anope::VersionBuildString(), BotInfo::~BotInfo(), UplinkSocket::Message::~Message(), Server::~Server(), and User::~User().

iterator Anope::string::end ( )
inline
const_iterator Anope::string::end ( ) const
inline

Definition at line 285 of file anope.h.

bool Anope::string::equals_ci ( const char *  _str) const
inline

Definition at line 78 of file anope.h.

Referenced by XLineManager::CanAdd(), User::ChangeNick(), CommandBSKickBase::CheckArguments(), IRC2SQL::CheckTables(), Configuration::Conf::Conf(), NSMaxEmail::CountEmail(), CommandCSAKick::DoAdd(), CommandCSAccess::DoAdd(), CommandCSXOP::DoAdd(), CommandBSBadwords::DoAdd(), CommandOSException::DoAdd(), CommandBSBot::DoChange(), CommandCSAKick::DoDel(), NewsBase::DoDel(), CommandCSXOP::DoDel(), CommandCSAccess::DoDel(), CommandOSException::DoDel(), CommandBSBadwords::DoDelete(), CommandCSLevels::DoDisable(), CommandMSSet::DoLimit(), CommandCSMode::DoLock(), CommandCSFlags::DoModify(), NewsBase::DoNews(), CommandMSSet::DoNotify(), CommandCSLevels::DoSet(), CommandOSSet::DoSetDebug(), CommandOSSet::DoSetNoExpire(), CommandOSSet::DoSetReadOnly(), CommandOSSet::DoSetSuperAdmin(), CommandOSConfig::Execute(), CommandOSChanList::Execute(), CommandBSSetGreet::Execute(), CommandMSList::Execute(), CommandOSSVSNick::Execute(), CommandCSDrop::Execute(), CommandBSSetFantasy::Execute(), CommandNSList::Execute(), CommandOSMode::Execute(), CommandOSNOOP::Execute(), CommandCSClone::Execute(), CommandCSList::Execute(), CommandMSIgnore::Execute(), CommandNSLogout::Execute(), CommandNSGetEMail::Execute(), CommandMSDel::Execute(), CommandOSOper::Execute(), CommandOSModList::Execute(), CommandOSInfo::Execute(), CommandMSRead::Execute(), CommandNSAccess::Execute(), CommandCSLog::Execute(), CommandNSRegister::Execute(), CommandOSUserList::Execute(), CommandOSForbid::Execute(), CommandBSSetPrivate::Execute(), CommandBSSetNoBot::Execute(), CommandCSTopic::Execute(), CommandNSSASetPassword::Execute(), CommandOSSet::Execute(), CommandOSStats::Execute(), CommandMSSet::Execute(), CommandNSUngroup::Execute(), CommandOSSXLineBase::Execute(), CommandCSEnforce::Execute(), CommandNSAJoin::Execute(), CommandOSSession::Execute(), CommandBSBot::Execute(), CommandSeen::Execute(), CommandNSCert::Execute(), CommandOSIgnore::Execute(), CommandBSBadwords::Execute(), CommandCSFlags::Execute(), CommandOSAKill::Execute(), CommandCSAKick::Execute(), CommandCSXOP::Execute(), CommandCSAccess::Execute(), CommandOSException::Execute(), CommandCSMode::Execute(), CommandCSLevels::Execute(), CommandNSSASetNoexpire::Execute(), Oper::Find(), Rewrite::Find(), ModuleManager::FindModule(), PrivilegeManager::FindPrivilege(), Configuration::Block::Get(), XLineManager::HasEntry(), MemoInfo::HasIgnore(), User::Identify(), Rewrite::Match(), InspIRCdExtban::AccountMatcher::Matches(), InspIRCdExtBan::Matches(), UnrealExtban::RegisteredMatcher::Matches(), IRC2SQL::OnBotNotice(), ChanServCore::OnDelChan(), CSLog::OnLog(), NSRegister::OnNickIdentify(), BSKick::OnPrivmsg(), ModuleProxyScan::OnReload(), OSDefcon::OnReload(), CSAccess::OnReload(), OnIdentifyInterface::OnResult(), Anope::compare::operator()(), Privilege::operator==(), Privilege::Privilege(), CommandBSKickBase::Process(), CommandOSSXLineBase::ProcessList(), CommandOSAKill::ProcessList(), Channel::RemoveModeInternal(), CommandNSSetChanstats::Run(), Message::Privmsg::Run(), CommandNSSetHide::Run(), CommandNSSetPrivate::Run(), CommandNSSetAutoOp::Run(), CommandNSSetKeepModes::Run(), CommandNSSetKill::Run(), CommandNSSetMessage::Run(), CommandNSSetSecure::Run(), and NickAlias::~NickAlias().

bool Anope::string::equals_ci ( const std::string &  _str) const
inline

Definition at line 79 of file anope.h.

bool Anope::string::equals_ci ( const string _str) const
inline

Definition at line 80 of file anope.h.

References _string.

bool Anope::string::equals_cs ( const char *  _str) const
inline
bool Anope::string::equals_cs ( const std::string &  _str) const
inline

Definition at line 75 of file anope.h.

bool Anope::string::equals_cs ( const string _str) const
inline

Definition at line 76 of file anope.h.

References _string.

iterator Anope::string::erase ( const iterator i)
inline
iterator Anope::string::erase ( const iterator first,
const iterator last 
)
inline

Definition at line 156 of file anope.h.

void Anope::string::erase ( size_type  pos = 0,
size_type  n = std::string::npos 
)
inline

Definition at line 157 of file anope.h.

size_type Anope::string::find ( const string _str,
size_type  pos = 0 
) const
inline

Find substrings of the string.

Definition at line 192 of file anope.h.

References _string.

Referenced by ChannelStatus::AddMode(), Anope::B64Decode(), cidr::cidr(), MChanstats::CountSmileys(), MChanstats::CountWords(), Anope::Decrypt(), CommandCSAKick::DoAdd(), CommandOSAKill::DoAdd(), CommandOSException::DoAdd(), CommandCSFlags::DoList(), Entry::Entry(), CommandHSSet::Execute(), CommandHSList::Execute(), CommandOSJupe::Execute(), CommandHSRequest::Execute(), CommandNSAccess::Execute(), CommandCSLog::Execute(), CommandHSSetAll::Execute(), ESHA256::GetIVFromPass(), BufferedSocket::GetLine(), sepstream::GetToken(), MyManager::HandlePacket(), OperType::HasCommand(), ChannelStatus::HasMode(), OperType::HasPriv(), AccessGroup::HasPriv(), XLine::Init(), HybridProto::IsIdentValid(), IRCDProto::IsNickValid(), ColonDelimitedParamMode::IsValid(), ChannelModeKey::IsValid(), ChannelModeFlood::IsValid(), Log::Log(), User::Mask(), InspIRCdExtBan::Matches(), MessageSource::MessageSource(), MyRedisService::MyRedisService(), MyManager::Notify(), NumberList::NumberList(), CommandOSSNLine::OnAdd(), OSDefcon::OnChannelModeAdd(), ENone::OnCheckAuthentication(), EOld::OnCheckAuthentication(), ESHA1::OnCheckAuthentication(), ESHA256::OnCheckAuthentication(), EMD5::OnCheckAuthentication(), EBCRYPT::OnCheckAuthentication(), CSAKick::OnCheckKick(), RewriteCommand::OnHelp(), SQLLog::OnLogMessage(), DNSBLResolver::OnLookupComplete(), BSKick::OnPrivmsg(), LogInfo::OpenLogFiles(), Packet::Pack(), ParseCommandLineArguments(), RedisSocket::ParseReply(), Rewrite::Process(), Plain::ProcessMessage(), LogInfo::ProcessMessage(), MyHTTPClient::Read(), CommandOSIgnore::RealMask(), replace_all_cs(), Message::Privmsg::Run(), IRCDMessage005::Run(), IRCDMessageCapab::Run(), MyRedisService::Send(), InspIRCd12Proto::SendAkill(), InspIRCd12Proto::SendAkillDel(), TemplateFileServer::Serve(), MyManager::SetIPPort(), sockaddrs::sockaddrs(), MyRedisService::Subscribe(), Mail::Validate(), and ValidateNoSpaces().

size_type Anope::string::find ( char  chr,
size_type  pos = 0 
) const
inline

Definition at line 193 of file anope.h.

size_type Anope::string::find_ci ( const string _str,
size_type  pos = 0 
) const
inline
size_type Anope::string::find_ci ( char  chr,
size_type  pos = 0 
) const
inline

Definition at line 195 of file anope.h.

size_type Anope::string::find_first_not_of ( const string _str,
size_type  pos = 0 
) const
inline
size_type Anope::string::find_first_not_of_ci ( const string _str,
size_type  pos = 0 
) const
inline

Definition at line 206 of file anope.h.

References _string.

Referenced by sockaddrs::sockaddrs().

size_type Anope::string::find_first_of ( const string _str,
size_type  pos = 0 
) const
inline
size_type Anope::string::find_first_of_ci ( const string _str,
size_type  pos = 0 
) const
inline

Definition at line 203 of file anope.h.

References _string.

size_type Anope::string::find_last_not_of ( const string _str,
size_type  pos = npos 
) const
inline

Definition at line 211 of file anope.h.

References _string.

size_type Anope::string::find_last_not_of_ci ( const string _str,
size_type  pos = npos 
) const
inline

Definition at line 212 of file anope.h.

References _string.

size_type Anope::string::find_last_of ( const string _str,
size_type  pos = npos 
) const
inline

Definition at line 208 of file anope.h.

References _string.

Referenced by cidr::cidr(), Entry::Entry(), and CommandNSSetMessage::OnHelp().

size_type Anope::string::find_last_of_ci ( const string _str,
size_type  pos = npos 
) const
inline

Definition at line 209 of file anope.h.

References _string.

bool Anope::string::is_number_only ( ) const
inline

Determine if string consists of only numbers.

Definition at line 217 of file anope.h.

Referenced by CommandMSRead::Execute(), Anope::Init(), and ChannelModeFlood::IsValid().

bool Anope::string::is_pos_number_only ( ) const
inline
size_type Anope::string::length ( ) const
inline

Returns the string's length.

Definition at line 131 of file anope.h.

Referenced by Anope::B64Decode(), Anope::B64Encode(), SQLiteService::BuildInsert(), ChannelStatus::BuildModePrefixList(), BuildModeStrings(), Configuration::Conf::Conf(), GnuTLS::Datum::Datum(), defconReverseModes(), CommandCSAKick::DoAdd(), CommandBSBot::DoAdd(), CommandOSAKill::DoAdd(), CommandNSAJoin::DoAdd(), CommandBSBot::DoChange(), MyXMLRPCEvent::DoChannel(), CommandCSMode::DoClear(), CommandNSAJoin::DoDel(), CommandCSFlags::DoList(), CommandCSMode::DoLock(), CommandCSFlags::DoModify(), MyXMLRPCEvent::DoUser(), MySQLService::Escape(), HTTPUtils::Escape(), CommandOSSVSNick::Execute(), CommandHSList::Execute(), CommandHSSet::Execute(), CommandCSKick::Execute(), CommandOSMode::Execute(), CommandOSChanKill::Execute(), CommandHelp::Execute(), CommandCSBan::Execute(), CommandOSOper::Execute(), CommandNSGroup::Execute(), CommandHSRequest::Execute(), CommandCSLog::Execute(), CommandNSRegister::Execute(), CommandNSSetPassword::Execute(), CommandHSSetAll::Execute(), CommandSeen::Execute(), GetFullProgDir(), ESHA256::GetIVFromPass(), ModeLocksImpl::GetMLockAsString(), sepstream::GetToken(), Anope::Hex(), XLine::Init(), IRCDProto::IsChannelValid(), IRCDProto::IsHostValid(), IRCDProto::IsIdentValid(), IRCDProto::IsNickValid(), XLine::IsRegex(), Configuration::Conf::LoadConf(), lower(), main(), Anope::Match(), PCRERegex::Matches(), my_b64_encode(), Anope::NormalizeBuffer(), CommandOSSNLine::OnAdd(), CommandOSSQLine::OnAdd(), IRC2SQL::OnBotNotice(), CSMode::OnChanRegistered(), CommandCSXOP::OnHelp(), BSKick::OnPrivmsg(), BotServCore::OnSetCorrectModes(), InfoFormatter::operator[](), Packet::PackName(), OSDefcon::ParseModeString(), Rewrite::Process(), DHAES::ProcessMessage(), DHBS::ProcessMessage(), MyHTTPClient::Read(), SOCKS5ProxyConnect::Read(), CommandCSDown::RemoveAll(), replace_all_ci(), replace_all_cs(), Channel::Reset(), Message::Privmsg::Run(), IRCDMessageCapab::Run(), SQLiteService::RunQuery(), MySQLService::RunQuery(), SocketIO::Send(), CommandBSInfo::send_bot_channels(), PlexusProto::SendJoin(), ngIRCdProto::SendJoin(), UnrealIRCdProto::SendJoin(), BahamutIRCdProto::SendJoin(), InspIRCd12Proto::SendJoin(), MyHTTPClient::SendReply(), Command::SendSyntax(), TemplateFileServer::Serve(), Server::Server(), Channel::SetModes(), User::SetModes(), Channel::SetModesInternal(), User::SetModesInternal(), IRCDProto::SID_Retrieve(), SSLModule::SSLModule(), sepstream::StreamEnd(), IRCDProto::UID_Retrieve(), Anope::Unhex(), upper(), HTTPUtils::URLDecode(), HTTPUtils::URLEncode(), Mail::Validate(), HTTPReply::Write(), BufferedSocket::Write(), BinarySocket::Write(), and BufferedSocket::WriteBufferLen().

string Anope::string::lower ( ) const
inline

Get the string in lowercase.

Definition at line 255 of file anope.h.

References length(), and Anope::tolower().

Referenced by CommandCSBan::Execute(), Configuration::Conf::GetClient(), CSLog::OnChanRegistered(), Anope::hash_ci::operator()(), and Anope::Process().

string& Anope::string::ltrim ( const Anope::string what = " \t\r\n")
inline

Trim leading and trailing white spaces from the string.

Definition at line 163 of file anope.h.

References erase(), and npos.

Referenced by BufferedSocket::GetLine().

bool Anope::string::operator!= ( const char *  _str) const
inline

Inequality operators, exact opposites of the above.

Definition at line 85 of file anope.h.

References operator==().

bool Anope::string::operator!= ( const std::string &  _str) const
inline

Definition at line 86 of file anope.h.

References operator==().

bool Anope::string::operator!= ( const string _str) const
inline

Definition at line 87 of file anope.h.

References operator==().

const string Anope::string::operator+ ( char  chr) const
inline

Addition operators, overloaded to do concatenation.

Definition at line 100 of file anope.h.

const string Anope::string::operator+ ( const char *  _str) const
inline

Definition at line 101 of file anope.h.

const string Anope::string::operator+ ( const std::string &  _str) const
inline

Definition at line 102 of file anope.h.

const string Anope::string::operator+ ( const string _str) const
inline

Definition at line 103 of file anope.h.

string& Anope::string::operator+= ( char  chr)
inline

Compound addition operators, overloaded to do concatenation.

Definition at line 92 of file anope.h.

string& Anope::string::operator+= ( const char *  _str)
inline

Definition at line 93 of file anope.h.

string& Anope::string::operator+= ( const std::string &  _str)
inline

Definition at line 94 of file anope.h.

string& Anope::string::operator+= ( const string _str)
inline

Definition at line 95 of file anope.h.

References _string.

bool Anope::string::operator< ( const string _str) const
inline

Less-than operator.

Definition at line 112 of file anope.h.

References _string.

string& Anope::string::operator= ( char  chr)
inline

Assignment operators, so any type of string can be assigned to this class.

Definition at line 62 of file anope.h.

string& Anope::string::operator= ( const char *  _str)
inline

Definition at line 63 of file anope.h.

string& Anope::string::operator= ( const std::string &  _str)
inline

Definition at line 64 of file anope.h.

string& Anope::string::operator= ( const string _str)
inline

Definition at line 65 of file anope.h.

References _string.

bool Anope::string::operator== ( const char *  _str) const
inline

Equality operators, to compare to any type of string.

Definition at line 70 of file anope.h.

bool Anope::string::operator== ( const std::string &  _str) const
inline

Definition at line 71 of file anope.h.

bool Anope::string::operator== ( const string _str) const
inline

Definition at line 72 of file anope.h.

References _string.

char& Anope::string::operator[] ( size_type  n)
inline

Subscript operator, to access individual characters of the string.

Definition at line 294 of file anope.h.

const char& Anope::string::operator[] ( size_type  n) const
inline

Definition at line 295 of file anope.h.

void Anope::string::push_back ( char  c)
inline
reverse_iterator Anope::string::rbegin ( )
inline

Definition at line 286 of file anope.h.

const_reverse_iterator Anope::string::rbegin ( ) const
inline

Definition at line 287 of file anope.h.

reverse_iterator Anope::string::rend ( )
inline

Definition at line 288 of file anope.h.

const_reverse_iterator Anope::string::rend ( ) const
inline

Definition at line 289 of file anope.h.

string Anope::string::replace ( size_type  pos,
size_type  n,
const string _str 
)
inline

Replace parts of the string.

Definition at line 223 of file anope.h.

References _string.

Referenced by InspIRCd12Proto::SendAkill(), and InspIRCd12Proto::SendAkillDel().

string Anope::string::replace ( size_type  pos,
size_type  n,
const string _str,
size_type  pos1,
size_type  n1 
)
inline

Definition at line 224 of file anope.h.

References _string.

string Anope::string::replace ( size_type  pos,
size_type  n,
size_type  n1,
char  chr 
)
inline

Definition at line 225 of file anope.h.

string Anope::string::replace ( iterator  first,
iterator  last,
const string _str 
)
inline

Definition at line 226 of file anope.h.

References _string.

string Anope::string::replace ( iterator  first,
iterator  last,
size_type  n,
char  chr 
)
inline

Definition at line 227 of file anope.h.

template<class InputIterator >
string Anope::string::replace ( iterator  first,
iterator  last,
InputIterator  f,
InputIterator  l 
)
inline

Definition at line 228 of file anope.h.

string Anope::string::replace_all_ci ( const string _orig,
const string _repl 
) const
inline

Definition at line 240 of file anope.h.

References find_ci(), length(), and substr().

string Anope::string::replace_all_cs ( const string _orig,
const string _repl 
) const
inline
void Anope::string::resize ( size_type  n)
inline

Resizes the string content to n characters.

Definition at line 150 of file anope.h.

size_type Anope::string::rfind ( const string _str,
size_type  pos = npos 
) const
inline
size_type Anope::string::rfind ( char  chr,
size_type  pos = npos 
) const
inline

Definition at line 198 of file anope.h.

size_type Anope::string::rfind_ci ( const string _str,
size_type  pos = npos 
) const
inline

Definition at line 199 of file anope.h.

References _string.

size_type Anope::string::rfind_ci ( char  chr,
size_type  pos = npos 
) const
inline

Definition at line 200 of file anope.h.

string& Anope::string::rtrim ( const Anope::string what = " \t\r\n")
inline

Definition at line 170 of file anope.h.

References erase(), and npos.

std::string& Anope::string::str ( )
inline
const std::string& Anope::string::str ( ) const
inline

Definition at line 120 of file anope.h.

string Anope::string::substr ( size_type  pos = 0,
size_type  n = npos 
) const
inline

Get a substring of the string.

Definition at line 277 of file anope.h.

Referenced by cidr::cidr(), Configuration::Conf::Conf(), CommandCSAKick::DoAdd(), CommandOSAKill::DoAdd(), CommandNSAJoin::DoAdd(), CommandBSBadwords::DoAdd(), CommandCSMode::DoClear(), CommandNSAJoin::DoDel(), CommandCSFlags::DoModify(), Entry::Entry(), CommandHSList::Execute(), CommandHSSet::Execute(), CommandNSList::Execute(), CommandOSSVSNick::Execute(), CommandCSKick::Execute(), CommandCSList::Execute(), CommandOSLogSearch::Execute(), CommandHelp::Execute(), CommandCSBan::Execute(), CommandHSRequest::Execute(), CommandNSGroup::Execute(), CommandCSLog::Execute(), CommandNSRegister::Execute(), CommandHSSetAll::Execute(), CommandCSLevels::Execute(), GetAttribute(), MyXMLRPCServiceInterface::GetData(), GetFullProgDir(), ESHA256::GetIVFromPass(), BufferedSocket::GetLine(), sepstream::GetRemaining(), sepstream::GetToken(), OperType::HasCommand(), OperType::HasPriv(), XLine::Init(), ColonDelimitedParamMode::IsValid(), ChannelModeFlood::IsValid(), Log::Log(), main(), User::Mask(), Anope::Match(), InspIRCdExtban::EntryMatcher::Matches(), InspIRCdExtban::ChannelMatcher::Matches(), InspIRCdExtban::AccountMatcher::Matches(), InspIRCdExtban::RealnameMatcher::Matches(), InspIRCdExtban::ServerMatcher::Matches(), InspIRCdExtban::FinerprintMatcher::Matches(), InspIRCdExtban::UnidentifiedMatcher::Matches(), UnrealExtban::ChannelMatcher::Matches(), InspIRCdExtBan::Matches(), UnrealExtban::EntryMatcher::Matches(), UnrealExtban::RealnameMatcher::Matches(), UnrealExtban::AccountMatcher::Matches(), NumberList::NumberList(), CommandOSSNLine::OnAdd(), CommandOSSQLine::OnAdd(), IRC2SQL::OnBotNotice(), CSSetMisc::OnChanInfo(), EBCRYPT::OnCheckAuthentication(), ENone::OnDecrypt(), RewriteCommand::OnHelp(), CommandCSXOP::OnHelp(), CommandNSSetMessage::OnHelp(), SQLLog::OnLogMessage(), NSSetMisc::OnNickInfo(), BSKick::OnPrivmsg(), ModuleDNS::OnReload(), SubscriptionListener::OnResult(), ParseCommandLineArguments(), RedisSocket::ParseReply(), Rewrite::Process(), Plain::ProcessMessage(), BufferedSocket::ProcessWrite(), MyHTTPClient::Read(), replace_all_ci(), replace_all_cs(), Message::Mode::Run(), Message::Privmsg::Run(), IRCDMessage005::Run(), IRCDMessageJoin::Run(), IRCDMessageCapab::Run(), IRCDMessageMetadata::Run(), SASLService::SendMechs(), CharybdisProto::SendSASLMessage(), CharybdisProto::SendSVSLogin(), TemplateFileServer::Serve(), HTTPUtils::URLDecode(), and Mail::Validate().

string& Anope::string::trim ( const Anope::string what = " \t\r\n")
inline
string Anope::string::upper ( ) const
inline

Friends And Related Function Documentation

const string operator+ ( char  chr,
const string str 
)
friend

Definition at line 308 of file anope.h.

const string operator+ ( const char *  _str,
const string str 
)
friend

Definition at line 309 of file anope.h.

const string operator+ ( const std::string &  _str,
const string str 
)
friend

Definition at line 310 of file anope.h.

std::ostream& operator<< ( std::ostream &  os,
const string _str 
)
friend

Stream insertion operator, must be friend because they cannot be inside the class.

Definition at line 304 of file anope.h.

std::istream& operator>> ( std::istream &  is,
string _str 
)
friend

Definition at line 306 of file anope.h.

Field Documentation

std::string Anope::string::_string
private
const size_type Anope::string::npos = static_cast<size_type>(-1)
static

Definition at line 44 of file anope.h.

Referenced by ChannelStatus::AddMode(), Anope::B64Decode(), cidr::cidr(), Configuration::Conf::Conf(), MChanstats::CountSmileys(), MChanstats::CountWords(), Anope::Decrypt(), CommandCSAKick::DoAdd(), CommandOSAKill::DoAdd(), CommandCSAccess::DoAdd(), CommandCSXOP::DoAdd(), CommandBSBadwords::DoAdd(), CommandOSException::DoAdd(), CommandCSAKick::DoDel(), CommandOSAKill::DoDel(), CommandCSXOP::DoDel(), CommandCSAccess::DoDel(), CommandOSException::DoDel(), CommandBSBadwords::DoDelete(), CommandBSBadwords::DoList(), CommandCSFlags::DoList(), CommandCSXOP::DoList(), CommandCSFlags::DoModify(), CommandCSMode::DoSet(), Entry::Entry(), CommandOSJupe::Execute(), CommandHSList::Execute(), CommandHSSet::Execute(), CommandHSRequest::Execute(), CommandNSGroup::Execute(), CommandNSAccess::Execute(), CommandCSLog::Execute(), CommandNSRegister::Execute(), CommandHSSetAll::Execute(), CSSet::KeepModes::ExtensibleUnserialize(), NSSet::KeepModes::ExtensibleUnserialize(), OSIgnoreService::Find(), MySessionService::FindSession(), GetAttribute(), BufferedSocket::GetLine(), ChannelStatus::HasMode(), User::Identify(), XLine::Init(), IRCDProto::IsChannelValid(), UnrealIRCdProto::IsChannelValid(), IRCDProto::IsHostValid(), HybridProto::IsIdentValid(), IRCDProto::IsNickValid(), ColonDelimitedParamMode::IsValid(), ChannelModeKey::IsValid(), ChannelModeFlood::IsValid(), LoadChannels(), LoadNicks(), Log::Log(), ltrim(), User::Mask(), Anope::Match(), ChanAccess::Matches(), MessageSource::MessageSource(), MyRedisService::MyRedisService(), MyManager::Notify(), NumberList::NumberList(), CommandOSSNLine::OnAdd(), CommandOSSQLine::OnAdd(), ChanServCore::OnCanSet(), OSDefcon::OnChannelModeAdd(), ENone::OnCheckAuthentication(), EOld::OnCheckAuthentication(), ESHA1::OnCheckAuthentication(), ESHA256::OnCheckAuthentication(), EMD5::OnCheckAuthentication(), EBCRYPT::OnCheckAuthentication(), CSAKick::OnCheckKick(), CommandOSSXLineBase::OnDel(), ModuleDNS::OnDnsRequest(), RewriteCommand::OnHelp(), CommandNSSetMessage::OnHelp(), MChanstats::OnPrivmsg(), BSKick::OnPrivmsg(), ModuleDNS::OnReload(), SubscriptionListener::OnResult(), LogInfo::OpenLogFiles(), LoadData::operator[](), Packet::Pack(), ParseCommandLineArguments(), RedisSocket::ParseReply(), Rewrite::Process(), CommandOSSXLineBase::ProcessList(), CommandCSAKick::ProcessList(), CommandOSAKill::ProcessList(), CommandCSAccess::ProcessList(), CommandOSException::ProcessList(), Plain::ProcessMessage(), LogInfo::ProcessMessage(), MyHTTPClient::Read(), CommandOSIgnore::RealMask(), rtrim(), Message::Privmsg::Run(), IRCDMessage005::Run(), IRCDMessageJoin::Run(), IRCDMessageCapab::Run(), IRCDMessageSASL::Run(), MyRedisService::Send(), InspIRCd12Proto::SendAkill(), InspIRCd12Proto::SendAkillDel(), UnrealIRCdProto::SendSASLMessage(), UnrealIRCdProto::SendSVSLogin(), TemplateFileServer::Serve(), Server::Server(), MyManager::SetIPPort(), User::SetModeInternal(), sockaddrs::sockaddrs(), MyRedisService::Subscribe(), Mail::Validate(), and ValidateNoSpaces().


The documentation for this class was generated from the following file: