pfc::string8_t< t_alloc > Class Template Reference

#include <string.h>

Inheritance diagram for pfc::string8_t< t_alloc >:

pfc::string_base pfc::string_receiver cfg_string console::formatter pfc::format_array pfc::format_file_size_short pfc::formatBugCheck pfc::string_filename pfc::string_filename_ext uDebugLog

List of all members.

Public Member Functions

const t_selfoperator= (const char *src)
const t_selfoperator+= (const char *src)
const t_selfoperator= (const string_base &src)
const t_selfoperator+= (const string_base &src)
const t_selfoperator= (const t_self &src)
const t_selfoperator+= (const t_self &src)
 operator const char * () const throw ()
 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)
void prealloc (t_size p_size)
const char * get_ptr () const throw ()
void add_string (const char *p_string, t_size p_length=~0)
void set_string (const char *p_string, t_size p_length=~0)
void truncate (t_size len)
t_size get_length () const throw ()
void set_char (unsigned offset, char c)
t_size replace_nontext_chars (char p_replace= '_')
t_size replace_char (unsigned c1, unsigned c2, t_size start=0)
t_size replace_byte (char c1, char c2, t_size start=0)
void fix_filename_chars (char def= '_', char leave=0)
void remove_chars (t_size first, t_size count)
void insert_chars (t_size first, const char *src, t_size count)
void insert_chars (t_size first, const char *src)
bool truncate_eol (t_size start=0)
bool fix_eol (const char *append=" (...)", t_size start=0)
bool limit_length (t_size length_in_chars, const char *append=" (...)")
char * lock_buffer (t_size n)
void unlock_buffer ()
void force_reset ()

Static Public Member Functions

static void g_swap (t_self &p_item1, t_self &p_item2)

Protected Member Functions

void makespace (t_size s)
const char * _get_ptr () const throw ()

Protected Attributes

pfc::array_t< char, t_alloc > m_data
t_size used

template<template< typename > class t_alloc>
class pfc::string8_t< t_alloc >


Constructor & Destructor Documentation

template<template< typename > class t_alloc>
pfc::string8_t< t_alloc >::string8_t (  )  [inline]

template<template< typename > class t_alloc>
pfc::string8_t< t_alloc >::string8_t ( const char *  p_string  )  [inline]

template<template< typename > class t_alloc>
pfc::string8_t< t_alloc >::string8_t ( const char *  p_string,
t_size  p_length 
) [inline]

template<template< typename > class t_alloc>
pfc::string8_t< t_alloc >::string8_t ( const t_self p_string  )  [inline]

template<template< typename > class t_alloc>
pfc::string8_t< t_alloc >::string8_t ( const string_base p_string  )  [inline]


Member Function Documentation

template<template< typename > class t_alloc>
void pfc::string8_t< t_alloc >::makespace ( t_size  s  )  [inline, protected]

template<template< typename > class t_alloc>
const char* pfc::string8_t< t_alloc >::_get_ptr (  )  const throw () [inline, protected]

template<template< typename > class t_alloc>
const t_self& pfc::string8_t< t_alloc >::operator= ( const char *  src  )  [inline]

Reimplemented from pfc::string_base.

Reimplemented in cfg_string.

template<template< typename > class t_alloc>
const t_self& pfc::string8_t< t_alloc >::operator+= ( const char *  src  )  [inline]

Reimplemented from pfc::string_base.

template<template< typename > class t_alloc>
const t_self& pfc::string8_t< t_alloc >::operator= ( const string_base src  )  [inline]

Reimplemented from pfc::string_base.

template<template< typename > class t_alloc>
const t_self& pfc::string8_t< t_alloc >::operator+= ( const string_base src  )  [inline]

Reimplemented from pfc::string_base.

template<template< typename > class t_alloc>
const t_self& pfc::string8_t< t_alloc >::operator= ( const t_self src  )  [inline]

template<template< typename > class t_alloc>
const t_self& pfc::string8_t< t_alloc >::operator+= ( const t_self src  )  [inline]

