2003-05-13 14:36:24 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
|
|
|
|
* \file tostr.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-05-13 14:36:24 +00:00
|
|
|
|
*
|
|
|
|
|
* A collection of string helper functions that works with string.
|
|
|
|
|
* Some of these would certainly benefit from a rewrite/optimization.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef TOSTR_H
|
|
|
|
|
#define TOSTR_H
|
|
|
|
|
|
2003-10-06 15:43:21 +00:00
|
|
|
|
#include <string>
|
2003-05-13 14:36:24 +00:00
|
|
|
|
|
|
|
|
|
/// convert things to strings
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const tostr(bool b);
|
2003-05-13 14:36:24 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const tostr(int);
|
2003-05-13 14:36:24 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const tostr(unsigned int);
|
2003-05-13 14:36:24 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const tostr(long int);
|
2003-05-14 07:54:12 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const tostr(double);
|
2003-05-13 14:36:24 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const tostr(std::string const & s);
|
2004-01-07 16:40:30 +00:00
|
|
|
|
///
|
|
|
|
|
std::string const tostr(long unsigned int);
|
2003-05-13 14:36:24 +00:00
|
|
|
|
|
|
|
|
|
#endif
|