wordlist.cc File Reference
#include "squid.h"
#include "MemBuf.h"
#include "wordlist.h"
Include dependency graph for wordlist.cc:

Go to the source code of this file.

Functions

void wordlistDestroy (wordlist **list)
 destroy a wordlist More...
 
const char * wordlistAdd (wordlist **list, const char *key)
 
void wordlistCat (const wordlist *w, MemBuf *mb)
 
SBufList ToSBufList (wordlist *wl)
 convert a wordlist to a SBufList More...
 
char * wordlistChopHead (wordlist **wl)
 

Function Documentation

◆ ToSBufList()

SBufList ToSBufList ( wordlist wl)

Definition at line 44 of file wordlist.cc.

References wordlist::key, wordlist::next, and NULL.

◆ 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 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()

void wordlistCat ( const wordlist ,
MemBuf  
)

Concatenate a wordlist

Deprecated:
use SBufListContainerJoin(SBuf()) from sbuf/Algorithms.h instead

Definition at line 35 of file wordlist.cc.

References Packable::appendf(), wordlist::key, wordlist::next, and NULL.

Referenced by ErrorState::Convert(), and ErrorState::Dump().

◆ 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 55 of file wordlist.cc.

References wordlist::key, and wordlist::next.

Referenced by ftpTraverseDirectory(), and wordlistDestroy().

◆ wordlistDestroy()

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors