Apply implicit encoding check to wxString::{starts,ends}_with() too
Don't provide the overloads taking "const char*" when compiling with wxNO_IMPLICIT_WXSTRING_ENCODING is defined.
This commit is contained in:
parent
34c130abfa
commit
a2609429a3
1 changed files with 4 additions and 0 deletions
|
|
@ -3435,15 +3435,19 @@ public:
|
|||
|
||||
bool starts_with(const wxString &str) const
|
||||
{ return StartsWith(str); }
|
||||
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
|
||||
bool starts_with(const char *sz) const
|
||||
{ return StartsWith(sz); }
|
||||
#endif // wxNO_IMPLICIT_WXSTRING_ENCODING
|
||||
bool starts_with(const wchar_t *sz) const
|
||||
{ return StartsWith(sz); }
|
||||
|
||||
bool ends_with(const wxString &str) const
|
||||
{ return EndsWith(str); }
|
||||
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
|
||||
bool ends_with(const char *sz) const
|
||||
{ return EndsWith(sz); }
|
||||
#endif // wxNO_IMPLICIT_WXSTRING_ENCODING
|
||||
bool ends_with(const wchar_t *sz) const
|
||||
{ return EndsWith(sz); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue