StrList.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9/* DEBUG: section 66 HTTP Header Tools */
10
11#ifndef SQUID_STRLIST_H_
12#define SQUID_STRLIST_H_
13
14#include "sbuf/forward.h"
15
16#include <iterator>
17
18class String;
19
21void strListAdd(String * str, const char *item, char del);
22
24void strListAdd(String &str, const char *item, const size_t itemSize, const char del = ',');
25
28void strListAdd(String &str, const SBuf &item, char delimiter = ',');
29
30int strListIsMember(const String * str, const SBuf &item, char del);
31int strListIsSubstr(const String * list, const char *s, char del);
34int strListGetItem(const String * str, char del, const char **item, int *ilen, const char **pos);
38SBuf getListMember(const String &list, const char *key, const char delimiter);
39
40#endif /* SQUID_STRLIST_H_ */
41
void strListAdd(String *str, const char *item, char del)
Appends the given item to a delimiter-separated list in str.
Definition: StrList.cc:31
int strListGetItem(const String *str, char del, const char **item, int *ilen, const char **pos)
Definition: StrList.cc:86
SBuf getListMember(const String &list, const char *key, const char delimiter)
Definition: StrList.cc:144
int strListIsMember(const String *str, const SBuf &item, char del)
Definition: StrList.cc:46
int strListIsSubstr(const String *list, const char *s, char del)
Definition: StrList.cc:63
Definition: SBuf.h:94
const char * pos(char const *aString) const
Definition: String.cc:484
static const char * delimiter
Definition: ldap_backend.cc:65

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors