sprint 1-alpha
Classes | Namespaces | Functions
sprint/buffer_cast.h File Reference

methods to convert an object to string using a support buffer (no head wasted) More...

#include <cstdlib>
#include <cstdio>
#include <string>

Go to the source code of this file.

Classes

class  sprint::buffer_cast
 a dummy class to hold a small buffer (allocated in stack) More...

Namespaces

namespace  sprint
 

Sprint is a lightweight c++ library to handle different task with crossplatform attention (trying to compile both on MSVC and Mingw on WIn32 and GCC on Linux.


Functions

char * sprint::detail::cast (char *p, int buf_len, unsigned long un)
 convert a unsigned long in string
char * sprint::detail::cast (char *p, int buf_len, long un)
 convert a long in string
char * sprint::detail::cast (char *p, int buf_len, unsigned int un)
char * sprint::detail::cast (char *p, int buf_len, int un)
char * sprint::detail::cast (char *p, int buf_len, short unsigned int un)
char * sprint::detail::cast (char *p, int buf_len, short int un)
char * sprint::detail::cast (char *p, int buf_len, unsigned char un)
char * sprint::detail::cast (char *p, int buf_len, signed char un)
char * sprint::detail::cast (char *p, int buf_len, char un)
const char * sprint::detail::cast (char *buf, int buf_len, bool value)
 cast a bool to a const char* using a support buffer
char * sprint::detail::cast (char *buf, int buf_len, double value)
 uses sprintf
char * sprint::detail::cast (char *buf, int buf_len, double value, int prec)
 uses sprintf
char * sprint::detail::cast (char *buf, int buf_len, float value)
 uses sprintf
char * sprint::detail::cast (char *buf, int buf_len, float value, int prec)
 uses sprintf

Detailed Description

methods to convert an object to string using a support buffer (no head wasted)

classes used to serialize a generic T object in human readable form

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines