mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 08:44:01 +00:00
Minor update to previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19367 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a95c723f5c
commit
b5dd06a1e0
@ -249,7 +249,7 @@ char hebrewCounter(int const n)
|
|||||||
//and for a list of roman numerals up to and including 3999, see
|
//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
|
//http://www.research.att.com/~njas/sequences/a006968.txt. (Thanks to Joost
|
||||||
//for this info.)
|
//for this info.)
|
||||||
docstring const romanCounter(int const n, bool lowercase = false)
|
docstring const romanCounter(int const n)
|
||||||
{
|
{
|
||||||
static char const * const ones[9] = {
|
static char const * const ones[9] = {
|
||||||
"I", "II", "III", "IV", "V",
|
"I", "II", "III", "IV", "V",
|
||||||
@ -301,14 +301,13 @@ docstring const romanCounter(int const n, bool lowercase = false)
|
|||||||
if (val > 0)
|
if (val > 0)
|
||||||
roman = roman + ones[val -1];
|
roman = roman + ones[val -1];
|
||||||
}
|
}
|
||||||
docstring retval = from_ascii(roman);
|
return from_ascii(roman);
|
||||||
return lowercase ? support::lowercase(retval) : retval;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
docstring const lowerromanCounter(int const n)
|
docstring const lowerromanCounter(int const n)
|
||||||
{
|
{
|
||||||
return romanCounter(n, true);
|
return support::lowercase(romanCounter(n));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace anon
|
} // namespace anon
|
||||||
|
Loading…
x
Reference in New Issue
Block a user