![]() |
![]() |
|
|
#include <fastformat/sinks/shim_string.hpp>
For example
// in namespace mystuff class Thing {};
// in namespace stlsoft inline shim_string_sink c_str_ptr_a(mystuff::Thing const& thing) { shim_string_sink result;
return result; }
stlsoft::basic_shim_string
. Public Types | |
typedef shim_string_sink | class_type |
Member Types. | |
typedef stlsoft::basic_shim_string < ff_char_t > | parent_class_type |
The parent type. | |
typedef parent_class_type::size_type | size_type |
The size type. | |
Public Member Functions | |
shim_string_sink () | |
Construction. | |
shim_string_sink (size_type n) | |
Constructs an empty instance with the given capacity. | |
void | reserve (size_type n) |
Operations. | |
class_type & | append (ff_char_t const *s, size_type n) |
Appends part of a C-style string. | |
class_type & | append (ff_char_t const *s) |
appends a C-style string | |
void | truncate (size_type n) |
truncates the string | |
size_type | size () const |
Accessors. | |
operator size_type () const | |
The string size. |
typedef shim_string_sink class_type |
Member Types.
This type
typedef stlsoft::basic_shim_string<ff_char_t> parent_class_type |
The parent type.
typedef parent_class_type::size_type size_type |
The size type.
shim_string_sink | ( | ) | [inline] |
Construction.
Constructs an empty instance
shim_string_sink | ( | size_type | n | ) | [inline, explicit] |
Constructs an empty instance with the given capacity.
n | The required capacity |
void reserve | ( | size_type | n | ) | [inline] |
Operations.
Reserves the given capacity
n | The required capacity |
class_type& append | ( | ff_char_t const * | s, | |
size_type | n | |||
) | [inline] |
class_type& append | ( | ff_char_t const * | s | ) | [inline] |
void truncate | ( | size_type | n | ) | [inline] |
truncates the string
size_type size | ( | ) | const [inline] |
Accessors.
The string size
Referenced by fastformat::sinks::c_str_len(), and shim_string_sink::operator size_type().
operator size_type | ( | ) | const [inline] |
|
|
FastFormat Library documentation © Matthew Wilson, 2006-2009 |
|