foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
string_formatter_tf

#include <titleformat.h>

+ Inheritance diagram for string_formatter_tf:

Public Member Functions

 string_formatter_tf (titleformat_text_out *out, const GUID &inputType=titleformat_inputtypes::meta)
 
void add_string (const char *p_string, t_size p_length)
 
t_size get_length () const
 
const char * get_ptr () const
 
char * lock_buffer (t_size p_requested_length)
 
void set_string (const char *p_string, t_size p_length)
 
void truncate (t_size len)
 
void unlock_buffer ()
 
- Public Member Functions inherited from pfc::string_base
string_base_formatter () const
 
void add_filename (const char *fn)
 
const char * c_str () const
 
void convert_to_lower_ascii (const char *src, char replace= '?')
 
void delimit (const char *c)
 
void end_with (char c)
 
void end_with_slash ()
 
bool ends_with (char c) const
 
t_size find_first (char p_char, t_size p_start=0) const
 
t_size find_first (const char *p_string, t_size p_start=0) const
 
t_size find_last (char p_char, t_size p_start=~0) const
 
t_size find_last (const char *p_string, t_size p_start=~0) const
 
void fix_dir_separator (char c= '\\')
 
bool fix_eol (const char *append=" (...)", t_size start=0)
 
bool has_prefix (const char *prefix) const
 
bool has_prefix_i (const char *prefix) const
 
bool has_suffix (const char *suffix) const
 
bool has_suffix_i (const char *suffix) const
 
bool is_empty () const
 
bool is_valid_utf8 () const
 
char last_char () const
 
t_size length () const
 
bool limit_length (t_size length_in_chars, const char *append=" (...)")
 
 operator const char * () const
 
bool operator!= (const string_base &p_other) const
 
const string_baseoperator+= (const char *src)
 
const string_baseoperator+= (const string_base &src)
 
bool operator< (const string_base &p_other) const
 
bool operator<= (const string_base &p_other) const
 
const string_baseoperator= (const char *src)
 
const string_baseoperator= (const string_base &src)
 
bool operator== (const string_base &p_other) const
 
bool operator> (const string_base &p_other) const
 
bool operator>= (const string_base &p_other) const
 
t_size replace_string (const char *replace, const char *replaceWith, t_size start=0)
 
void reset ()
 
t_size scan_filename () const
 
void set_string_ (const char *str)
 
void skip_trailing_char (unsigned c= ' ')
 
const char * toString () const
 
bool truncate_eol (t_size start=0)
 
void truncate_filename ()
 
void truncate_last_char ()
 
void truncate_number_suffix ()
 
void truncate_to_parent_path ()
 
- Public Member Functions inherited from pfc::string_receiver
void add_byte (char c)
 
void add_char (t_uint32 c)
 
void add_chars (t_uint32 p_char, t_size p_count)
 
void add_string_ (const char *str)
 

Private Attributes

const GUID m_inputType
 
titleformat_text_out *const m_out
 

Additional Inherited Members

- Protected Member Functions inherited from pfc::string_base
 string_base ()
 
 ~string_base ()
 
- Protected Member Functions inherited from pfc::string_receiver
 string_receiver ()
 
 ~string_receiver ()
 

Detailed Description

Definition at line 198 of file titleformat.h.

Constructor & Destructor Documentation

string_formatter_tf::string_formatter_tf ( titleformat_text_out out,
const GUID inputType = titleformat_inputtypes::meta 
)
inline

Definition at line 200 of file titleformat.h.

200 : m_out(out), m_inputType(inputType) {}
const GUID m_inputType
Definition: titleformat.h:226
titleformat_text_out *const m_out
Definition: titleformat.h:225

Member Function Documentation

void string_formatter_tf::add_string ( const char *  p_string,
t_size  p_length 
)
inlinevirtual

Implements pfc::string_base.

Definition at line 205 of file titleformat.h.

205  {
206  m_out->write(m_inputType,p_string,p_length);
207  }
const GUID m_inputType
Definition: titleformat.h:226
virtual void write(const GUID &p_inputtype, const char *p_data, t_size p_data_length=~0)=0
titleformat_text_out *const m_out
Definition: titleformat.h:225
t_size string_formatter_tf::get_length ( ) const
inlinevirtual

Reimplemented from pfc::string_base.

Definition at line 214 of file titleformat.h.

214  {
215  uBugCheck();
216  }
PFC_NORETURN void SHARED_EXPORT uBugCheck()
const char* string_formatter_tf::get_ptr ( ) const
inlinevirtual

Implements pfc::string_base.

Definition at line 202 of file titleformat.h.

202  {
203  uBugCheck();
204  }
PFC_NORETURN void SHARED_EXPORT uBugCheck()
char* string_formatter_tf::lock_buffer ( t_size  p_requested_length)
inlinevirtual

Implements pfc::string_base.

Definition at line 217 of file titleformat.h.

217  {
218  uBugCheck();
219  }
PFC_NORETURN void SHARED_EXPORT uBugCheck()
void string_formatter_tf::set_string ( const char *  p_string,
t_size  p_length 
)
inlinevirtual

Reimplemented from pfc::string_base.

Definition at line 208 of file titleformat.h.

208  {
209  uBugCheck();
210  }
PFC_NORETURN void SHARED_EXPORT uBugCheck()
void string_formatter_tf::truncate ( t_size  len)
inlinevirtual

Implements pfc::string_base.

Definition at line 211 of file titleformat.h.

211  {
212  uBugCheck();
213  }
PFC_NORETURN void SHARED_EXPORT uBugCheck()
void string_formatter_tf::unlock_buffer ( )
inlinevirtual

Implements pfc::string_base.

Definition at line 220 of file titleformat.h.

220  {
221  uBugCheck();
222  }
PFC_NORETURN void SHARED_EXPORT uBugCheck()

Field Documentation

const GUID string_formatter_tf::m_inputType
private

Definition at line 226 of file titleformat.h.

titleformat_text_out* const string_formatter_tf::m_out
private

Definition at line 225 of file titleformat.h.


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