11 #ifndef STRUNIQUIFIER_H
12 #define STRUNIQUIFIER_H
28 typedef std::map<const char *, int, charpLess> KeyOccur;
36 separator(strdup(separator_))
43 KeyOccur::iterator found = occurred.find(key);
45 if (found == occurred.end()) {
46 occurred[key] = count;
49 count = ++found->second;
55 buffer.
cat(separator);
61 void clear() { occurred.clear(); }
66 #error StrUniquifier.h included twice
67 #endif // STRUNIQUIFIER_H
StrUniquifier(const char *separator_="_")
void cat(const char *from)
const char * get_data() const
const char * make_unique_key(const char *key)