extern char *wxBuffer;
+#ifdef __WXMAC__
+int strcasecmp(const char *str_1, const char *str_2)
+{
+ register char c1, c2;
+ do {
+ c1 = tolower(*str_1++);
+ c2 = tolower(*str_2++);
+ } while ( c1 && (c1 == c2) );
+
+ return c1 - c2;
+}
+
+int strncasecmp(const char *str_1, const char *str_2, size_t maxchar)
+{
+
+ register char c1, c2;
+ while( maxchar--)
+ {
+ c1 = tolower(*str_1++);
+ c2 = tolower(*str_2++);
+
+ if ( !c1 || c1!=c2 )
+ return c1 - c2;
+
+ } ;
+
+ return 0 ;
+
+}
+#endif
#ifdef __VMS__
// we have no strI functions under VMS, therefore I have implemented
// an inefficient but portable version: convert copies of strings to lowercase
return menuBar->FindMenuItem (menuString, itemString);
}
-/*
- * wxDebugStreamBuf
- */
-#if !defined(_WINDLL)
-
-wxDebugStreamBuf::wxDebugStreamBuf(void)
-{
- // <iostream> usage doesn't need this, and i have no idea how to simulate it.
-#if wxUSE_IOSTREAMH
- if (allocate())
- setp(base(),ebuf());
-#endif
-}
-
-int wxDebugStreamBuf::overflow(int WXUNUSED(i))
-{
- int len = pptr() - pbase();
- char *txt = new char[len+1];
- strncpy(txt, pbase(), len);
- txt[len] = '\0';
-#ifdef __WXMSW__
- OutputDebugString((LPCSTR)txt);
-#else
- fprintf(stderr, txt);
-#endif
- setp(pbase(), epptr());
- delete[] txt;
- return EOF;
-}
-
-int wxDebugStreamBuf::sync(void)
-{
- int len = pptr() - pbase();
- char *txt = new char[len+1];
- strncpy(txt, pbase(), len);
- txt[len] = '\0';
-#ifdef __WXMSW__
- OutputDebugString((LPCSTR)txt);
-#else
- fprintf(stderr, txt);
-#endif
- setp(pbase(), epptr());
- delete[] txt;
- return 0;
-}
-
-#endif
-
/*
On Fri, 21 Jul 1995, Paul Craven wrote:
{
return ( c >= 0 && c < 128 ) ;
}
-#endif
\ No newline at end of file
+#endif