added wxString::EndsWith() (patch 1483049)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -72,6 +72,7 @@ All:
|
||||
- Fixed bug where wxDateTime::Now() would sometimes return an incorrect value
|
||||
the first time it was called.
|
||||
- Added wxString::rbegin() and rend()
|
||||
- Added wxString::EndsWith()
|
||||
|
||||
|
||||
All (GUI):
|
||||
|
@@ -124,7 +124,8 @@ length of the prefix then.
|
||||
\helpref{CmpNoCase}{wxstringcmpnocase}\\
|
||||
\helpref{IsSameAs}{wxstringissameas}\\
|
||||
\helpref{Matches}{wxstringmatches}\\
|
||||
\helpref{StartsWith}{wxstringstartswith}
|
||||
\helpref{StartsWith}{wxstringstartswith}\\
|
||||
\helpref{EndsWith}{wxstringendswith}
|
||||
|
||||
\membersection{Substring extraction}\label{substringextractioninwxstring}
|
||||
|
||||
@@ -140,7 +141,9 @@ substring.
|
||||
\helpref{BeforeLast}{wxstringbeforelast}\\
|
||||
\helpref{AfterFirst}{wxstringafterfirst}\\
|
||||
\helpref{AfterLast}{wxstringafterlast}\\
|
||||
\helpref{StartsWith}{wxstringstartswith}
|
||||
\helpref{StartsWith}{wxstringstartswith}\\
|
||||
\helpref{EndsWith}{wxstringendswith}
|
||||
|
||||
|
||||
\membersection{Case conversion}\label{caseconversioninwxstring}
|
||||
|
||||
@@ -967,6 +970,16 @@ of the string (i.e. after the prefix) into {\it rest} string if it is not
|
||||
{\tt NULL}. Otherwise, the function returns {\tt false} and doesn't modify the
|
||||
{\it rest}.
|
||||
|
||||
\membersection{wxString::EndsWith}\label{wxstringendswith}
|
||||
|
||||
\constfunc{bool}{EndsWith}{\param{const wxChar }{*suffix}, \param{wxString }{*rest = NULL}}
|
||||
|
||||
This function can be used to test if the string ends with the specified
|
||||
{\it suffix}. If it does, the function will return {\tt true} and put the
|
||||
beginning of the string before the suffix into {\it rest} string if it is not
|
||||
{\tt NULL}. Otherwise, the function returns {\tt false} and doesn't
|
||||
modify the {\it rest}.
|
||||
|
||||
\membersection{wxString::Strip}\label{wxstringstrip}
|
||||
|
||||
\begin{verbatim}
|
||||
|
Reference in New Issue
Block a user