X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fconvert.h;h=fb069c98c312bf7a6a39da7740b414e5e11873c7;hb=e2bc7ffae3eb387661064be8b9dc927742f9e7e8;hp=be2cb6d5b9874bd6da581cec9a7b8451622e2ca8;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/support/convert.h b/src/support/convert.h index be2cb6d5b9..fb069c98c3 100644 --- a/src/support/convert.h +++ b/src/support/convert.h @@ -4,8 +4,8 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz - * \author Lars Gullik Bjønnes + * \author André Pönitz + * \author Lars Gullik Bjønnes * * Full author contact details are available in file CREDITS. * @@ -16,11 +16,43 @@ #ifndef CONVERT_H #define CONVERT_H +#include "support/strfwd.h" + namespace lyx { template Target convert(Source arg); + +template<> std::string convert(bool b); +template<> std::string convert(char c); +template<> std::string convert(short unsigned int sui); +template<> std::string convert(int i); +template<> docstring convert(int i); +template<> std::string convert(unsigned int ui); +template<> docstring convert(unsigned int ui); +template<> std::string convert(unsigned long ul); +template<> docstring convert(unsigned long ul); +#ifdef LYX_USE_LONG_LONG +template<> std::string convert(unsigned long long ull); +template<> docstring convert(unsigned long long ull); +#endif +template<> std::string convert(long l); +template<> docstring convert(long l); +#ifdef LYX_USE_LONG_LONG +template<> std::string convert(long long ll); +template<> docstring convert(long long ll); +#endif +template<> std::string convert(float f); +template<> std::string convert(double d); +template<> int convert(std::string const & s); +template<> int convert(docstring const & s); +template<> unsigned int convert(std::string const & s); +template<> unsigned long convert(std::string const & s); +template<> double convert(std::string const & s); +template<> int convert(char const * cptr); +template<> double convert(char const * cptr); + } // namespace lyx #endif