foobar2000 SDK  2015-08-03
Public Member Functions | Protected Member Functions
pfc::string_receiverabstract

#include <string_base.h>

+ Inheritance diagram for pfc::string_receiver:

Public Member Functions

void add_byte (char c)
 
void add_char (t_uint32 c)
 
void add_chars (t_uint32 p_char, t_size p_count)
 
virtual void add_string (const char *p_string, t_size p_string_size=~0)=0
 
void add_string_ (const char *str)
 

Protected Member Functions

 string_receiver ()
 
 ~string_receiver ()
 

Detailed Description

Definition at line 36 of file string_base.h.

Constructor & Destructor Documentation

pfc::string_receiver::string_receiver ( )
inlineprotected

Definition at line 45 of file string_base.h.

45 {}
pfc::string_receiver::~string_receiver ( )
inlineprotected

Definition at line 46 of file string_base.h.

46 {}

Member Function Documentation

void pfc::string_receiver::add_byte ( char  c)
inline

Definition at line 42 of file string_base.h.

42 {add_string(&c,1);}
virtual void add_string(const char *p_string, t_size p_string_size=~0)=0
void pfc::string_receiver::add_char ( t_uint32  c)

Definition at line 5 of file string_base.cpp.

6 {
7  char temp[8];
8  t_size len = utf8_encode_char(p_char,temp);
9  if (len>0) add_string(temp,len);
10 }
t_size utf8_encode_char(unsigned c, char *out)
Definition: utf8.cpp:113
virtual void add_string(const char *p_string, t_size p_string_size=~0)=0
size_t t_size
Definition: int_types.h:48
void pfc::string_receiver::add_chars ( t_uint32  p_char,
t_size  p_count 
)
inline

Definition at line 43 of file string_base.h.

43 {for(;p_count;p_count--) add_char(p_char);}
void add_char(t_uint32 c)
Definition: string_base.cpp:5
virtual void pfc::string_receiver::add_string ( const char *  p_string,
t_size  p_string_size = ~0 
)
pure virtual
void pfc::string_receiver::add_string_ ( const char *  str)
inline

Definition at line 39 of file string_base.h.

39 {add_string(str, _strParamLen(str));}
virtual void add_string(const char *p_string, t_size p_string_size=~0)=0
t_size _strParamLen(const char *str)
Definition: string_base.h:7

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