Public Types | Public Member Functions | Static Public Attributes | Private Attributes | Friends

Anope::string Class Reference

#include <anope.h>

Inherited by ExtensibleItemClass< Anope::string >.

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
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 ()
stringrtrim ()
stringtrim ()
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)
string replace_all_ci (const string &_orig, const string &_repl)
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]

Definition at line 143 of file anope.h.

References append(), and str().

Referenced by append(), and BufferedSocket::ProcessRead().

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

Definition at line 144 of file anope.h.

References append().

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

Definition at line 282 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(), CommandOSDNS::AddServer(), OSSession::AddSession(), CommandOSDNS::AddZone(), DBPlain::BackupDatabase(), DBFlatFile::BackupDatabase(), BSKick::bot_kick(), BotInfo::BotInfo(), LDAPService::BuildMods(), XLineManager::CanAdd(), ChannelInfo::CheckKick(), ModuleManager::CleanupRuntimeDirectory(), User::Collide(), CommandNSSetPrivate::CommandNSSetPrivate(), CommandOSLogin::CommandOSLogin(), CommandOSLogout::CommandOSLogout(), CommandOSSXLineBase::CommandOSSXLineBase(), ServerConfig::ConfValueInteger(), MySQLService::Connect(), ModuleManager::DeleteModule(), CommandOSDNS::DelIP(), CommandOSDNS::DelServer(), CommandOSDNS::DelZone(), OSNews::DisplayNews(), dlerror(), CommandOSException::DoAdd(), CommandOSIgnore::DoAdd(), CommandOSAKill::DoAdd(), CommandNSCert::DoAdd(), CommandNSAJoin::DoAdd(), CommandNSAccess::DoAdd(), XOPBase::DoAdd(), CommandEntryMessage::DoAdd(), CommandCSAKick::DoAdd(), CommandCSAccess::DoAdd(), CommandBSBot::DoAdd(), CommandBSBadwords::DoAdd(), CommandCSEnforce::DoBans(), CommandBSBot::DoChange(), XOPBase::DoClear(), CommandCSFlags::DoClear(), CommandEntryMessage::DoClear(), CommandCSAKick::DoClear(), CommandCSAccess::DoClear(), CommandOSException::DoDel(), NewsBase::DoDel(), CommandOSIgnore::DoDel(), CommandOSAKill::DoDel(), CommandNSCert::DoDel(), CommandNSAJoin::DoDel(), CommandNSAccess::DoDel(), XOPBase::DoDel(), CommandEntryMessage::DoDel(), CommandCSAKick::DoDel(), CommandCSAccess::DoDel(), CommandBSBot::DoDel(), CommandBSBadwords::DoDelete(), CommandCSLevels::DoDisable(), CommandCSAKick::DoEnforce(), CommandMSSet::DoLimit(), CommandCSEnforce::DoLimit(), CommandOSSet::DoList(), CommandNSAJoin::DoList(), CommandNSAccess::DoList(), XOPBase::DoList(), CommandCSFlags::DoList(), CommandEntryMessage::DoList(), CommandCSAKick::DoList(), CommandCSLevels::DoList(), CommandCSAccess::DoList(), CommandBSBadwords::DoList(), CommandCSMode::DoLock(), CommandCSFlags::DoModify(), CommandMSSet::DoNotify(), MemoListCallback::DoRead(), CommandCSEnforce::DoRegOnly(), CommandCSLevels::DoReset(), CommandCSEnforce::DoRestricted(), CommandCSEnforce::DoSecureOps(), CommandNSCert::DoServAdminList(), CommandCSMode::DoSet(), CommandCSLevels::DoSet(), CommandCSEnforce::DoSSLOnly(), CommandOSStats::DoStatsUplink(), CSTop::DoTop(), CommandOSSession::DoView(), CommandCSAKick::DoView(), CommandCSAccess::DoView(), SQLiteService::Escape(), MySQLService::Escape(), CommandOSSVSPart::Execute(), CommandOSSVSJoin::Execute(), CommandOSSVSNick::Execute(), CommandOSStats::Execute(), CommandOSOper::Execute(), CommandOSOLine::Execute(), CommandOSNOOP::Execute(), CommandOSModUnLoad::Execute(), CommandOSModReLoad::Execute(), CommandOSModLoad::Execute(), CommandOSModList::Execute(), CommandOSModInfo::Execute(), CommandOSUMode::Execute(), CommandOSMode::Execute(), CommandOSLogSearch::Execute(), CommandOSUserList::Execute(), CommandOSChanList::Execute(), CommandOSKill::Execute(), CommandOSKick::Execute(), CommandOSForbid::Execute(), CommandOSConfig::Execute(), CommandOSChanKill::Execute(), CommandNSUpdate::Execute(), CommandNSUnSuspend::Execute(), CommandNSSuspend::Execute(), CommandNSStatus::Execute(), CommandNSSASetNoexpire::Execute(), CommandNSSASetPassword::Execute(), CommandNSSetPassword::Execute(), CommandNSResetPass::Execute(), CommandNSRegister::Execute(), CommandNSConfirm::Execute(), CommandNSRecover::Execute(), CommandNSLogout::Execute(), CommandNSList::Execute(), CommandNSInfo::Execute(), CommandNSIdentify::Execute(), CommandNSGList::Execute(), CommandNSUngroup::Execute(), CommandNSGroup::Execute(), CommandNSGetPass::Execute(), CommandNSGetEMail::Execute(), CommandNSDrop::Execute(), CommandNSAList::Execute(), CommandNSAccess::Execute(), CommandMSSend::Execute(), CommandMSRSend::Execute(), CommandMSList::Execute(), CommandMSInfo::Execute(), CommandMSIgnore::Execute(), CommandMSCheck::Execute(), CommandMSCancel::Execute(), CommandHSSetAll::Execute(), CommandHSSet::Execute(), CommandHSReject::Execute(), CommandHSActivate::Execute(), CommandHSOn::Execute(), CommandHSList::Execute(), CommandHSGroup::Execute(), CommandHSDelAll::Execute(), CommandHSDel::Execute(), CommandHelp::Execute(), CommandCSDown::Execute(), CommandCSUp::Execute(), CommandCSUnban::Execute(), CommandCSTopic::Execute(), CommandCSSync::Execute(), CommandCSUnSuspend::Execute(), CommandCSSuspend::Execute(), CommandCSStatus::Execute(), CommandCSSetMisc::Execute(), CommandCSSASetNoexpire::Execute(), CommandCSSetSuccessor::Execute(), CommandCSSetSignKick::Execute(), CommandCSSetSecureOps::Execute(), CommandCSSetSecureFounder::Execute(), CommandCSSetSecure::Execute(), CommandCSSetRestricted::Execute(), CommandCSSetPrivate::Execute(), CommandCSSetPersist::Execute(), CommandCSSetPeace::Execute(), CommandCSSetKeepTopic::Execute(), CommandCSSetFounder::Execute(), CommandCSSetDescription::Execute(), CommandCSSetBanType::Execute(), CommandCSSetAutoOp::Execute(), CommandSeen::Execute(), CommandCSRegister::Execute(), CommandCSLog::Execute(), CommandCSList::Execute(), CommandCSKick::Execute(), CommandCSInvite::Execute(), CommandCSInfo::Execute(), CommandCSGetKey::Execute(), CommandCSFlags::Execute(), CommandCSEnforce::Execute(), CommandCSDrop::Execute(), CommandCSClone::Execute(), CommandCSBan::Execute(), CommandBSSetPrivate::Execute(), CommandBSSetNoBot::Execute(), CommandBSSetGreet::Execute(), CommandBSSetFantasy::Execute(), CommandBSSetDontKickVoices::Execute(), CommandBSSetDontKickOps::Execute(), CommandBSKick::Execute(), CommandBSInfo::Execute(), CommandBSAct::Execute(), CommandBSSay::Execute(), CommandBSUnassign::Execute(), CommandBSAssign::Execute(), ValueItem::GetString(), Language::InitLanguages(), Anope::IsFile(), BotInfo::Join(), User::Kill(), LDAPService::LDAPService(), ModuleManager::LoadModule(), CommandCSTopic::Lock(), main(), cidr::mask(), TRERegex::Matches(), POSIXRegex::Matches(), PCRERegex::Matches(), Module::Module(), moduleCopyFile(), CommandOSSQLine::OnAdd(), CommandOSSNLine::OnAdd(), OSDefcon::OnChannelCreate(), ChanServCore::OnCheckModes(), CommandOSSXLineBase::OnClear(), HTTPProxyConnect::OnConnect(), CommandOSSXLineBase::OnDel(), CommandOSDNS::OnDepool(), RewriteCommand::OnHelp(), CommandOSSQLine::OnHelp(), CommandOSSNLine::OnHelp(), CommandOSSet::OnHelp(), CommandOSException::OnHelp(), CommandOSUserList::OnHelp(), CommandOSChanList::OnHelp(), CommandOSIgnore::OnHelp(), CommandOSForbid::OnHelp(), CommandOSAKill::OnHelp(), CommandNSSASetSecure::OnHelp(), CommandNSSetSecure::OnHelp(), CommandNSSASetPrivate::OnHelp(), CommandNSSetPrivate::OnHelp(), CommandNSSASetLanguage::OnHelp(), CommandNSSetLanguage::OnHelp(), CommandNSSASetKill::OnHelp(), CommandNSSetKill::OnHelp(), CommandNSSASetHide::OnHelp(), CommandNSSetHide::OnHelp(), CommandNSSASet::OnHelp(), CommandNSSet::OnHelp(), CommandNSRegister::OnHelp(), CommandNSList::OnHelp(), CommandNSCert::OnHelp(), CommandNSAccess::OnHelp(), CommandMSSet::OnHelp(), CommandCSVOP::OnHelp(), CommandCSSOP::OnHelp(), CommandCSHOP::OnHelp(), CommandCSAOP::OnHelp(), CommandCSQOP::OnHelp(), CommandCSSetSecure::OnHelp(), CommandCSSetPrivate::OnHelp(), CommandCSSetKeepTopic::OnHelp(), CommandCSSetFounder::OnHelp(), CommandCSSetDescription::OnHelp(), CommandCSSetBanType::OnHelp(), CommandCSSetAutoOp::OnHelp(), CommandCSSASet::OnHelp(), CommandCSSet::OnHelp(), CommandCSRegister::OnHelp(), CommandCSList::OnHelp(), CommandCSFlags::OnHelp(), CommandCSLevels::OnHelp(), CommandCSAccess::OnHelp(), CommandBSSetFantasy::OnHelp(), CommandBSSet::OnHelp(), CommandBSKick::OnHelp(), CommandBSBadwords::OnHelp(), OSForbid::OnJoinChannel(), DBFlatFile::OnLoadDatabase(), CSLog::OnLog(), NickServCore::OnNickIdentify(), HostServCore::OnNickIdentify(), LDAPOper::OnNickIdentify(), CommandOSDNS::OnPool(), NickServCore::OnPostHelp(), MemoServCore::OnPostHelp(), BotServCore::OnPostHelp(), OSForbid::OnPreCommand(), NSSet::OnPreCommand(), OperServCore::OnPreHelp(), NickServCore::OnPreHelp(), MemoServCore::OnPreHelp(), HostServCore::OnPreHelp(), GlobalCore::OnPreHelp(), ChanServCore::OnPreHelp(), BotServCore::OnPreHelp(), BotServCore::OnPrivmsg(), BSKick::OnPrivmsg(), SQLOperResult::OnResult(), SQLAuthenticationResult::OnResult(), OnIdentifyInterface::OnResult(), IdentifyInterface::OnResult(), DBPlain::OnSaveDatabase(), DBFlatFile::OnSaveDatabase(), DBFlatFile::OnSerializeTypeCreate(), Command::OnServHelp(), CommandOSDNS::OnSet(), NSRecoverRequest::OnSuccess(), Command::OnSyntaxError(), OSDefcon::OnUserConnect(), OSForbid::OnUserNickChange(), ConfigurationFile::Open(), MyPacket::PackName(), BotInfo::Part(), PCRERegex::PCRERegex(), POSIXRegex::POSIXRegex(), CommandOSSXLineBase::ProcessList(), CommandCSAKick::ProcessList(), CommandCSAccess::ProcessList(), LogInfo::ProcessMessage(), sockaddrs::pton(), SOCKS5ProxyConnect::Read(), ReadDatabase(), LDAPService::Reconnect(), remove_pidfile(), CommandSource::Reply(), req_send_memos(), Anope::Resolve(), rsend_notify(), Message::Whois::Run(), Message::Version::Run(), Message::Time::Run(), Message::Stats::Run(), Message::Privmsg::Run(), Message::MOTD::Run(), Mail::Message::Run(), IRCDMessageNick::Run(), IRCDMessageMetadata::Run(), CommandNSSetMisc::Run(), CommandNSSetSecure::Run(), CommandNSSetPrivate::Run(), CommandNSSetMessage::Run(), CommandNSSetLanguage::Run(), CommandNSSetKill::Run(), CommandNSSetHide::Run(), CommandNSSetGreet::Run(), CommandNSSetEmail::Run(), CommandNSSetDisplay::Run(), CommandNSSetChanstats::Run(), CommandNSSetAutoOp::Run(), RunCommand(), runDefCon(), SQLiteService::RunQuery(), MySQLService::RunQuery(), SocketIO::Send(), Mail::Send(), MyMemoServService::Send(), CommandOSDefcon::SendLevels(), UnrealIRCdProto::SendLogin(), HybridProto::SendLogin(), SendMemoMail(), User::SendMessage(), SendRegmail(), SendResetEmail(), Command::SendSyntax(), Server::Server(), ServerConfig::ServerConfig(), SQLiteService::SQLiteService(), SSLModule::SSLModule(), Language::Translate(), TRERegex::TRERegex(), Anope::Unhex(), CommandCSTopic::Unlock(), User::User(), MyNickServService::Validate(), BinarySocket::Write(), BufferedSocket::Write(), HTTPReply::Write(), write_pidfile(), 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 136 of file anope.h.

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

Definition at line 120 of file anope.h.

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

void Anope::string::clear (  )  [inline]
bool Anope::string::empty (  )  const [inline]

Returns if the string is empty or not.

Definition at line 125 of file anope.h.

Referenced by ModeManager::AddChannelMode(), CommandOSDNS::AddServer(), OSSession::AddSession(), ModeManager::AddUserMode(), XLineManager::AddXLine(), CommandCSTopic::Append(), BotInfo::BotInfo(), ModeManager::BuildModeStrings(), CommandCSMode::CanSet(), User::ChangeNick(), Channel::Channel(), ChannelInfo::ChannelInfo(), ChannelInfo::CheckKick(), NSMaxEmail::CheckLimitReached(), Channel::CheckModes(), CommandNSInfo::CheckOptStr(), CommandCSInfo::CheckOptStr(), CommandBSInfo::CheckOptStr(), XLineManager::Clear(), ServerConfig::ConfValue(), ServerConfig::ConfValueInteger(), Uplink::Connect(), NSMaxEmail::CountEmail(), MChanstats::CountSmileys(), defconReverseModes(), ModuleManager::DeleteModule(), CommandOSDNS::DelServer(), XLineManager::DelXLine(), XOPChanAccess::DetermineLevel(), CommandOSDNS::DisplayPoolState(), dlerror(), CommandOSException::DoAdd(), NewsBase::DoAdd(), CommandOSIgnore::DoAdd(), CommandOSAKill::DoAdd(), CommandNSCert::DoAdd(), CommandNSAccess::DoAdd(), XOPBase::DoAdd(), CommandCSAKick::DoAdd(), CommandBSBadwords::DoAdd(), CommandBSBot::DoChange(), MyXMLRPCEvent::DoChannel(), MyXMLRPCEvent::DoCheckAuthentication(), CommandCSMode::DoClear(), MyXMLRPCEvent::DoCommand(), DoCommandGroups(), CommandOSException::DoDel(), NewsBase::DoDel(), CommandOSIgnore::DoDel(), CommandOSAKill::DoDel(), CommandNSCert::DoDel(), CommandNSAccess::DoDel(), XOPBase::DoDel(), CommandBSBot::DoDel(), CommandBSBadwords::DoDelete(), CommandMSSet::DoLimit(), CommandNSAccess::DoList(), CommandHSWaiting::DoList(), XOPBase::DoList(), CommandCSFlags::DoList(), CommandBSBadwords::DoList(), CommandCSMode::DoLock(), CommandCSFlags::DoModify(), CommandOSException::DoMove(), CommandMSSet::DoNotify(), CommandOSSet::DoSetDebug(), CommandOSSet::DoSetNoExpire(), CommandOSSet::DoSetReadOnly(), CommandOSSet::DoSetSuperAdmin(), MyXMLRPCEvent::DoStats(), CommandOSStats::DoStatsUplink(), Anope::DoTime(), MyXMLRPCEvent::DoUser(), CommandOSStats::Execute(), CommandOSOper::Execute(), CommandOSModList::Execute(), CommandOSModInfo::Execute(), CommandOSMode::Execute(), CommandOSLogout::Execute(), CommandOSLogin::Execute(), CommandOSUserList::Execute(), CommandOSChanList::Execute(), CommandOSKill::Execute(), CommandOSJupe::Execute(), CommandOSForbid::Execute(), CommandOSDefcon::Execute(), CommandOSConfig::Execute(), CommandOSChanKill::Execute(), CommandNSSuspend::Execute(), CommandNSRegister::Execute(), CommandNSRecover::Execute(), CommandNSLogout::Execute(), CommandNSList::Execute(), CommandNSInfo::Execute(), CommandNSGList::Execute(), CommandNSUngroup::Execute(), CommandNSGroup::Execute(), CommandNSGetEMail::Execute(), CommandNSDrop::Execute(), CommandNSCert::Execute(), CommandNSAJoin::Execute(), CommandNSAccess::Execute(), CommandMSRead::Execute(), CommandMSList::Execute(), CommandMSInfo::Execute(), CommandMSIgnore::Execute(), CommandMSDel::Execute(), CommandHSSetAll::Execute(), CommandHSSet::Execute(), CommandHSReject::Execute(), CommandHSActivate::Execute(), CommandHSRequest::Execute(), CommandHSOn::Execute(), CommandHSList::Execute(), CommandHSGroup::Execute(), CommandHelp::Execute(), CommandCSSuspend::Execute(), CommandCSSetPersist::Execute(), CommandCSRegister::Execute(), CommandCSInfo::Execute(), CommandCSClone::Execute(), CommandCSAKick::Execute(), CommandCSLevels::Execute(), CommandCSAccess::Execute(), CommandBSKick::Execute(), CommandBSInfo::Execute(), CommandBSAct::Execute(), CommandBSBadwords::Execute(), Extensible::ExtendMetadata(), Rewrite::Find(), BotInfo::GenerateUID(), User::GetDisplayedHost(), ValueItem::GetInteger(), MemoInfo::GetMemoInfo(), ChannelInfo::GetMLock(), ChannelInfo::GetMLockAsString(), Panel::GetNickFromSession(), Server::GetSID(), User::GetUID(), User::GetVIdent(), Channel::HasMode(), XOPChanAccess::HasPriv(), NickAlias::HasVhost(), Anope::Init(), XLine::InitRegex(), InspIRCdProto::inspircd_cmd_chghost(), InspIRCdProto::inspircd_cmd_chgident(), IRCDProto::IsChannelValid(), IRCDProto::IsHostValid(), IRCDProto::IsIdentValid(), IRCDProto::IsNickValid(), NickCore::IsOnAccess(), XLine::IsRegex(), ChannelModeKey::IsValid(), User::Kill(), ServerConfig::LoadConf(), ModuleManager::LoadModule(), Rewrite::Match(), Entry::Matches(), MessageSource::MessageSource(), ModuleWebCPanel::ModuleWebCPanel(), NickAlias::NickAlias(), NickCore::NickCore(), NumberList::NumberList(), StatusUpdate::OnAccessAdd(), StatusUpdate::OnAccessDel(), CommandOSSQLine::OnAdd(), CommandOSSNLine::OnAdd(), BSAutoAssign::OnChanRegistered(), CSAKick::OnCheckKick(), ChanServCore::OnCheckModes(), CommandOSSXLineBase::OnDel(), UplinkSocket::OnError(), RewriteCommand::OnHelp(), CommandOSSQLine::OnHelp(), CommandOSSNLine::OnHelp(), CommandOSUserList::OnHelp(), CommandOSChanList::OnHelp(), CommandOSIgnore::OnHelp(), CommandOSForbid::OnHelp(), CommandOSAKill::OnHelp(), CommandNSList::OnHelp(), CommandCSList::OnHelp(), OSForbid::OnJoinChannel(), GlobalCore::OnNewServer(), NickServCore::OnNickIdentify(), HostServCore::OnNickIdentify(), LDAPOper::OnNickIdentify(), NSIdentifyLDAP::OnNickIdentify(), NSIdentifyLDAP::OnNickRegister(), ModuleSQL::OnNotify(), ModuleLDAP::OnNotify(), BotServCore::OnPostHelp(), ModuleSQLAuthentication::OnPreCommand(), NSIdentifyLDAP::OnPreCommand(), BotServCore::OnPreHelp(), BotServCore::OnPrivmsg(), BSKick::OnPrivmsg(), ModuleRewrite::OnReload(), ModuleProxyScan::OnReload(), NSIdentifyLDAP::OnReload(), HTTPD::OnReload(), ModuleDNSBL::OnReload(), OSDefcon::OnReload(), NSSetMisc::OnReload(), CSSetMisc::OnReload(), CSFlags::OnReload(), CSAccess::OnReload(), WebCPanel::MemoServ::Memos::OnRequest(), WebCPanel::Index::OnRequest(), WebCPanel::HostServ::Request::OnRequest(), WebCPanel::Confirm::OnRequest(), WebCPanel::ChanServ::Set::OnRequest(), WebCPanel::NickServ::Info::OnRequest(), WebCPanel::ChanServ::Akick::OnRequest(), WebCPanel::ChanServ::Access::OnRequest(), SQLOperResult::OnResult(), SQLAuthenticationResult::OnResult(), DBPlain::OnSaveDatabase(), DBMySQL::OnSerializeCheck(), RewriteCommand::OnServHelp(), NickServCore::OnUserConnect(), ModuleProxyScan::OnUserConnect(), OSDefcon::OnUserConnect(), OSForbid::OnUserNickChange(), SQL::Result::operator bool(), ParseCommandLineArguments(), BotInfo::Part(), Anope::Process(), ListFormatter::Process(), CommandOSSXLineBase::ProcessList(), CommandOSException::ProcessList(), CommandOSAKill::ProcessList(), CommandCSAKick::ProcessList(), CommandCSAccess::ProcessList(), BufferedSocket::ProcessWrite(), ProxyCallbackListener::ProxyCallbackClient::ProcessWrite(), ProtoHybrid::ProtoHybrid(), ProtoInspIRCd::ProtoInspIRCd(), ServerConfig::Read(), ReadDatabase(), Channel::RemoveModeInternal(), req_send_memos(), ChannelInfo::RestoreTopic(), Message::Quit::Run(), Message::Part::Run(), IRCDMessageSASL::Run(), IRCDMessageJoin::Run(), IRCDMessageEncap::Run(), IRCDMessageCapab::Run(), IRCDMessageFJoin::Run(), IRCDMessageSJoin::Run(), SQLiteService::Run(), CommandNSSetMisc::Run(), CommandNSSetGreet::Run(), CommandNSSetEmail::Run(), RunCommand(), runDefCon(), CSTop::RunQuery(), CSStats::RunQuery(), DBMySQL::RunQueryResult(), Mail::Send(), CommandBSInfo::send_bot_channels(), HybridProto::SendChannel(), BahamutIRCdProto::SendChannel(), UnrealIRCdProto::SendConnect(), IRCDProto::SendKickInternal(), CommandOSDefcon::SendLevels(), IRCDProto::SendPartInternal(), IRCDProto::SendPing(), IRCDProto::SendPong(), IRCDProto::SendQuitInternal(), UnrealIRCdProto::SendServer(), TemplateFileServer::Serve(), Server::Server(), ServerConfig::ServerConfig(), CommandCSTopic::Set(), User::SetCloakedHost(), User::SetDisplayedHost(), MyManager::SetIPPort(), ChannelInfo::SetMLock(), Channel::SetModeInternal(), User::SetModesInternal(), User::SetRealname(), Message::Join::SJoin(), sockaddrs::sockaddrs(), DefConTimeout::Tick(), Servers::TS6_SID_Retrieve(), MyPacket::UnpackName(), User::UpdateHost(), User::User(), Mail::Validate(), ValidateBotServ(), ValidateChanServ(), ValidateGlobalOnCycle(), ServerConfig::ValidateHostname(), ServerConfig::ValidateIP(), ValidateMail(), ValidateNickServ(), ValidateNotEmpty(), ValidateOperServ(), Anope::VersionBuildString(), BotInfo::~BotInfo(), ConfigItems::~ConfigItems(), UplinkSocket::Message::~Message(), and User::~User().

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

