Boost.Nowide
Public Types | Public Member Functions | Static Public Attributes | List of all members
boost::nowide::basic_stackstring< CharOut, CharIn, BufferSize > Class Template Reference

A class that allows to create a temporary wide or narrow UTF strings from wide or narrow UTF source. More...

#include <boost/nowide/stackstring.hpp>

Public Types

typedef CharOut output_char
 
typedef CharIn input_char
 

Public Member Functions

 basic_stackstring (basic_stackstring const &other)
 
void swap (basic_stackstring &other)
 
basic_stackstringoperator= (basic_stackstring const &other)
 
bool convert (input_char const *input)
 
bool convert (input_char const *begin, input_char const *end)
 
output_char * c_str ()
 
output_char const * c_str () const
 
void clear ()
 

Static Public Attributes

static const size_t buffer_size = BufferSize
 

Detailed Description

template<typename CharOut = wchar_t, typename CharIn = char, size_t BufferSize = 256>
class boost::nowide::basic_stackstring< CharOut, CharIn, BufferSize >

A class that allows to create a temporary wide or narrow UTF strings from wide or narrow UTF source.

It uses on stack buffer of the string is short enough and allocated a buffer on the heap if the size of the buffer is too small


The documentation for this class was generated from the following file: