]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/wordlist.h
f1a62e545acfce4dce2cc028c676e179c4f5eb62
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 #ifndef SQUID_WORDLIST_H
10 #define SQUID_WORDLIST_H
13 #include "profiler/Profiler.h"
16 /** A list of C-strings
18 * \deprecated use SBufList instead
22 MEMPROXY_CLASS(wordlist
);
31 /** Add a null-terminated c-string to a wordlist
33 * \deprecated use SBufList.push_back(SBuf(word)) instead
35 const char *wordlistAdd(wordlist
**, const char *);
37 /** Concatenate a wordlist
39 * \deprecated use SBufListContainerJoin(SBuf()) from SBufAlgos.h instead
41 void wordlistCat(const wordlist
*, MemBuf
*);
43 /** append a wordlist to another
45 * \deprecated use SBufList.merge(otherwordlist) instead
47 void wordlistAddWl(wordlist
**, wordlist
*);
49 /** Concatenate the words in a wordlist
51 * \deprecated use SBufListContainerJoin(SBuf()) from SBufAlgos.h instead
53 void wordlistJoin(wordlist
**, wordlist
**);
55 /// duplicate a wordlist
56 wordlist
*wordlistDup(const wordlist
*);
58 /// destroy a wordlist
59 void wordlistDestroy(wordlist
**);
61 /// convert a wordlist to a SBufList
62 SBufList
ToSBufList(wordlist
*);
64 #endif /* SQUID_WORDLIST_H */