+ wxString s;
+ s.Printf("...%d", n);
+\end{verbatim}
+
+\helpref{Format}{wxstringformat}\\
+\helpref{FormatV}{wxstringformatv}\\
+\helpref{Printf}{wxstringprintf}\\
+\helpref{PrintfV}{wxstringprintfv}\\
+\helpref{operator \cinsert}{wxstringoperatorout}
+
+\membersection{Memory management}
+
+These are "advanced" functions and they will be needed quite rarely.
+\helpref{Alloc}{wxstringalloc} and \helpref{Shrink}{wxstringshrink} are only
+interesting for optimization purposes.
+\helpref{GetWriteBuf}{wxstringgetwritebuf} may be very useful when working with
+some external API which requires the caller to provide a writable buffer, but
+extreme care should be taken when using it: before performing any other
+operation on the string \helpref{UngetWriteBuf}{wxstringungetwritebuf} {\bf
+must} be called!
+
+\helpref{Alloc}{wxstringalloc}\\
+\helpref{Shrink}{wxstringshrink}\\
+\helpref{GetWriteBuf}{wxstringgetwritebuf}\\
+\helpref{UngetWriteBuf}{wxstringungetwritebuf}
+
+\membersection{Miscellaneous}
+
+Other string functions.
+
+\helpref{Trim}{wxstringtrim}\\
+\helpref{Pad}{wxstringpad}\\
+\helpref{Truncate}{wxstringtruncate}
+
+\membersection{wxWindows 1.xx compatibility functions}
+
+These functions are deprecated, please consider using new wxWindows 2.0
+functions instead of them (or, even better, std::string compatible variants).
+
+\helpref{SubString}{wxstringsubstring}\\
+\helpref{sprintf}{wxstringsprintf}\\
+\helpref{CompareTo}{wxstringcompareto}\\
+\helpref{Length}{wxstringlength}\\
+\helpref{Freq}{wxstringfreq}\\
+\helpref{LowerCase}{wxstringlowercase}\\
+\helpref{UpperCase}{wxstringuppercase}\\
+\helpref{Strip}{wxstringstrip}\\
+\helpref{Index}{wxstringindex}\\
+\helpref{Remove}{wxstringremove}\\
+\helpref{First}{wxstringfirst}\\
+\helpref{Last}{wxstringlast}\\
+\helpref{Contains}{wxstringcontains}\\
+\helpref{IsNull}{wxstringisnull}\\
+\helpref{IsAscii}{wxstringisascii}\\
+\helpref{IsNumber}{wxstringisnumber}\\
+\helpref{IsWord}{wxstringisword}
+
+\membersection{std::string compatibility functions}\label{wxstringat}
+
+The supported functions are only listed here, please see any STL reference for
+their documentation.
+
+\begin{verbatim}
+ // take nLen chars starting at nPos
+ wxString(const wxString& str, size_t nPos, size_t nLen);
+ // take all characters from pStart to pEnd (poor man's iterators)
+ wxString(const void *pStart, const void *pEnd);
+
+ // lib.string.capacity
+ // return the length of the string
+ size_t size() const;
+ // return the length of the string
+ size_t length() const;
+ // return the maximum size of the string
+ size_t max_size() const;
+ // resize the string, filling the space with c if c != 0
+ void resize(size_t nSize, char ch = '\0');
+ // delete the contents of the string
+ void clear();
+ // returns true if the string is empty
+ bool empty() const;
+
+ // lib.string.access
+ // return the character at position n
+ char at(size_t n) const;
+ // returns the writable character at position n
+ char& at(size_t n);
+
+ // lib.string.modifiers
+ // append a string
+ wxString& append(const wxString& str);
+ // append elements str[pos], ..., str[pos+n]
+ wxString& append(const wxString& str, size_t pos, size_t n);
+ // append first n (or all if n == npos) characters of sz
+ wxString& append(const char *sz, size_t n = npos);
+
+ // append n copies of ch
+ wxString& append(size_t n, char ch);
+
+ // same as `this_string = str'
+ wxString& assign(const wxString& str);
+ // same as ` = str[pos..pos + n]
+ wxString& assign(const wxString& str, size_t pos, size_t n);
+ // same as `= first n (or all if n == npos) characters of sz'
+ wxString& assign(const char *sz, size_t n = npos);
+ // same as `= n copies of ch'
+ wxString& assign(size_t n, char ch);
+
+ // insert another string
+ wxString& insert(size_t nPos, const wxString& str);
+ // insert n chars of str starting at nStart (in str)
+ wxString& insert(size_t nPos, const wxString& str, size_t nStart, size_t n);
+
+ // insert first n (or all if n == npos) characters of sz
+ wxString& insert(size_t nPos, const char *sz, size_t n = npos);
+ // insert n copies of ch
+ wxString& insert(size_t nPos, size_t n, char ch);
+
+ // delete characters from nStart to nStart + nLen
+ wxString& erase(size_t nStart = 0, size_t nLen = npos);
+
+ // replaces the substring of length nLen starting at nStart
+ wxString& replace(size_t nStart, size_t nLen, const char* sz);
+ // replaces the substring with nCount copies of ch
+ wxString& replace(size_t nStart, size_t nLen, size_t nCount, char ch);
+ // replaces a substring with another substring
+ wxString& replace(size_t nStart, size_t nLen,
+ const wxString& str, size_t nStart2, size_t nLen2);
+ // replaces the substring with first nCount chars of sz
+ wxString& replace(size_t nStart, size_t nLen,
+ const char* sz, size_t nCount);
+
+ // swap two strings
+ void swap(wxString& str);
+
+ // All find() functions take the nStart argument which specifies the
+ // position to start the search on, the default value is 0. All functions
+ // return npos if there were no match.
+
+ // find a substring
+ size_t find(const wxString& str, size_t nStart = 0) const;
+
+ // find first n characters of sz
+ size_t find(const char* sz, size_t nStart = 0, size_t n = npos) const;
+
+ // find the first occurrence of character ch after nStart
+ size_t find(char ch, size_t nStart = 0) const;
+
+ // rfind() family is exactly like find() but works right to left
+
+ // as find, but from the end
+ size_t rfind(const wxString& str, size_t nStart = npos) const;
+
+ // as find, but from the end
+ size_t rfind(const char* sz, size_t nStart = npos,
+ size_t n = npos) const;
+ // as find, but from the end
+ size_t rfind(char ch, size_t nStart = npos) const;
+
+ // find first/last occurrence of any character in the set
+
+ //
+ size_t find_first_of(const wxString& str, size_t nStart = 0) const;
+ //
+ size_t find_first_of(const char* sz, size_t nStart = 0) const;
+ // same as find(char, size_t)
+ size_t find_first_of(char c, size_t nStart = 0) const;
+ //
+ size_t find_last_of (const wxString& str, size_t nStart = npos) const;
+ //
+ size_t find_last_of (const char* s, size_t nStart = npos) const;
+ // same as rfind(char, size_t)
+ size_t find_last_of (char c, size_t nStart = npos) const;
+
+ // find first/last occurrence of any character not in the set
+
+ //
+ size_t find_first_not_of(const wxString& str, size_t nStart = 0) const;
+ //
+ size_t find_first_not_of(const char* s, size_t nStart = 0) const;
+ //
+ size_t find_first_not_of(char ch, size_t nStart = 0) const;
+ //
+ size_t find_last_not_of(const wxString& str, size_t nStart=npos) const;
+ //
+ size_t find_last_not_of(const char* s, size_t nStart = npos) const;
+ //
+ size_t find_last_not_of(char ch, size_t nStart = npos) const;
+
+ // All compare functions return a negative, zero or positive value
+ // if the [sub]string is less, equal or greater than the compare() argument.
+
+ // just like strcmp()
+ int compare(const wxString& str) const;
+ // comparison with a substring
+ int compare(size_t nStart, size_t nLen, const wxString& str) const;
+ // comparison of 2 substrings
+ int compare(size_t nStart, size_t nLen,
+ const wxString& str, size_t nStart2, size_t nLen2) const;
+ // just like strcmp()
+ int compare(const char* sz) const;
+ // substring comparison with first nCount characters of sz
+ int compare(size_t nStart, size_t nLen,
+ const char* sz, size_t nCount = npos) const;
+
+ // substring extraction
+ wxString substr(size_t nStart = 0, size_t nLen = npos) const;
+\end{verbatim}
+
+%%%%% MEMBERS HERE %%%%%
+\helponly{\insertatlevel{2}{
+
+\wxheading{Members}
+
+}}