]>
git.ipfire.org Git - thirdparty/squid.git/blob - lib/libTrie/Trie.cc
2 * Copyright (C) 1996-2017 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.
11 #include "TrieCharTransform.h"
18 Trie::Trie(TrieCharTransform
*aTransform
) : head(0) , transform(aTransform
)
28 Trie::add(char const *aString
, size_t theLength
, void *privatedata
)
34 if (find(aString
, theLength
))
37 return head
->add(aString
, theLength
, privatedata
, transform
);
42 return head
->add(aString
, theLength
, privatedata
, transform
);