common/str.cc File Reference

Convert types to std::string. More...

#include <config.h>
#include "str.h"
#include "omassert.h"
#include <cstdio>
#include <cstdlib>
#include <string>

Include dependency graph for str.cc:

Go to the source code of this file.


Namespaces

namespace  Xapian
 The Xapian namespace contains public interfaces for the Xapian library.
namespace  Xapian::Internal

Functions

template<class T >
string tostring_unsigned (T value)
template<class T >
string tostring (T value)
string Xapian::Internal::str (int value)
 Convert int to std::string.
string Xapian::Internal::str (unsigned int value)
 Convert unsigned int to std::string.
string Xapian::Internal::str (long value)
 Convert long to std::string.
string Xapian::Internal::str (unsigned long value)
 Convert unsigned long to std::string.
string Xapian::Internal::str (long long value)
 Convert long long to std::string.
string Xapian::Internal::str (unsigned long long value)
 Convert unsigned long long to std::string.
template<class T >
string Xapian::Internal::format (const char *fmt, T value)
string Xapian::Internal::str (double value)
 Convert double to std::string.
string Xapian::Internal::str (const void *value)
 Convert const void * to std::string.


Detailed Description

Convert types to std::string.

Definition in file str.cc.


Function Documentation

template<class T >
string tostring ( value  )  [inline]

Definition at line 55 of file str.cc.

References AssertRel.

Referenced by Xapian::Internal::str().

template<class T >
string tostring_unsigned ( value  )  [inline]

Definition at line 36 of file str.cc.

References AssertRel, and STATIC_ASSERT_UNSIGNED_TYPE.

Referenced by Xapian::Internal::str().


Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.