Definition at line 284 of file anope.h.

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_ci ( const char *  _str  )  const [inline]

Definition at line 78 of file anope.h.

Referenced by XLineManager::CanAdd(), User::ChangeNick(), ServerConfig::ConfValueBool(), NSMaxEmail::CountEmail(), CommandOSException::DoAdd(), XOPBase::DoAdd(), CommandCSAKick::DoAdd(), CommandCSAccess::DoAdd(), CommandBSBadwords::DoAdd(), CommandBSBot::DoChange(), CommandCSMode::DoClear(), CommandOSException::DoDel(), NewsBase::DoDel(), XOPBase::DoDel(), CommandCSAKick::DoDel(), CommandCSAccess::DoDel(), CommandBSBadwords::DoDelete(), CommandCSLevels::DoDisable(), CommandMSSet::DoLimit(), CommandCSMode::DoLock(), CommandCSFlags::DoModify(), NewsBase::DoNews(), CommandMSSet::DoNotify(), DoServices(), CommandCSLevels::DoSet(), CommandOSSet::DoSetDebug(), CommandOSSet::DoSetNoExpire(), CommandOSSet::DoSetReadOnly(), CommandOSSet::DoSetSuperAdmin(), XOPBase::DoXop(), CommandOSSXLineBase::Execute(), CommandOSSVSNick::Execute(), CommandOSStats::Execute(), CommandOSSet::Execute(), CommandOSException::Execute(), CommandOSSession::Execute(), CommandOSOper::Execute(), CommandOSNOOP::Execute(), CommandOSModList::Execute(), CommandOSMode::Execute(), CommandOSUserList::Execute(), CommandOSChanList::Execute(), CommandOSIgnore::Execute(), CommandOSForbid::Execute(), CommandOSConfig::Execute(), CommandOSAKill::Execute(), CommandNSSASetNoexpire::Execute(), CommandNSSASetPassword::Execute(), CommandNSResend::Execute(), CommandNSRegister::Execute(), CommandNSLogout::Execute(), CommandNSList::Execute(), CommandNSUngroup::Execute(), CommandNSGetEMail::Execute(), CommandNSCert::Execute(), CommandNSAccess::Execute(), CommandMSSet::Execute(), CommandMSRead::Execute(), CommandMSList::Execute(), CommandMSIgnore::Execute(), CommandMSDel::Execute(), CommandCSTopic::Execute(), CommandSeen::Execute(), CommandCSMode::Execute(), CommandCSLog::Execute(), CommandCSList::Execute(), CommandCSFlags::Execute(), CommandCSEnforce::Execute(), CommandCSClone::Execute(), CommandCSAKick::Execute(), CommandCSLevels::Execute(), CommandCSAccess::Execute(), CommandBSSetPrivate::Execute(), CommandBSSetNoBot::Execute(), CommandBSSetGreet::Execute(), CommandBSSetFantasy::Execute(), CommandBSKick::Execute(), CommandBSBot::Execute(), CommandBSBadwords::Execute(), Server::Find(), Oper::Find(), Rewrite::Find(), ModuleManager::FindModule(), PrivilegeManager::FindPrivilege(), XLineManager::HasEntry(), MemoInfo::HasIgnore(), User::Identify(), Rewrite::Match(), UnrealExtBan::Matches(), InspIRCdExtBan::Matches(), NSRegister::NSRegister(), OnDatabaseRead(), OnDatabaseReadMetadata(), CommandNSResend::OnHelp(), CSLog::OnLog(), BSKick::OnPrivmsg(), ModuleProxyScan::OnReload(), OSDefcon::OnReload(), CSAccess::OnReload(), OnIdentifyInterface::OnResult(), CommandNSResend::OnServHelp(), Anope::compare::operator()(), CommandOSSXLineBase::ProcessList(), CommandOSAKill::ProcessList(), CommandNSSetSecure::Run(), CommandNSSetPrivate::Run(), CommandNSSetMessage::Run(), CommandNSSetKill::Run(), CommandNSSetHide::Run(), CommandNSSetChanstats::Run(), CommandNSSetAutoOp::Run(), ServerConfig::ServerConfig(), ValidateBotServ(), ValidateChanServ(), ValidateEmailReg(), ServerConfig::ValidateHostname(), ValidateLimitSessions(), ValidateMail(), ValidateNickServ(), ValidateOperServ(), and NickAlias::~NickAlias().

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 155 of file anope.h.

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

