StrList.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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_SRC_STRLIST_H
12 #define SQUID_SRC_STRLIST_H
13 
14 #include "sbuf/forward.h"
15 
16 #include <iterator>
17 
18 class String;
19 
21 void strListAdd(String * str, const char *item, char del);
22 
24 void strListAdd(String &str, const char *item, const size_t itemSize, const char del = ',');
25 
28 void strListAdd(String &str, const SBuf &item, char delimiter = ',');
29 
30 int strListIsMember(const String * str, const SBuf &item, char del);
31 int strListIsSubstr(const String * list, const char *s, char del);
34 int strListGetItem(const String * str, char del, const char **item, int *ilen, const char **pos);
38 SBuf getListMember(const String &list, const char *key, const char delimiter);
39 
40 #endif /* SQUID_SRC_STRLIST_H */
41 
SBuf getListMember(const String &list, const char *key, const char delimiter)
Definition: StrList.cc:136
Definition: SBuf.h:93
int strListGetItem(const String *str, char del, const char **item, int *ilen, const char **pos)
Definition: StrList.cc:78
static const char * delimiter
Definition: ldap_backend.cc:65
int strListIsMember(const String *str, const SBuf &item, char del)
Definition: StrList.cc:46
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 strListIsSubstr(const String *list, const char *s, char del)
Definition: StrList.cc:63
const char * pos(char const *aString) const
Definition: String.cc:405

 

Introduction

Documentation

Support

Miscellaneous