Version: 3.1.6
string.h File Reference

Classes

class  wxString
 
class  wxStringBufferLength
 
class  wxStringBuffer
 

Functions

bool operator== (const wxString &s1, const wxString &s2)
 Comparison operator for string types. More...
 
bool operator!= (const wxString &s1, const wxString &s2)
 
bool operator< (const wxString &s1, const wxString &s2)
 
bool operator> (const wxString &s1, const wxString &s2)
 
bool operator<= (const wxString &s1, const wxString &s2)
 
bool operator>= (const wxString &s1, const wxString &s2)
 
bool operator== (const wxString &s1, const wxCStrData &s2)
 
bool operator== (const wxCStrData &s1, const wxString &s2)
 
bool operator!= (const wxString &s1, const wxCStrData &s2)
 
bool operator!= (const wxCStrData &s1, const wxString &s2)
 
bool operator== (const wxString &s1, const wxWCharBuffer &s2)
 
bool operator== (const wxWCharBuffer &s1, const wxString &s2)
 
bool operator!= (const wxString &s1, const wxWCharBuffer &s2)
 
bool operator!= (const wxWCharBuffer &s1, const wxString &s2)
 
bool operator== (const wxString &s1, const wxCharBuffer &s2)
 
bool operator== (const wxCharBuffer &s1, const wxString &s2)
 
bool operator!= (const wxString &s1, const wxCharBuffer &s2)
 
bool operator!= (const wxCharBuffer &s1, const wxString &s2)
 
bool operator== (const wxUniChar &c, const wxString &s)
 Comparison operators char types. More...
 
bool operator== (const wxUniCharRef &c, const wxString &s)
 
bool operator== (char c, const wxString &s)
 
bool operator== (wchar_t c, const wxString &s)
 
bool operator== (int c, const wxString &s)
 
bool operator== (const wxString &s, const wxUniChar &c)
 
bool operator== (const wxString &s, const wxUniCharRef &c)
 
bool operator== (const wxString &s, char c)
 
bool operator== (const wxString &s, wchar_t c)
 
bool operator!= (const wxUniChar &c, const wxString &s)
 
bool operator!= (const wxUniCharRef &c, const wxString &s)
 
bool operator!= (char c, const wxString &s)
 
bool operator!= (wchar_t c, const wxString &s)
 
bool operator!= (int c, const wxString &s)
 
bool operator!= (const wxString &s, const wxUniChar &c)
 
bool operator!= (const wxString &s, const wxUniCharRef &c)
 
bool operator!= (const wxString &s, char c)
 
bool operator!= (const wxString &s, wchar_t c)
 
template<bool(T)(const wxUniChar &c) >
bool wxStringCheck (const wxString &val)
 Allows extending a function with the signature: More...
 
wxString wxASCII_STR (const char *s)
 Convenience macro for explicitly constructing wxString from ASCII strings. More...
 

Variables

wxString wxEmptyString
 The global wxString instance of an empty string. More...
 

Function Documentation

◆ operator!=() [1/16]

bool operator!= ( char  c,
const wxString s 
)
inline

◆ operator!=() [2/16]

bool operator!= ( const wxCharBuffer s1,
const wxString s2 
)
inline

◆ operator!=() [3/16]

bool operator!= ( const wxCStrData &  s1,
const wxString s2 
)
inline

◆ operator!=() [4/16]

bool operator!= ( const wxString s,
char  c 
)
inline

◆ operator!=() [5/16]

bool operator!= ( const wxString s,
const wxUniChar c 
)
inline

◆ operator!=() [6/16]

bool operator!= ( const wxString s,
const wxUniCharRef c 
)
inline

◆ operator!=() [7/16]

bool operator!= ( const wxString s,
wchar_t  c 
)
inline

◆ operator!=() [8/16]

bool operator!= ( const wxString s1,
const wxCharBuffer s2 
)
inline

◆ operator!=() [9/16]