Definition at line 156 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 191 of file anope.h.

References _string.

Referenced by OSSession::AddSession(), Anope::B64Decode(), Log::BuildPrefix(), ChannelMode::CanSet(), cidr::cidr(), MChanstats::CountSmileys(), MChanstats::CountWords(), Anope::Decrypt(), CommandOSException::DoAdd(), CommandOSAKill::DoAdd(), CommandCSAKick::DoAdd(), CommandCSFlags::DoList(), DoServices(), Entry::Entry(), CommandOSJupe::Execute(), CommandNSAccess::Execute(), CommandHSSetAll::Execute(), CommandHSSet::Execute(), CommandHSRequest::Execute(), CommandHSList::Execute(), CommandCSLog::Execute(), XLine::GetHost(), ESHA256::GetIVFromPass(), BufferedSocket::GetLine(), XLine::GetNick(), XLine::GetReal(), XLine::GetUser(), IRCDProto::IsNickValid(), ChannelModeKey::IsValid(), Log::Log(), User::Mask(), UnrealExtBan::Matches(), InspIRCdExtBan::Matches(), MessageSource::MessageSource(), NumberList::NumberList(), CommandOSSNLine::OnAdd(), OSDefcon::OnChannelModeAdd(), ESHA256::OnCheckAuthentication(), ESHA1::OnCheckAuthentication(), EOld::OnCheckAuthentication(), ENone::OnCheckAuthentication(), EMD5::OnCheckAuthentication(), CSAKick::OnCheckKick(), IRCDMessageSASL::UnrealSASLIdentifyRequest::OnFail(), RewriteCommand::OnHelp(), DNSBLResolver::OnLookupComplete(), BotServCore::OnPrivmsg(), BSKick::OnPrivmsg(), IRCDMessageSASL::UnrealSASLIdentifyRequest::OnSuccess(), MyPacket::Pack(), ParseCommandLineArguments(), Anope::Process(), Rewrite::Process(), MyHTTPClient::Read(), replace_all_cs(), Message::Privmsg::Run(), IRCDMessageSASL::Run(), IRCDMessageEncap::Run(), IRCDMessageCapab::Run(), TemplateFileServer::Serve(), MyManager::SetIPPort(), sockaddrs::sockaddrs(), and Mail::Validate().

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

