pfc::string Class Reference

#include <stringNew.h>

List of all members.

Public Types

typedef rcptr_t< string_base
const > 
t_data
typedef rcptr_t< pfc::string8t_dataImpl

Public Member Functions

 string ()
 string (const char *p_source)
 string (const char *p_source, t_size p_sourceLen)
 string (t_data const &p_source)
template<typename TSource>
 string (const TSource &p_source)
string const & toString () const
string operator+ (const string &p_item2) const
string operator+ (const char *p_item2) const
template<typename TSource>
string operator+ (const TSource &p_item2) const
template<typename TSource>
const stringoperator+= (const TSource &p_item)
string subString (t_size base) const
string subString (t_size base, t_size count) const
string toLower () const
string toUpper () const
string clone () const
t_size indexOf (char c, t_size base=0) const
t_size lastIndexOf (char c, t_size base=~0) const
t_size indexOf (stringp s, t_size base=0) const
t_size lastIndexOf (stringp s, t_size base=~0) const
t_size indexOfAnyChar (stringp s, t_size base=0) const
t_size lastIndexOfAnyChar (stringp s, t_size base=~0) const
bool contains (char c) const
bool contains (stringp s) const
bool containsAnyChar (stringp s) const
bool startsWith (char c) const
bool startsWith (string s) const
bool endsWith (char c) const
bool endsWith (string s) const
char firstChar () const
char lastChar () const
string replace (stringp strOld, stringp strNew) const
bool operator== (const string &p_other) const
bool operator!= (const string &p_other) const
bool operator< (const string &p_other) const
bool operator> (const string &p_other) const
bool operator<= (const string &p_other) const
bool operator>= (const string &p_other) const
const char * ptr () const
const char * get_ptr () const
t_size length () const
t_size get_length () const
char operator[] (t_size p_index) const
bool isEmpty () const
t_data _content () const

Static Public Member Functions

static string g_concatenateRaw (const char *item1, t_size len1, const char *item2, t_size len2)
static int g_compare (const string &p_item1, const string &p_item2)
static bool isNonTextChar (char c)
static bool g_equals (const string &p_item1, const string &p_item2)
static bool g_equalsCaseInsensitive (const string &p_item1, const string &p_item2)

Classes

class  comparatorCaseInsensitive
class  comparatorCaseInsensitiveASCII
class  comparatorCaseSensitive


Detailed Description

New EXPERIMENTAL string class, allowing efficient copies and returning from functions.
Does not implement the string_base interface so you still need string8 in many cases.
Safe to pass between DLLs, but since a reference is used, objects possibly created by other DLLs must be released before owning DLLs are unloaded.

Member Typedef Documentation


Constructor & Destructor Documentation

pfc::string::string (  )  [inline]

pfc::string::string ( const char *  p_source  )  [inline]

pfc::string::string ( const char *  p_source,
t_size  p_sourceLen 
) [inline]

pfc::string::string ( t_data const &  p_source  )  [inline]

template<typename TSource>
pfc::string::string ( const TSource &  p_source  )  [inline]


Member Function Documentation

string const& pfc::string::toString (  )  const [inline]

static string pfc::string::g_concatenateRaw ( const char *  item1,
t_size  len1,
const char *  item2,
t_size  len2 
) [inline, static]

string pfc::string::operator+ ( const string p_item2  )  const [inline]

string pfc::string::operator+ ( const char *  p_item2  )  const [inline]

template<typename TSource>
string pfc::string::operator+ ( const TSource &  p_item2  )  const [inline]

template<typename TSource>
const string& pfc::string::operator+= ( const TSource &  p_item  )  [inline]

string pfc::string::subString ( t_size  base  )  const [inline]

string pfc::string::subString ( t_size  base,
t_size  count 
) const [inline]

string pfc::string::toLower (  )  const [inline]

string pfc::string::toUpper (  )  const [inline]

string pfc::string::clone (  )  const [inline]

t_size pfc::string::indexOf ( char  c,
t_size  base = 0 
) const

Returns:
~0 if not found.

t_size pfc::string::lastIndexOf ( char  c,
t_size  base = ~0 
) const

Returns:
~0 if not found.

t_size pfc::string::indexOf ( stringp  s,
t_size  base = 0 
) const

Returns:
~0 if not found.

t_size pfc::string::lastIndexOf ( stringp  s,
t_size  base = ~0 
) const

Returns:
~0 if not found.

t_size pfc::string::indexOfAnyChar ( stringp  s,
t_size  base = 0 
) const

Returns:
~0 if not found.

t_size pfc::string::lastIndexOfAnyChar ( stringp  s,
t_size  base = ~0 
) const

Returns:
~0 if not found.

bool pfc::string::contains ( char  c  )  const

bool pfc::string::contains ( stringp  s  )  const

bool pfc::string::containsAnyChar ( stringp  s  )  const

bool pfc::string::startsWith ( char  c  )  const

bool pfc::string::startsWith ( string  s  )  const

bool pfc::string::endsWith ( char  c  )  const

bool pfc::string::endsWith ( string  s  )  const

char pfc::string::firstChar (  )  const

char pfc::string::lastChar (  )  const

string pfc::string::replace ( stringp  strOld,
stringp  strNew 
) const

static int pfc::string::g_compare ( const string p_item1,
const string p_item2 
) [inline, static]

bool pfc::string::operator== ( const string p_other  )  const [inline]

bool pfc::string::operator!= ( const string p_other  )  const [inline]

bool pfc::string::operator< ( const string p_other  )  const [inline]

bool pfc::string::operator> ( const string p_other  )  const [inline]

bool pfc::string::operator<= ( const string p_other  )  const [inline]

bool pfc::string::operator>= ( const string p_other  )  const [inline]

const char* pfc::string::ptr (  )  const [inline]

const char* pfc::string::get_ptr (  )  const [inline]

t_size pfc::string::length (  )  const [inline]

t_size pfc::string::get_length (  )  const [inline]

static bool pfc::string::isNonTextChar ( char  c  )  [inline, static]

char pfc::string::operator[] ( t_size  p_index  )  const [inline]

bool pfc::string::isEmpty (  )  const [inline]

static bool pfc::string::g_equals ( const string p_item1,
const string p_item2 
) [inline, static]

static bool pfc::string::g_equalsCaseInsensitive ( const string p_item1,
const string p_item2 
) [inline, static]

t_data pfc::string::_content (  )  const [inline]


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

Generated on Fri Apr 25 18:50:01 2008 for foobar2000 SDK by  doxygen 1.5.5