]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/string.cpp
In the object destructor, Disassociate the object from its Cocoa counterpart
[wxWidgets.git] / src / common / string.cpp
index 7ac3f254a2fd960f5c32a4910c20b8277d4c25e6..37bda6581efd58627a2e807d921fdb7de5fa38b9 100644 (file)
@@ -1013,11 +1013,15 @@ wxString::Replace(const wxChar *szOld, const wxChar *szNew, bool bReplaceAll)
   return uiCount;
 }
 
+#ifdef __WXWINCE__
+inline int isascii(wxChar c) { return (c >= 0) && (c <=127); }
+#endif
+
 bool wxString::IsAscii() const
 {
   const wxChar *s = (const wxChar*) *this;
   while(*s){
-    if(!wxIsascii(*s)) return(FALSE);
+    if(!isascii(*s)) return(FALSE);
     s++;
   }
   return(TRUE);