Definition at line 192 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 194 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 205 of file anope.h.

References _string.

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 202 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 210 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 211 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 207 of file anope.h.

References _string.

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

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

Definition at line 208 of file anope.h.

References _string.

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

Determine if string consists of only numbers.

Definition at line 216 of file anope.h.

Referenced by CommandMSRead::Execute(), ValueItem::GetInteger(), Anope::Init(), and OnDatabaseReadMetadata().

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

Returns the string's length.

Definition at line 130 of file anope.h.

Referenced by Anope::B64Decode(), Anope::B64Encode(), SQLiteService::BuildInsert(), ModeManager::BuildModeStrings(), defconReverseModes(), CommandOSAKill::DoAdd(), CommandCSAKick::DoAdd(), CommandBSBot::DoAdd(), CommandBSBot::DoChange(), MyXMLRPCEvent::DoChannel(), CommandCSMode::DoClear(), CommandCSFlags::DoList(), CommandCSMode::DoLock(), CommandCSFlags::DoModify(), DoOperType(), DoServices(), MyXMLRPCEvent::DoUser(), MySQLService::Escape(), HTTPUtils::Escape(), CommandOSSVSNick::Execute(), CommandOSOper::Execute(), CommandOSMode::Execute(), CommandOSChanKill::Execute(), CommandNSSetPassword::Execute(), CommandNSRegister::Execute(), CommandNSGroup::Execute(), CommandHSSetAll::Execute(), CommandHSSet::Execute(), CommandHSRequest::Execute(), CommandHSList::Execute(), CommandHelp::Execute(), CommandSeen::Execute(), CommandCSLog::Execute(), CommandCSKick::Execute(), CommandCSBan::Execute(), GetFullProgDir(), ESHA256::GetIVFromPass(), ChannelInfo::GetMLockAsString(), sepstream::GetToken(), Anope::Hex(), XLine::InitRegex(), IRCDProto::IsChannelValid(), IRCDProto::IsHostValid(), IRCDProto::IsIdentValid(), IRCDProto::IsNickValid(), XLine::IsRegex(), ServerConfig::LoadConf(), lower(), main(), Anope::Match(), PCRERegex::Matches(), my_b64_encode(), Anope::NormalizeBuffer(), CommandOSSQLine::OnAdd(), CommandOSSNLine::OnAdd(), BotServCore::OnPrivmsg(), BSKick::OnPrivmsg(), InfoFormatter::operator[](), MyPacket::PackName(), OSDefcon::ParseModeString(), Rewrite::Process(), SOCKS5ProxyConnect::Read(), MyHTTPClient::Read(), replace_all_ci(), replace_all_cs(), Message::Privmsg::Run(), IRCDMessageCapab::Run(), SQLiteService::RunQuery(), MySQLService::RunQuery(), SocketIO::Send(), CommandBSInfo::send_bot_channels(), MyHTTPClient::SendReply(), TemplateFileServer::Serve(), Server::Server(), User::SetModes(), Channel::SetModes(), User::SetModesInternal(), Channel::SetModesInternal(), SSLModule::SSLModule(), Servers::TS6_SID_Retrieve(), Servers::TS6_UID_Retrieve(), Anope::Unhex(), ModeManager::UpdateDefaultMLock(), upper(), HTTPUtils::URLDecode(), HTTPUtils::URLEncode(), Mail::Validate(), ServerConfig::ValidateHostname(), ValidateNickServ(), BinarySocket::Write(), BufferedSocket::Write(), HTTPReply::Write(), and BufferedSocket::WriteBufferLen().

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

Get the string in lowercase.

Definition at line 254 of file anope.h.

References Anope::casemap, and length().

Referenced by Anope::hash_ci::operator()(), and Anope::Process().

string& Anope::string::ltrim (  )  [inline]

Trim leading and trailing white spaces from the string.

Definition at line 162 of file anope.h.

Referenced by BufferedSocket::GetLine().

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==().

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==().

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= ( const string _str  )  [inline]

Definition at line 65 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.

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 293 of file anope.h.

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

Definition at line 294 of file anope.h.

void Anope::string::push_back ( char  c  )  [inline]
const_reverse_iterator Anope::string::rbegin (  )  const [inline]

Definition at line 286 of file anope.h.

reverse_iterator Anope::string::rbegin (  )  [inline]

Definition at line 285 of file anope.h.

reverse_iterator Anope::string::rend (  )  [inline]

Definition at line 287 of file anope.h.

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

Definition at line 288 of file anope.h.

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

Definition at line 223 of file anope.h.

References _string.

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

Definition at line 225 of file anope.h.

References _string.

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

Definition at line 227 of file anope.h.

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

Definition at line 226 of file anope.h.

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

Definition at line 224 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 222 of file anope.h.

References _string.

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

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

Definition at line 239 of file anope.h.

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

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

Resizes the string content to n characters.

