tagged IsEmpty(), Strlen() and Stricmp() global functions as deprecated, 2.8-compat (they're documented as compatibility only)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -99,17 +99,21 @@ extern WXDLLIMPEXP_DATA_BASE(const wxChar*) wxEmptyString;
|
|||||||
// strlen() and portable strcasecmp()
|
// strlen() and portable strcasecmp()
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#if WXWIN_COMPATIBILITY_2_8
|
||||||
// Use wxXXX() functions from wxcrt.h instead! These functions are for
|
// Use wxXXX() functions from wxcrt.h instead! These functions are for
|
||||||
// backwards compatibility only.
|
// backwards compatibility only.
|
||||||
|
|
||||||
// checks whether the passed in pointer is NULL and if the string is empty
|
// checks whether the passed in pointer is NULL and if the string is empty
|
||||||
|
wxDEPRECATED( inline bool IsEmpty(const char *p) );
|
||||||
inline bool IsEmpty(const char *p) { return (!p || !*p); }
|
inline bool IsEmpty(const char *p) { return (!p || !*p); }
|
||||||
|
|
||||||
// safe version of strlen() (returns 0 if passed NULL pointer)
|
// safe version of strlen() (returns 0 if passed NULL pointer)
|
||||||
|
wxDEPRECATED( inline size_t Strlen(const char *psz) );
|
||||||
inline size_t Strlen(const char *psz)
|
inline size_t Strlen(const char *psz)
|
||||||
{ return psz ? strlen(psz) : 0; }
|
{ return psz ? strlen(psz) : 0; }
|
||||||
|
|
||||||
// portable strcasecmp/_stricmp
|
// portable strcasecmp/_stricmp
|
||||||
|
wxDEPRECATED( inline int Stricmp(const char *psz1, const char *psz2) );
|
||||||
inline int Stricmp(const char *psz1, const char *psz2)
|
inline int Stricmp(const char *psz1, const char *psz2)
|
||||||
{
|
{
|
||||||
#if defined(__VISUALC__) && defined(__WXWINCE__)
|
#if defined(__VISUALC__) && defined(__WXWINCE__)
|
||||||
@@ -167,6 +171,8 @@ inline int Stricmp(const char *psz1, const char *psz2)
|
|||||||
#endif // OS/compiler
|
#endif // OS/compiler
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // WXWIN_COMPATIBILITY_2_8
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// deal with STL/non-STL/non-STL-but-wxUSE_STD_STRING
|
// deal with STL/non-STL/non-STL-but-wxUSE_STD_STRING
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user