foobar2000 SDK  2015-08-03
Public Member Functions | Private Member Functions | Private Attributes
pfc::string_base_ref

#include <string_base.h>

+ Inheritance diagram for pfc::string_base_ref:

Public Member Functions

 string_base_ref (const char *ptr)
 
t_size get_length () const
 
const char * get_ptr () const
 
- 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 Member Functions

void add_string (const char *p_string, t_size p_length=~0)
 
char * lock_buffer (t_size p_requested_length)
 
void set_string (const char *p_string, t_size p_length=~0)
 
void truncate (t_size len)
 
void unlock_buffer ()
 

Private Attributes

t_size const m_len
 
const char *const m_ptr
 

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 1030 of file string_base.h.

Constructor & Destructor Documentation

pfc::string_base_ref::string_base_ref ( const char *  ptr)
inline

Definition at line 1032 of file string_base.h.

1032 : m_ptr(ptr), m_len(strlen(ptr)) {}
const char *const m_ptr
Definition: string_base.h:1042
t_size const m_len
Definition: string_base.h:1043

Member Function Documentation

void pfc::string_base_ref::add_string ( const char *  p_string,
t_size  p_length = ~0 
)
inlineprivatevirtual

Implements pfc::string_base.

Definition at line 1036 of file string_base.h.

1036 {throw pfc::exception_not_implemented();}
t_size pfc::string_base_ref::get_length ( ) const
inlinevirtual

Reimplemented from pfc::string_base.

Definition at line 1034 of file string_base.h.

1034 {return m_len;}
t_size const m_len
Definition: string_base.h:1043
const char* pfc::string_base_ref::get_ptr ( ) const
inlinevirtual

Implements pfc::string_base.

Definition at line 1033 of file string_base.h.

1033 {return m_ptr;}
const char *const m_ptr
Definition: string_base.h:1042
char* pfc::string_base_ref::lock_buffer ( t_size  p_requested_length)
inlineprivatevirtual

Implements pfc::string_base.

Definition at line 1039 of file string_base.h.

1039 {throw pfc::exception_not_implemented();}
void pfc::string_base_ref::set_string ( const char *  p_string,
t_size  p_length = ~0 
)
inlineprivatevirtual

Reimplemented from pfc::string_base.

Definition at line 1037 of file string_base.h.

1037 {throw pfc::exception_not_implemented();}
void pfc::string_base_ref::truncate ( t_size  len)
inlineprivatevirtual

Implements pfc::string_base.

Definition at line 1038 of file string_base.h.

1038 {throw pfc::exception_not_implemented();}
void pfc::string_base_ref::unlock_buffer ( )
inlineprivatevirtual

Implements pfc::string_base.

Definition at line 1040 of file string_base.h.

1040 {throw pfc::exception_not_implemented();}

Field Documentation

t_size const pfc::string_base_ref::m_len
private

Definition at line 1043 of file string_base.h.

const char* const pfc::string_base_ref::m_ptr
private

Definition at line 1042 of file string_base.h.


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