Definition at line 149 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 197 of file anope.h.

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

Definition at line 199 of file anope.h.

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

Definition at line 198 of file anope.h.

References _string.

string& Anope::string::rtrim (  )  [inline]

Definition at line 169 of file anope.h.

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

Definition at line 119 of file anope.h.

std::string& Anope::string::str (  )  [inline]
string Anope::string::substr ( size_type  pos = 0,
size_type  n = npos 
) const [inline]

Get a substring of the string.

Definition at line 276 of file anope.h.

Referenced by Log::BuildPrefix(), cidr::cidr(), ServerConfig::ConfValueInteger(), CommandOSAKill::DoAdd(), CommandCSAKick::DoAdd(), CommandBSBadwords::DoAdd(), DoServices(), Entry::Entry(), CommandOSSVSNick::Execute(), CommandNSRegister::Execute(), CommandNSList::Execute(), CommandNSGroup::Execute(), CommandHSSetAll::Execute(), CommandHSSet::Execute(), CommandHSRequest::Execute(), CommandHSList::Execute(), CommandHelp::Execute(), CommandCSLog::Execute(), CommandCSList::Execute(), CommandCSKick::Execute(), CommandCSBan::Execute(), CommandCSLevels::Execute(), GetAttribute(), GetFullProgDir(), XLine::GetHost(), ESHA256::GetIVFromPass(), BufferedSocket::GetLine(), XLine::GetNick(), XLine::GetReal(), XLine::GetUser(), XLine::InitRegex(), ChannelModeFlood::IsValid(), Log::Log(), main(), User::Mask(), Anope::Match(), UnrealExtBan::Matches(), InspIRCdExtBan::Matches(), NumberList::NumberList(), CommandOSSQLine::OnAdd(), CommandOSSNLine::OnAdd(), IRCDMessageSASL::UnrealSASLIdentifyRequest::OnFail(), RewriteCommand::OnHelp(), BotServCore::OnPrivmsg(), BSKick::OnPrivmsg(), IRCDMessageSASL::UnrealSASLIdentifyRequest::OnSuccess(), ParseCommandLineArguments(), Anope::Process(), Rewrite::Process(), BufferedSocket::ProcessWrite(), MyHTTPClient::Read(), replace_all_ci(), replace_all_cs(), Message::Privmsg::Run(), IRCDMessageSASL::Run(), IRCDMessageJoin::Run(), IRCDMessage005::Run(), IRCDMessageEncap::Run(), IRCDMessageCapab::Run(), IRCDMessageMetadata::Run(), TemplateFileServer::Serve(), HTTPUtils::URLDecode(), and Mail::Validate().

