#include "debug.h"
#include "support/lstrings.h"
-#include "support/std_sstream.h"
#include "support/tostr.h"
#include <boost/assert.hpp>
+#include <sstream>
+
using std::endl;
using std::ostringstream;
+using std::string;
Counter::Counter()
char loweralphaCounter(int n)
{
- if (n < 1 || n > 26)
+ if (n < 1 || n > 26)
return '?';
return 'a' + n - 1;
}
{
string label = format;
while (true) {
+#ifdef WITH_WARNINGS
+#warning Using boost::regex would make this code a lot simpler... (Lgb)
+#endif
+
size_t const i = label.find('\\', 0);
if (i == string::npos)
break;
os << alphaCounter(value("enumiv")) << '.';
}
- return STRCONV(os.str());
+ return os.str();
}