template<template< typename > class t_alloc>
pfc::string8_t< t_alloc >::operator const char * (  )  const throw () [inline]

Reimplemented from pfc::string_base.

Reimplemented in cfg_string.

template<template< typename > class t_alloc>
void pfc::string8_t< t_alloc >::prealloc ( t_size  p_size  )  [inline]

template<template< typename > class t_alloc>
const char* pfc::string8_t< t_alloc >::get_ptr (  )  const throw () [inline, virtual]

Implements pfc::string_base.

template<template< typename > class t_alloc>
void pfc::string8_t< t_alloc >::add_string ( const char *  p_string,
t_size  p_length = ~0 
) [inline, virtual]

Implements pfc::string_base.

template<template< typename > class t_alloc>
void pfc::string8_t< t_alloc >::set_string ( const char *  p_string,
t_size  p_length = ~0 
) [inline, virtual]

Reimplemented from pfc::string_base.

template<template< typename > class t_alloc>
void pfc::string8_t< t_alloc >::truncate ( t_size  len  )  [inline, virtual]

Implements pfc::string_base.

template<template< typename > class t_alloc>
t_size pfc::string8_t< t_alloc >::get_length (  )  const throw () [inline, virtual]

Reimplemented from pfc::string_base.

template<template< typename > class t_alloc>
void pfc::string8_t< t_alloc >::set_char ( unsigned  offset,
char  c 
) [inline]

template<template< typename > class t_alloc>
t_size pfc::string8_t< t_alloc >::replace_nontext_chars ( char  p_replace = '_'  )  [inline]

template<template< typename > class t_alloc>
t_size pfc::string8_t< t_alloc >::replace_char ( unsigned  c1,
unsigned  c2,
t_size  start = 0 
) [inline]

template<template< typename > class t_alloc>
t_size pfc::string8_t< t_alloc >::replace_byte ( char  c1,
char  c2,
t_size  start = 0 
) [inline]

template<template< typename > class t_alloc>
void pfc::string8_t< t_alloc >::fix_filename_chars ( char  def = '_',
char  leave = 0 
) [inline]

template<template< typename > class t_alloc>
void pfc::string8_t< t_alloc >::remove_chars ( t_size  first,
t_size  count 
) [inline]

template<template< typename > class t_alloc>
void pfc::string8_t< t_alloc >::insert_chars ( t_size  first,
const char *  src,
t_size  count 
) [inline]

template<template< typename > class t_alloc>
void pfc::string8_t< t_alloc >::insert_chars ( t_size  first,
const char *  src 
) [inline]

template<template< typename > class t_alloc>
bool pfc::string8_t< t_alloc >::truncate_eol ( t_size  start = 0  )  [inline]

template<template< typename > class t_alloc>
bool pfc::string8_t< t_alloc >::fix_eol ( const char *  append = " (...)",
t_size  start = 0 
) [inline]

template<template< typename > class t_alloc>
bool pfc::string8_t< t_alloc >::limit_length ( t_size  length_in_chars,
const char *  append = " (...)" 
) [inline]

template<template< typename > class t_alloc>
char* pfc::string8_t< t_alloc >::lock_buffer ( t_size  n  )  [inline, virtual]

Implements pfc::string_base.

template<template< typename > class t_alloc>
void pfc::string8_t< t_alloc >::unlock_buffer (  )  [inline, virtual]

Implements pfc::string_base.

template<template< typename > class t_alloc>
void pfc::string8_t< t_alloc >::force_reset (  )  [inline]

template<template< typename > class t_alloc>
static void pfc::string8_t< t_alloc >::g_swap ( t_self p_item1,
t_self p_item2 
) [inline, static]


Member Data Documentation

template<template< typename > class t_alloc>
pfc::array_t<char,t_alloc> pfc::string8_t< t_alloc >::m_data [protected]

template<template< typename > class t_alloc>
t_size pfc::string8_t< t_alloc >::used [protected]


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

Generated on Thu Aug 28 21:16:10 2008 for foobar2000 SDK by  doxygen 1.5.5