return !*end && (end != start);
}
-// ---------------------------------------------------------------------------
-// stream-like operators
-// ---------------------------------------------------------------------------
-wxString& wxString::operator<<(int i)
-{
- wxString res;
- res.Printf(wxT("%d"), i);
-
- return (*this) << res;
-}
-
-wxString& wxString::operator<<(float f)
-{
- wxString res;
- res.Printf(wxT("%f"), f);
-
- return (*this) << res;
-}
-
-wxString& wxString::operator<<(double d)
-{
- wxString res;
- res.Printf(wxT("%g"), d);
-
- return (*this) << res;
-}
-
// ---------------------------------------------------------------------------
// formatted output
// ---------------------------------------------------------------------------
#if !defined(__VISUALC__) || defined(__WIN32__)
size_t wxString::find(const wxChar* sz, size_t nStart, size_t n) const
{
- return find(wxString(sz, n == npos ? 0 : n), nStart);
+ return find(wxString(sz, n), nStart);
}
#endif // VC++ 1.5