//According to STL _must_ be a -1 size_t
const size_t wxString::npos = (size_t) -1;
-#if wxUSE_UNICODE_UTF8
-wxString::PosToImplCache wxString::ms_cache;
-#endif // wxUSE_UNICODE_UTF8
-
// ----------------------------------------------------------------------------
// global functions
// ----------------------------------------------------------------------------
wxCHECK_MSG( !strOld.empty(), 0,
_T("wxString::Replace(): invalid parameter") );
- wxSTRING_INVALIDATE_INDEX_CACHE();
-
size_t uiCount = 0; // count of replacements made
// optimize the special common case: replacement of one character by
wbuf.SetLength(wlen);
}
#endif // wxUSE_UNICODE_WCHAR
+
+// ----------------------------------------------------------------------------
+// wxCharBufferType<T>
+// ----------------------------------------------------------------------------
+
+template<>
+wxCharTypeBuffer<char>::Data
+wxCharTypeBuffer<char>::NullData(NULL);
+
+template<>
+wxCharTypeBuffer<wchar_t>::Data
+wxCharTypeBuffer<wchar_t>::NullData(NULL);