// dump the helper key=pair "notes" list
if (!r.notes.empty()) {
os << ", notes={";
- os << r.notes.toString("; ");
+ os << r.notes.toString("; ");
os << "}";
}
const char *
NotePairs::toString(const char *sep) const
{
- static String value;
+ static String value;
value.clean();
for (Vector<NotePairs::Entry *>::const_iterator i = entries.begin(); i != entries.end(); ++i) {
value.append((*i)->name);
const char *item;
const char *pos = NULL;
int ilen = 0;
- while(strListGetItem(&strValues, ',', &item, &ilen, &pos)) {
+ while (strListGetItem(&strValues, ',', &item, &ilen, &pos)) {
String v;
v.append(item, ilen);
entries.push_back(new NotePairs::Entry(key, v.termedBuf()));
/**
* Used to store a note key/value pair.
*/
- class Entry {
+ class Entry
+ {
public:
- Entry(const char *aKey, const char *aValue): name(aKey), value(aValue) {}
+ Entry(const char *aKey, const char *aValue): name(aKey), value(aValue) {}
String name;
String value;
MEMPROXY_CLASS(Entry);
if (v) {
if (ah->metaHeaders == NULL)
ah->metaHeaders = new NotePairs();
- if (!ah->metaHeaders->hasPair((*i)->key.termedBuf(), v))
+ if (!ah->metaHeaders->hasPair((*i)->key.termedBuf(), v))
ah->metaHeaders->add((*i)->key.termedBuf(), v);
}
}