![](wordlist_8h__incl.png)
![](wordlist_8h__dep__incl.png)
Go to the source code of this file.
Classes | |
class | WordlistIterator |
minimal iterator for read-only traversal of wordlist objects More... | |
class | wordlist |
Functions | |
const char * | wordlistAdd (wordlist **, const char *) |
void | wordlistCat (const wordlist *, MemBuf *) |
void | wordlistDestroy (wordlist **) |
destroy a wordlist More... | |
char * | wordlistChopHead (wordlist **) |
Function Documentation
◆ wordlistAdd()
const char* wordlistAdd | ( | wordlist ** | , |
const char * | |||
) |
Add a null-terminated c-string to a wordlist
- Deprecated:
- use SBufList.push_back(SBuf(word)) instead
Definition at line 25 of file wordlist.cc.
References hash_link::key, and wordlist::next.
Referenced by Adaptation::Icap::Options::TransferList::add(), ftpReadType(), Ssl::Helper::Init(), Ssl::CertValidationHelper::Init(), netdbPeerName(), ACLExternal::parse(), parse_externalAclHelper(), and parse_wordlist().
◆ wordlistCat()
Concatenate a wordlist
- Deprecated:
- use SBufListContainerJoin(SBuf()) from sbuf/Algorithms.h instead
Definition at line 35 of file wordlist.cc.
References Packable::appendf().
Referenced by ErrorState::compileLegacyCode().
◆ wordlistChopHead()
char* wordlistChopHead | ( | wordlist ** | ) |
Remove and destroy the first element while preserving and returning its key
- Note
- the returned key must be freed by the caller using safe_free
- wl is altered so that it points to the second element
- Returns
- nullptr if pointed-to wordlist is nullptr.
Definition at line 42 of file wordlist.cc.
References wordlist::key, and wordlist::next.
Referenced by ftpTraverseDirectory(), and wordlistDestroy().
◆ wordlistDestroy()
void wordlistDestroy | ( | wordlist ** | ) |
Definition at line 16 of file wordlist.cc.
References safe_free, and wordlistChopHead().
Referenced by configDoConfigure(), ftpTrySlashHack(), Ftp::Client::handleControlReply(), Adaptation::ServiceGroup::parse(), Auth::SchemeConfig::parse(), Ftp::Client::parseControlReply(), Ftp::Client::sendPassive(), Ssl::Helper::Shutdown(), Ssl::CertValidationHelper::Shutdown(), Ftp::Relay::stopDirTracking(), Ftp::CtrlChannel::~CtrlChannel(), ErrorState::~ErrorState(), external_acl::~external_acl(), external_acl_data::~external_acl_data(), Ftp::Gateway::~Gateway(), Ftp::Relay::~Relay(), and Adaptation::Icap::Options::TransferList::~TransferList().
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products