wxWidgets: /home/Hamish/wxwidgets/wxWidgets3.0-3.0.5.1-1.src/wxWidgets3.0-3.0.5.1-1.i686/src/wxWidgets-3.0.5.1/interface/wx/string.h File Reference

| Version: 3.0.5

Classes | Functions | Variables
string.h File Reference

## Classes
class | wxString
| String class for passing textual data to or receiving it from wxWidgets. More...
class | wxStringBufferLength
| This tiny class allows you to conveniently access the wxString internal buffer as a writable pointer without any risk of forgetting to restore the string to the usable state later, and allows the user to set the internal length of the string. More...
class | wxStringBuffer
| This tiny class allows you to conveniently access the wxString internal buffer as a writable pointer without any risk of forgetting to restore the string to the usable state later. More...

## 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...

## 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

## ◆ 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.

wxUniChar
This class represents a single Unicode character.
Definition: unichar.h:18