/// portable strcasecmp/_stricmp
int WXDLLEXPORT Stricmp(const char *, const char *);
+// ----------------------------------------------------------------------------
+// global data
+// ----------------------------------------------------------------------------
+
+// global pointer to empty string
+extern const char *g_szNul;
+
+// return an empty wxString
+class wxString; // not yet defined
+inline const wxString& wxGetEmptyString() { return *(wxString *)&g_szNul; }
+
// ---------------------------------------------------------------------------
-// string data prepended with some housekeeping info (used by String class),
+// string data prepended with some housekeeping info (used by wxString class),
// is never used directly (but had to be put here to allow inlining)
// ---------------------------------------------------------------------------
struct WXDLLEXPORT wxStringData
bool IsValid() const { return nRefs != 0; }
};
-extern const char *g_szNul; // global pointer to empty string
-
// ---------------------------------------------------------------------------
/**
This is (yet another one) String class for C++ programmers. It doesn't use
///
inline bool operator>=(const char * s1, const wxString& s2) { return s2.Cmp(s1) <= 0; }
//@}
-
+
// ---------------------------------------------------------------------------
/** @name Global functions complementing standard C string library
@memo replacements for strlen() and portable strcasecmp()