bool operator!= ( const wxString s1,
const wxCStrData &  s2 
)
inline

◆ operator!=() [10/16]

bool operator!= ( const wxString s1,
const wxString s2 
)
inline

◆ operator!=() [11/16]

bool operator!= ( const wxString s1,
const wxWCharBuffer s2 
)
inline

◆ operator!=() [12/16]

bool operator!= ( const wxUniChar c,
const wxString s 
)
inline

◆ operator!=() [13/16]

bool operator!= ( const wxUniCharRef c,
const wxString s 
)
inline

◆ operator!=() [14/16]

bool operator!= ( const wxWCharBuffer s1,
const wxString s2 
)
inline

◆ operator!=() [15/16]

bool operator!= ( int  c,
const wxString s 
)
inline

◆ operator!=() [16/16]

bool operator!= ( wchar_t  c,
const wxString s 
)
inline

◆ operator<()

bool operator< ( const wxString s1,
const wxString s2 
)
inline

◆ operator<=()

bool operator<= ( const wxString s1,
const wxString s2 
)
inline

◆ operator==() [1/16]

bool operator== ( char  c,
const wxString s 
)
inline

◆ operator==() [2/16]

bool operator== ( const wxCharBuffer s1,
const wxString s2 
)
inline

◆ operator==() [3/16]

bool operator== ( const wxCStrData &  s1,
const wxString s2 
)
inline

◆ operator==() [4/16]

bool operator== ( const wxString s,
char  c 
)
inline

◆ operator==() [5/16]

bool operator== ( const wxString s,
const wxUniChar c 
)
inline

◆ operator==() [6/16]

bool operator== ( const wxString s,
const wxUniCharRef c 
)
inline

◆ operator==() [7/16]

bool operator== ( const wxString s,
wchar_t  c 
)
inline

◆ operator==() [8/16]

bool operator== ( const wxString s1,
const wxCharBuffer s2 
)
inline

◆ operator==() [9/16]

bool operator== ( const wxString s1,
const wxCStrData &  s2 
)
inline

◆ operator==() [10/16]

bool operator== ( const wxString s1,
const wxString s2 
)
inline

Comparison operator for string types.

◆ operator==() [11/16]

bool operator== ( const wxString s1,
const wxWCharBuffer s2 
)
inline

◆ operator==() [12/16]

bool operator== ( const wxUniChar c,
const wxString s 
)
inline

Comparison operators char types.

◆ operator==() [13/16]

bool operator== ( const wxUniCharRef c,
const wxString s 
)
inline

◆ operator==() [14/16]

bool operator== ( const wxWCharBuffer s1,
const wxString s2 
)
inline

◆ operator==() [15/16]

bool operator== ( int  c,
const wxString s 
)
inline

◆ operator==() [16/16]

bool operator== ( wchar_t  c,
const wxString s 
)
inline

◆ operator>()

bool operator> ( const wxString s1,
const wxString s2 
)
inline

◆ operator>=()

bool operator>= ( const wxString s1,
const wxString s2 
)
inline

◆ wxASCII_STR()

wxString wxASCII_STR ( const char *  s)

Convenience macro for explicitly constructing wxString from ASCII strings.

This macro simply expands to a call to wxString::FromAscii() but is slightly shorter.

Since
3.1.4

◆ wxStringCheck()

template<bool(T)(const wxUniChar &c) >
bool wxStringCheck ( const wxString val)
inline

Allows extending a function with the signature:

bool SomeFunc(const wxUniChar& c)

which operates on a single character, to an entire wxString.

E.g. if you want to check if an entire string contains only digits, you can do:

if (wxStringCheck<wxIsdigit>(myString))
... // the entire string contains only digits!
else
... // at least one character of myString is not a digit
Returns
true if the given function returns a non-zero value for all characters of the val string.

Variable Documentation

◆ wxEmptyString

wxString wxEmptyString

The global wxString instance of an empty string.

Used extensively in the entire wxWidgets API.

Definition: unichar.h:17