Some corrections for BC++ compilation; Latex doc corrections

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-01-31 11:42:58 +00:00
parent ac0d36b523
commit 03ab016d66
10 changed files with 40 additions and 28 deletions

View File

@@ -1092,6 +1092,13 @@ int wxString::Freq(char ch) const
return count;
}
// convert to upper case, return the copy of the string
wxString wxString::Upper() const
{ wxString s(*this); return s.MakeUpper(); }
// convert to lower case, return the copy of the string
wxString wxString::Lower() const { wxString s(*this); return s.MakeLower(); }
// ---------------------------------------------------------------------------
// standard C++ library string functions
// ---------------------------------------------------------------------------

View File

@@ -142,7 +142,7 @@ wxBitmap::wxBitmap(const char bits[], int the_width, int the_height, int no_bits
}
// Create from XPM data
wxBitmap::wxBitmap(char **data, wxItem *WXUNUSED(anItem))
wxBitmap::wxBitmap(char **data, wxControl *WXUNUSED(anItem))
{
(void) Create((void *)data, wxBITMAP_TYPE_XPM_DATA, 0, 0, 0);
}

View File

@@ -34,15 +34,16 @@
#include "wx/module.h"
#include "wx/dde.h"
#include "wx/msw/private.h"
#include <windows.h>
#include <ddeml.h>
#ifndef __TWIN32__
#ifdef __GNUWIN32__
#include "wx/msw/gnuwin32/extra.h"
#endif
#endif
#include "wx/msw/private.h"
#include <windows.h>
#include <ddeml.h>
#include <string.h>
#ifdef __WIN32__

View File

@@ -788,6 +788,21 @@ bool wxRegKey::GetNextKey(wxString& strKeyName, long& lIndex) const
return TRUE;
}
// returns TRUE if the value contains a number (else it's some string)
bool wxRegKey::IsNumericValue(const char *szValue) const
{
ValueType type = GetValueType(szValue);
switch ( type ) {
case Type_Dword:
case Type_Dword_little_endian:
case Type_Dword_big_endian:
return TRUE;
default:
return FALSE;
}
}
// ============================================================================
// implementation of global private functions
// ============================================================================