#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) | |
| string & | operator= (char chr) |
| string & | operator= (const char *_str) |
| string & | operator= (const std::string &_str) |
| string & | operator= (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 |
| string & | operator+= (char chr) |
| string & | operator+= (const char *_str) |
| string & | operator+= (const std::string &_str) |
| string & | operator+= (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) |
| string & | append (const string &s) |
| string & | append (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) |
| string & | ltrim () |
| string & | rtrim () |
| string & | trim () |
| 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) |
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.
| typedef std::string::const_iterator Anope::string::const_iterator |
| typedef std::string::const_reverse_iterator Anope::string::const_reverse_iterator |
| typedef std::string::iterator Anope::string::iterator |
| typedef std::string::reverse_iterator Anope::string::reverse_iterator |
| typedef std::string::size_type Anope::string::size_type |
| Anope::string::string | ( | ) | [inline] |
| Anope::string::string | ( | const char * | _str, | |
| size_type | n | |||
| ) | [inline] |
| Anope::string::string | ( | const ci::string & | _str | ) | [inline] |
| Anope::string::string | ( | InputIterator | first, | |
| InputIterator | last | |||
| ) | [inline] |
| string& Anope::string::append | ( | const char * | s, | |
| size_t | n | |||
| ) | [inline] |
| iterator Anope::string::begin | ( | ) | [inline] |
Iterators to the string.
Definition at line 281 of file anope.h.
Referenced by Anope::B64Decode(), Anope::Decrypt(), DoOperType(), MyXMLRPCEvent::DoStats(), CommandOSStats::DoStatsUplink(), CommandHSRequest::Execute(), CommandHelp::Execute(), LogInfo::HasType(), UnrealExtBan::Matches(), InspIRCdExtBan::Matches(), ESHA256::OnCheckAuthentication(), ESHA1::OnCheckAuthentication(), EOld::OnCheckAuthentication(), ENone::OnCheckAuthentication(), EMD5::OnCheckAuthentication(), BotServCore::OnPrivmsg(), ParseCommandLineArguments(), ReadDatabase(), Message::Privmsg::Run(), IRCDMessageNJoin::Run(), IRCDMessageFJoin::Run(), IRCDMessageCapab::Run(), IRCDMessageSJoin::Run(), RunCommand(), sepstream::sepstream(), ServerConfig::ValidateIP(), and ServerConfig::ValidateNoSpaces().
| const_iterator Anope::string::begin | ( | ) | const [inline] |
| 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] |
| 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] |
Clears the string.
Definition at line 186 of file anope.h.
Referenced by CommandCSTopic::Append(), Anope::B64Decode(), Anope::B64Encode(), ModeManager::BuildModeStrings(), UserData::Clear(), convert(), CommandCSAKick::DoAdd(), CommandCSMode::DoLock(), Entry::Entry(), CommandOSOper::Execute(), CommandNSSuspend::Execute(), CommandHelp::Execute(), CommandCSSuspend::Execute(), CommandCSSetDescription::Execute(), CommandCSClone::Execute(), XLineManager::GenerateUID(), GetCommandLineArgument(), DefconConfig::GetDefConParam(), ChannelInfo::GetMLockAsString(), Channel::GetParam(), sepstream::GetToken(), ServerConfig::LoadConf(), my_b64_encode(), read_string(), Channel::RemoveMode(), NickAlias::RemoveVhost(), IRCDMessageNick::Run(), IRCDMessageUID::Run(), CommandNSSetGreet::Run(), CommandNSSetEmail::Run(), CommandBSInfo::send_bot_channels(), TemplateFileServer::Serve(), and User::SetModesInternal().
| 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] |
Definition at line 283 of file anope.h.
Referenced by Anope::B64Decode(), MySQLService::BuildInsert(), ServerConfig::ConfValueInteger(), CommandHSRequest::Execute(), sepstream::GetRemaining(), sepstream::GetToken(), Message::Privmsg::Run(), IRCDMessageCapab::Run(), sepstream::StreamEnd(), ServerConfig::ValidateIP(), and ServerConfig::ValidateNoSpaces().
| const_iterator Anope::string::end | ( | ) | const [inline] |
| bool Anope::string::equals_ci | ( | const std::string & | _str | ) | const [inline] |
| bool Anope::string::equals_ci | ( | const string & | _str | ) | const [inline] |
| 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] |
Definition at line 74 of file anope.h.
Referenced by StackerInfo::AddMode(), Channel::CheckModes(), CommandBSBadwords::DoAdd(), CommandBSBot::DoChange(), CommandOSConfig::Execute(), Server::Find(), ESHA256::OnCheckAuthentication(), ESHA1::OnCheckAuthentication(), EOld::OnCheckAuthentication(), ENone::OnCheckAuthentication(), EMD5::OnCheckAuthentication(), ENone::OnDecrypt(), NSResetPass::OnPreCommand(), BSKick::OnPrivmsg(), IRCDMessageNick::Run(), IRCDMessageCapab::Run(), IRCDMessageMetadata::Run(), IRCDMessageRSQuit::Run(), and Channel::SetMode().
| bool Anope::string::equals_cs | ( | const std::string & | _str | ) | const [inline] |
| bool Anope::string::equals_cs | ( | const string & | _str | ) | const [inline] |
Erases characters from the string.
Definition at line 154 of file anope.h.
Referenced by Anope::B64Decode(), SQLiteService::BuildInsert(), MySQLService::BuildInsert(), ModeManager::BuildModeStrings(), ServerConfig::ConfValueInteger(), Service::DelAlias(), MyXMLRPCEvent::DoChannel(), CommandCSFlags::DoModify(), DoOperType(), MyXMLRPCEvent::DoStats(), CommandOSStats::DoStatsUplink(), MyXMLRPCEvent::DoUser(), CommandHelp::Execute(), BufferedSocket::GetLine(), sepstream::GetToken(), LogInfo::HasType(), UnrealExtBan::Matches(), InspIRCdExtBan::Matches(), CommandOSSNLine::OnAdd(), BotServCore::OnPrivmsg(), BSKick::OnPrivmsg(), ParseCommandLineArguments(), ReadDatabase(), Message::Privmsg::Run(), IRCDMessageNJoin::Run(), IRCDMessageFJoin::Run(), IRCDMessageSJoin::Run(), RunCommand(), and MyHTTPClient::SendReply().
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().
Definition at line 193 of file anope.h.
References _string.
Referenced by CommandNSRegister::Execute(), CommandNSGroup::Execute(), Rewrite::Find(), CommandNSSASet::OnHelp(), CommandNSSet::OnHelp(), CommandCSSASet::OnHelp(), CommandCSSet::OnHelp(), CommandBSSet::OnHelp(), BSKick::OnPrivmsg(), and replace_all_ci().
| size_type Anope::string::find_first_not_of | ( | const string & | _str, | |
| size_type | pos = 0 | |||
| ) | const [inline] |
Definition at line 204 of file anope.h.
References _string.
Referenced by CommandOSAKill::DoAdd(), CommandOSException::DoDel(), CommandOSAKill::DoDel(), XOPBase::DoDel(), CommandCSAKick::DoDel(), CommandCSAccess::DoDel(), CommandBSBadwords::DoDelete(), XOPBase::DoList(), CommandBSBadwords::DoList(), Entry::Entry(), XLine::HasNickOrReal(), User::Mask(), CommandOSSQLine::OnAdd(), CommandOSSNLine::OnAdd(), CommandOSSXLineBase::OnDel(), CommandOSSXLineBase::ProcessList(), CommandOSException::ProcessList(), CommandOSAKill::ProcessList(), CommandCSAKick::ProcessList(), and CommandCSAccess::ProcessList().
Definition at line 201 of file anope.h.
References _string.
Referenced by XOPBase::DoAdd(), CommandCSAccess::DoAdd(), XOPBase::DoDel(), CommandCSAccess::DoDel(), CommandCSFlags::DoModify(), IRCDProto::IsHostValid(), ChanAccess::Matches(), BotServCore::OnPrivmsg(), and Anope::Process().
Definition at line 207 of file anope.h.
References _string.
Referenced by cidr::cidr(), and Entry::Entry().
| 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] |
Definition at line 217 of file anope.h.
Referenced by cidr::cidr(), CommandEntryMessage::DoDel(), CommandMSSet::DoLimit(), BotInfo::Join(), and IRCDMessageUID::Run().
| 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] |
| const string Anope::string::operator+ | ( | const char * | _str | ) | const [inline] |
| const string Anope::string::operator+ | ( | const std::string & | _str | ) | const [inline] |
| string& Anope::string::operator+= | ( | char | chr | ) | [inline] |
| string& Anope::string::operator+= | ( | const char * | _str | ) | [inline] |
| string& Anope::string::operator+= | ( | const std::string & | _str | ) | [inline] |
| bool Anope::string::operator< | ( | const string & | _str | ) | const [inline] |
| string& Anope::string::operator= | ( | char | chr | ) | [inline] |
| string& Anope::string::operator= | ( | const char * | _str | ) | [inline] |
| string& Anope::string::operator= | ( | const std::string & | _str | ) | [inline] |
| bool Anope::string::operator== | ( | const char * | _str | ) | const [inline] |
| bool Anope::string::operator== | ( | const std::string & | _str | ) | const [inline] |
| bool Anope::string::operator== | ( | const string & | _str | ) | const [inline] |
| char& Anope::string::operator[] | ( | size_type | n | ) | [inline] |
| const char& Anope::string::operator[] | ( | size_type | n | ) | const [inline] |
| void Anope::string::push_back | ( | char | c | ) | [inline] |
Add a char to the end of the string.
Definition at line 141 of file anope.h.
Referenced by LogInfo::AddType(), CommandCSTopic::Append(), ModeManager::BuildModeStrings(), SQLiteService::CreateTable(), MySQLService::CreateTable(), CommandNSAJoin::DoAdd(), CommandOSLogSearch::Execute(), ServerConfig::LoadConf(), MySQLResult::MySQLResult(), NSIdentifyLDAP::OnNickRegister(), ModuleDNSBL::OnReload(), WebCPanel::Confirm::OnRequest(), ListFormatter::Process(), IRCDMessageNJoin::Run(), IRCDMessageJoin::Run(), and CommandBSInfo::send_bot_channels().
| const_reverse_iterator Anope::string::rbegin | ( | ) | const [inline] |
| reverse_iterator Anope::string::rbegin | ( | ) | [inline] |
| reverse_iterator Anope::string::rend | ( | ) | [inline] |
| const_reverse_iterator Anope::string::rend | ( | ) | const [inline] |
Replace parts of the string.
Definition at line 222 of file anope.h.
References _string.
Referenced by InspIRCd12Proto::SendAkill(), and InspIRCd12Proto::SendAkillDel().
Definition at line 228 of file anope.h.
References find(), length(), and substr().
Referenced by ProxyConnect::Ban(), SQLiteService::BuildQuery(), MySQLService::BuildQuery(), ServerConfig::ConfValue(), CommandOSMode::Execute(), CommandBSAct::Execute(), DNSBLResolver::OnLookupComplete(), LDAPOper::OnNickIdentify(), IdentifyInterface::OnResult(), Anope::Process(), CommandNSSetEmail::SendConfirmMail(), SendMemoMail(), SendRegmail(), SendResetEmail(), and UnrealIRCdProto::SendSGLine().
| void Anope::string::resize | ( | size_type | n | ) | [inline] |
Definition at line 196 of file anope.h.
References _string.
Referenced by CommandOSAKill::DoAdd(), CommandBSBadwords::DoAdd(), GetAttribute(), GetFullProgDir(), sepstream::GetToken(), main(), and BSKick::OnPrivmsg().
| std::string& Anope::string::str | ( | ) | [inline] |
Definition at line 118 of file anope.h.
Referenced by append(), ServerConfig::ConfValueInteger(), convert(), CommandOSLogSearch::Execute(), CSLog::OnLog(), Anope::hash_cs::operator()(), Anope::hash_ci::operator()(), ReadDatabase(), ValueItem::Set(), and ValueItem::ValueItem().
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] |
Definition at line 176 of file anope.h.
Referenced by CommandOSDNS::DisplayPoolState(), CommandOSAKill::DoAdd(), CommandCSAKick::DoAdd(), CommandOSForbid::Execute(), CommandNSSuspend::Execute(), CommandCSSuspend::Execute(), BufferedSocket::GetLine(), Rewrite::Process(), and MyHTTPClient::Read().
| 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().
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const string & | _str | |||
| ) | [friend] |
| std::istream& operator>> | ( | std::istream & | is, | |
| string & | _str | |||
| ) | [friend] |
std::string Anope::string::_string [private] |
The actual string is stored in an std::string as it can be converted to ci::string, or a C-style string at any time.
Definition at line 34 of file anope.h.
Referenced by equals_ci(), equals_cs(), find(), find_ci(), find_first_not_of(), find_first_not_of_ci(), find_first_of(), find_first_of_ci(), find_last_not_of(), find_last_not_of_ci(), find_last_of(), find_last_of_ci(), operator+=(), operator<(), Anope::operator<<(), operator=(), operator==(), Anope::operator>>(), replace(), rfind(), and rfind_ci().
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().
1.7.1