#include <config.h>
#include "Counters.h"
-
#include "Lexer.h"
#include "support/convert.h"
#include "support/debug.h"
-#include "support/lstrings.h"
-
#include "support/lassert.h"
+#include "support/lstrings.h"
+#include <algorithm>
#include <sstream>
using namespace std;
}
-docstring const & Counter::setFlatLabelStrings(docstring const & fls,
- docstring const & flsa)
+void Counter::setFlatLabelStrings(docstring const & fls, docstring const & flsa)
{
flatlabelstring_ = fls;
flatlabelstringappendix_ = flsa;
-//On the special cases, see http://mathworld.wolfram.com/RomanNumerals.html
-//and for a list of roman numerals up to and including 3999, see
-//http://www.research.att.com/~njas/sequences/a006968.txt. (Thanks to Joost
-//for this info.)
+// On the special cases, see http://mathworld.wolfram.com/RomanNumerals.html
+// and for a list of roman numerals up to and including 3999, see
+// http://www.research.att.com/~njas/sequences/a006968.txt. (Thanks to Joost
+// for this info.)
docstring const romanCounter(int const n)
{
static char const * const ones[9] = {
CounterList::const_iterator it = counterList_.find(counter);
if (it == counterList_.end())
return from_ascii("??");
+ // FIXME: this should get translated.
return counterLabel(it->second.flatLabelString(appendix()));
}
-docstring Counters::flattenLabelString(docstring const & counter, bool in_appendix,
+docstring Counters::flattenLabelString(docstring const & counter,
+ bool in_appendix,
vector<docstring> & callers) const
{
docstring label;