]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/string.h
new wxHTML printing code ; parser now supports scaling
[wxWidgets.git] / include / wx / string.h
index cf7a45ac25ca6f976b7f4f9f5e6599d93ad08040..a47ca920c5a4c4b48c936cfe43946b57c4807e0c 100644 (file)
@@ -705,6 +705,8 @@ public:
   void clear() { Empty(); }
     // returns true if the string is empty
   bool empty() const { return IsEmpty(); }
+    // inform string about planned change in size
+  void reserve(size_t size) { Alloc(size); }
 
   // lib.string.access
     // return the character at position n
@@ -857,7 +859,8 @@ public:
               const wxChar* sz, size_t nCount = npos) const;
 
   // substring extraction
-  wxString substr(size_t nStart = 0, size_t nLen = npos) const;
+  wxString substr(size_t nStart = 0, size_t nLen = npos) const
+    { return Mid(nStart, nLen); }
 #endif // wxSTD_STRING_COMPATIBILITY
 };