foobar2000 SDK
2015-08-03
|
#include <stringNew.h>
Data Structures | |
class | _comparatorCommon |
class | comparatorCaseInsensitive |
class | comparatorCaseInsensitiveASCII |
class | comparatorCaseSensitive |
Public Types | |
typedef rcptr_t< string_base const > | t_data |
typedef rcptr_t< string8 > | t_dataImpl |
Public Member Functions | |
string () | |
string (const char *p_source) | |
string (const char *p_source, t_size p_sourceLen) | |
string (char *p_source) | |
string (char *p_source, t_size p_sourceLen) | |
string (t_data const &p_source) | |
string (string_part_ref source) | |
template<typename TSource > | |
string (const TSource &p_source) | |
string (const string &other) | |
string (string &&other) | |
t_data | _content () const |
const char * | c_str () const |
string | clone () const |
bool | contains (char c) const |
bool | contains (stringp s) const |
bool | containsAnyChar (stringp s) const |
bool | endsWith (char c) const |
bool | endsWith (string s) const |
char | firstChar () const |
t_size | get_length () const |
const char * | get_ptr () const |
t_size | indexOf (char c, t_size base=0) const |
t_size | indexOf (stringp s, t_size base=0) const |
t_size | indexOfAnyChar (stringp s, t_size base=0) const |
bool | isEmpty () const |
char | lastChar () const |
t_size | lastIndexOf (char c, t_size base=~0) const |
t_size | lastIndexOf (stringp s, t_size base=~0) const |
t_size | lastIndexOfAnyChar (stringp s, t_size base=~0) const |
t_size | length () const |
bool | operator!= (const string &p_other) 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 string & | operator+= (const TSource &p_item) |
bool | operator< (const string &p_other) const |
bool | operator<= (const string &p_other) const |
const string & | operator= (const string &other) |
const string & | operator= (string &&other) |
bool | operator== (const string &p_other) const |
bool | operator> (const string &p_other) const |
bool | operator>= (const string &p_other) const |
char | operator[] (t_size p_index) const |
const char * | ptr () const |
string | replace (stringp strOld, stringp strNew) const |
void | set_string (const char *ptr, t_size len=~0) |
bool | startsWith (char c) const |
bool | startsWith (string s) const |
string | subString (t_size base) const |
string | subString (t_size base, t_size count) const |
string | toLower () const |
string const & | toString () const |
string | toUpper () const |
Static Public Member Functions | |
static int | g_compare (const string &p_item1, const string &p_item2) |
static string | g_concatenateRaw (const char *item1, t_size len1, const char *item2, t_size len2) |
static bool | g_equals (const string &p_item1, const string &p_item2) |
static bool | g_equalsCaseInsensitive (const string &p_item1, const string &p_item2) |
static bool | isNonTextChar (char c) |
Private Attributes | |
t_data | m_content |
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.
Definition at line 19 of file stringNew.h.
typedef rcptr_t<string_base const> pfc::string::t_data |
Definition at line 21 of file stringNew.h.
typedef rcptr_t<string8> pfc::string::t_dataImpl |
Definition at line 22 of file stringNew.h.
|
inline |
Definition at line 24 of file stringNew.h.
|
inline |
Definition at line 25 of file stringNew.h.
|
inline |
Definition at line 26 of file stringNew.h.
|
inline |
Definition at line 27 of file stringNew.h.
|
inline |
Definition at line 28 of file stringNew.h.
|
inline |
Definition at line 29 of file stringNew.h.
|
inline |
Definition at line 30 of file stringNew.h.
pfc::string::string | ( | const TSource & | p_source | ) |
Definition at line 216 of file stringNew.h.
|
inline |
Definition at line 33 of file stringNew.h.
|
inline |
Definition at line 34 of file stringNew.h.
|
inline |
Definition at line 199 of file stringNew.h.
|
inline |
Definition at line 126 of file stringNew.h.
|
inline |
Definition at line 86 of file stringNew.h.
bool pfc::string::contains | ( | char | c | ) | const |
Definition at line 79 of file stringNew.cpp.
bool pfc::string::contains | ( | stringp | s | ) | const |
Definition at line 80 of file stringNew.cpp.
bool pfc::string::containsAnyChar | ( | stringp | s | ) | const |
Definition at line 81 of file stringNew.cpp.
bool pfc::string::endsWith | ( | char | c | ) | const |
Definition at line 47 of file stringNew.cpp.
bool pfc::string::endsWith | ( | string | s | ) | const |
Definition at line 52 of file stringNew.cpp.
char pfc::string::firstChar | ( | ) | const |
Definition at line 58 of file stringNew.cpp.
Definition at line 116 of file stringNew.h.
|
inlinestatic |
Definition at line 43 of file stringNew.h.
Definition at line 196 of file stringNew.h.
|
inlinestatic |
Definition at line 197 of file stringNew.h.
|
inline |
Definition at line 128 of file stringNew.h.
|
inline |
Definition at line 125 of file stringNew.h.
Definition at line 5 of file stringNew.cpp.
Definition at line 11 of file stringNew.cpp.
|
inline |
Definition at line 140 of file stringNew.h.
|
inlinestatic |
Definition at line 134 of file stringNew.h.
char pfc::string::lastChar | ( | ) | const |
Definition at line 61 of file stringNew.cpp.
Definition at line 8 of file stringNew.cpp.
Definition at line 14 of file stringNew.cpp.
|
inline |
Definition at line 127 of file stringNew.h.
|
inline |
Definition at line 118 of file stringNew.h.
Definition at line 52 of file stringNew.h.
|
inline |
Definition at line 55 of file stringNew.h.
string pfc::string::operator+ | ( | const TSource & | p_item2 | ) | const |
Definition at line 219 of file stringNew.h.
|
inline |
Definition at line 62 of file stringNew.h.
|
inline |
Definition at line 119 of file stringNew.h.
|
inline |
Definition at line 121 of file stringNew.h.
Definition at line 36 of file stringNew.h.
Definition at line 37 of file stringNew.h.
|
inline |
Definition at line 117 of file stringNew.h.
|
inline |
Definition at line 120 of file stringNew.h.
|
inline |
Definition at line 122 of file stringNew.h.
|
inline |
Definition at line 136 of file stringNew.h.
|
inline |
Definition at line 124 of file stringNew.h.
Definition at line 66 of file stringNew.cpp.
|
inline |
Definition at line 130 of file stringNew.h.
bool pfc::string::startsWith | ( | char | c | ) | const |
Definition at line 35 of file stringNew.cpp.
bool pfc::string::startsWith | ( | string | s | ) | const |
Definition at line 38 of file stringNew.cpp.
Definition at line 67 of file stringNew.h.
Definition at line 71 of file stringNew.h.
|
inline |
Definition at line 75 of file stringNew.h.
|
inline |
Definition at line 40 of file stringNew.h.
|
inline |
Definition at line 80 of file stringNew.h.
|
private |
Definition at line 201 of file stringNew.h.