string& Anope::string::trim (  )  [inline]
string Anope::string::upper (  )  const [inline]

Get the string in uppercase.

Definition at line 265 of file anope.h.

References Anope::casemap, and length().

Referenced by Log::BuildPrefix(), CommandCSMode::DoClear(), NSRecoverRequest::OnSuccess(), and ServerConfig::ServerConfig().


Friends And Related Function Documentation

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

Definition at line 307 of file anope.h.

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

Definition at line 308 of file anope.h.

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

Definition at line 309 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 303 of file anope.h.

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

Definition at line 305 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 OSSession::AddSession(), Anope::B64Decode(), Log::BuildPrefix(), ChannelMode::CanSet(), cidr::cidr(), ServerConfig::ConfValue(), MChanstats::CountSmileys(), MChanstats::CountWords(), Anope::Decrypt(), CommandOSException::DoAdd(), CommandOSAKill::DoAdd(), XOPBase::DoAdd(), CommandCSAKick::DoAdd(), CommandCSAccess::DoAdd(), CommandBSBadwords::DoAdd(), CommandOSException::DoDel(), CommandOSAKill::DoDel(), XOPBase::DoDel(), CommandCSAKick::DoDel(), CommandCSAccess::DoDel(), CommandBSBadwords::DoDelete(), XOPBase::DoList(), CommandCSFlags::DoList(), CommandBSBadwords::DoList(), CommandCSFlags::DoModify(), DoServices(), CommandCSMode::DoSet(), Entry::Entry(), CommandOSJupe::Execute(), CommandNSRegister::Execute(), CommandNSGroup::Execute(), CommandNSAccess::Execute(), CommandHSSetAll::Execute(), CommandHSSet::Execute(), CommandHSRequest::Execute(), CommandHSList::Execute(), CommandCSLog::Execute(), MySessionService::FindSession(), GetAttribute(), XLine::GetHost(), BufferedSocket::GetLine(), XLine::GetNick(), XLine::GetReal(), XLine::GetUser(), XLine::HasNickOrReal(), User::Identify(), UnrealIRCdProto::IsChannelValid(), IRCDProto::IsHostValid(), IRCDProto::IsNickValid(), ChannelModeKey::IsValid(), ChannelModeFlood::IsValid(), Log::Log(), User::Mask(), Anope::Match(), ChanAccess::Matches(), MessageSource::MessageSource(), NumberList::NumberList(), CommandOSSQLine::OnAdd(), CommandOSSNLine::OnAdd(), OSDefcon::OnChannelModeAdd(), ESHA256::OnCheckAuthentication(), ESHA1::OnCheckAuthentication(), EOld::OnCheckAuthentication(), ENone::OnCheckAuthentication(), EMD5::OnCheckAuthentication(), CSAKick::OnCheckKick(), CommandOSSXLineBase::OnDel(), ModuleDNS::OnDnsRequest(), IRCDMessageSASL::UnrealSASLIdentifyRequest::OnFail(), RewriteCommand::OnHelp(), MChanstats::OnPrivmsg(), BSKick::OnPrivmsg(), ModuleDNS::OnReload(), IRCDMessageSASL::UnrealSASLIdentifyRequest::OnSuccess(), LoadData::operator[](), MyPacket::Pack(), ParseCommandLineArguments(), Anope::Process(), Rewrite::Process(), CommandOSSXLineBase::ProcessList(), CommandOSException::ProcessList(), CommandOSAKill::ProcessList(), CommandCSAKick::ProcessList(), CommandCSAccess::ProcessList(), MyHTTPClient::Read(), Message::Privmsg::Run(), IRCDMessageSASL::Run(), IRCDMessageJoin::Run(), IRCDMessage005::Run(), IRCDMessageEncap::Run(), IRCDMessageCapab::Run(), InspIRCd12Proto::SendAkill(), InspIRCd12Proto::SendAkillDel(), TemplateFileServer::Serve(), Server::Server(), MyManager::SetIPPort(), sockaddrs::sockaddrs(), and Mail::Validate().


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