foobar2000 SDK
2015-08-03
|
#include <string_base.h>
Public Member Functions | |
string8_t () | |
string8_t (const char *p_string) | |
string8_t (const char *p_string, t_size p_length) | |
string8_t (const t_self &p_string) | |
string8_t (const string_base &p_string) | |
string8_t (string_part_ref ref) | |
void | add_string (const char *p_string, t_size p_length=~0) |
void | add_string (string_part_ref ref) |
void | add_string_ (const char *str) |
void | add_string_nc (const char *ptr, t_size len) |
void | fix_filename_chars (char def= '_', char leave=0) |
void | force_reset () |
t_size | get_length () const throw () |
const char * | get_ptr () const throw () |
void | insert_chars (t_size first, const char *src, t_size count) |
void | insert_chars (t_size first, const char *src) |
char * | lock_buffer (t_size n) |
operator const char * () const throw () | |
const t_self & | operator+= (const char *src) |
const t_self & | operator+= (const string_base &src) |
const t_self & | operator+= (const t_self &src) |
const t_self & | operator+= (string_part_ref src) |
const t_self & | operator= (const char *src) |
const t_self & | operator= (const string_base &src) |
const t_self & | operator= (const t_self &src) |
const t_self & | operator= (string_part_ref src) |
void | prealloc (t_size p_size) |
void | remove_chars (t_size first, t_size count) |
t_size | replace_byte (char c1, char c2, t_size start=0) |
t_size | replace_char (unsigned c1, unsigned c2, t_size start=0) |
t_size | replace_nontext_chars (char p_replace= '_') |
void | set_char (unsigned offset, char c) |
void | set_string (const char *p_string, t_size p_length=~0) |
void | set_string (string_part_ref ref) |
void | set_string_ (const char *str) |
void | set_string_nc (const char *ptr, t_size len) |
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_base & | operator+= (const char *src) |
const string_base & | operator+= (const string_base &src) |
bool | operator< (const string_base &p_other) const |
bool | operator<= (const string_base &p_other) const |
const string_base & | operator= (const char *src) |
const string_base & | operator= (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) |
Static Public Member Functions | |
static void | g_swap (t_self &p_item1, t_self &p_item2) |
Protected Member Functions | |
const char * | _get_ptr () const throw () |
void | makespace (t_size s) |
Protected Member Functions inherited from pfc::string_base | |
string_base () | |
~string_base () | |
Protected Member Functions inherited from pfc::string_receiver | |
string_receiver () | |
~string_receiver () | |
Protected Attributes | |
pfc::array_t< char, t_alloc > | m_data |
t_size | used |
Private Types | |
typedef string8_t< t_alloc > | t_self |
Definition at line 321 of file string_base.h.
|
private |
Definition at line 323 of file string_base.h.
|
inline |
Definition at line 373 of file string_base.h.
|
inline |
Definition at line 374 of file string_base.h.
|
inline |
Definition at line 375 of file string_base.h.
|
inline |
Definition at line 376 of file string_base.h.
|
inline |
Definition at line 377 of file string_base.h.
|
inline |
Definition at line 378 of file string_base.h.
|
inlineprotected |
Definition at line 340 of file string_base.h.
|
virtual |
Implements pfc::string_base.
Definition at line 4 of file string8_impl.h.
|
inline |
Definition at line 388 of file string_base.h.
|
inline |
Definition at line 344 of file string_base.h.
|
inline |
Definition at line 353 of file string_base.h.
void pfc::string8_t< t_alloc >::fix_filename_chars | ( | char | def = '_' , |
char | leave = 0 |
||
) |
Definition at line 32 of file string8_impl.h.
|
inline |
Definition at line 424 of file string_base.h.
|
inlinestatic |
Definition at line 426 of file string_base.h.
|
inlinevirtual |
|
inlinevirtual |
void pfc::string8_t< t_alloc >::insert_chars | ( | t_size | first, |
const char * | src, | ||
t_size | count | ||
) |
Definition at line 55 of file string8_impl.h.
void pfc::string8_t< t_alloc >::insert_chars | ( | t_size | first, |
const char * | src | ||
) |
Definition at line 70 of file string8_impl.h.
|
inlinevirtual |
Implements pfc::string_base.
Definition at line 409 of file string_base.h.
|
inlineprotected |
Definition at line 328 of file string_base.h.
|
inline |
Definition at line 371 of file string_base.h.
|
inline |
Definition at line 362 of file string_base.h.
|
inline |
Definition at line 364 of file string_base.h.
|
inline |
Definition at line 366 of file string_base.h.
|
inline |
Definition at line 369 of file string_base.h.
|
inline |
Definition at line 361 of file string_base.h.
|
inline |
Definition at line 363 of file string_base.h.
|
inline |
Definition at line 365 of file string_base.h.
|
inline |
Definition at line 368 of file string_base.h.
|
inline |
Definition at line 380 of file string_base.h.
void pfc::string8_t< t_alloc >::remove_chars | ( | t_size | first, |
t_size | count | ||
) |
Definition at line 40 of file string8_impl.h.
t_size pfc::string8_t< t_alloc >::replace_byte | ( | char | c1, |
char | c2, | ||
t_size | start = 0 |
||
) |
Definition at line 85 of file string8_impl.h.
t_size pfc::string8_t< t_alloc >::replace_char | ( | unsigned | c1, |
unsigned | c2, | ||
t_size | start = 0 |
||
) |
Definition at line 97 of file string8_impl.h.
t_size pfc::string8_t< t_alloc >::replace_nontext_chars | ( | char | p_replace = '_' | ) |
Definition at line 74 of file string8_impl.h.
void pfc::string8_t< t_alloc >::set_char | ( | unsigned | offset, |
char | c | ||
) |
Definition at line 25 of file string8_impl.h.
|
virtual |
Reimplemented from pfc::string_base.
Definition at line 15 of file string8_impl.h.
|
inline |
Definition at line 387 of file string_base.h.
|
inline |
Definition at line 343 of file string_base.h.
|
inline |
Definition at line 345 of file string_base.h.
|
inlinevirtual |
|
inlinevirtual |
|
protected |
Definition at line 325 of file string_base.h.
|
protected |
Definition at line 326 of file string_base.h.