mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Fix compilation problem
This commit is contained in:
parent
57065afb45
commit
c92b4f27ec
@ -1507,6 +1507,14 @@ docstring bformat(docstring const & fmt, unsigned int arg1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
docstring bformat(docstring const & fmt, pit_type arg1)
|
||||||
|
{
|
||||||
|
LATTEST(contains(fmt, from_ascii("%1$d")));
|
||||||
|
docstring const str = subst(fmt, from_ascii("%1$d"), convert<docstring>(arg1));
|
||||||
|
return subst(str, from_ascii("%%"), from_ascii("%"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
docstring bformat(docstring const & fmt, docstring const & arg1)
|
docstring bformat(docstring const & fmt, docstring const & arg1)
|
||||||
{
|
{
|
||||||
LATTEST(contains(fmt, from_ascii("%1$s")));
|
LATTEST(contains(fmt, from_ascii("%1$s")));
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
#define LSTRINGS_H
|
#define LSTRINGS_H
|
||||||
|
|
||||||
#include "support/docstring.h"
|
#include "support/docstring.h"
|
||||||
|
#include "support/types.h"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@ -369,6 +370,7 @@ docstring bformat(docstring const & fmt, long arg1);
|
|||||||
docstring bformat(docstring const & fmt, long long arg1);
|
docstring bformat(docstring const & fmt, long long arg1);
|
||||||
#endif
|
#endif
|
||||||
docstring bformat(docstring const & fmt, unsigned int arg1);
|
docstring bformat(docstring const & fmt, unsigned int arg1);
|
||||||
|
docstring bformat(docstring const & fmt, pit_type arg1);
|
||||||
docstring bformat(docstring const & fmt, docstring const & arg1);
|
docstring bformat(docstring const & fmt, docstring const & arg1);
|
||||||
docstring bformat(docstring const & fmt, char * arg1);
|
docstring bformat(docstring const & fmt, char * arg1);
|
||||||
docstring bformat(docstring const & fmt, docstring const & arg1, docstring const & arg2);
|
docstring bformat(docstring const & fmt, docstring const & arg1, docstring const & arg2);
|
||||||
|
Loading…
Reference in New Issue
Block a user