From f82c893819dd55a29ad1b32ed5f17978df3c7e39 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 25 Jul 2000 16:41:08 +0000 Subject: [PATCH] added (inline) wxLocale::IsOk() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/intl.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/wx/intl.h b/include/wx/intl.h index fd8960ae45..f9e8f15a2a 100644 --- a/include/wx/intl.h +++ b/include/wx/intl.h @@ -77,6 +77,9 @@ public: // restores old locale ~wxLocale(); + // return TRUE if the locale was set successfully + bool IsOk() const { return m_pszOldLocale != NULL; } + // returns locale name const wxChar *GetLocale() const { return m_strLocale; } @@ -110,7 +113,7 @@ public: // domains are searched in the last to first order, i.e. catalogs // added later override those added before. const wxMB2WXbuf GetString(const wxChar *szOrigString, - const wxChar *szDomain = (const wxChar *) NULL) const; + const wxChar *szDomain = (const wxChar *) NULL) const; // Returns the current short name for the locale const wxString& GetName() const { return m_strShort; } @@ -126,7 +129,7 @@ private: wxLocale *m_pOldLocale; // previous wxLocale wxMsgCatalog *m_pMsgCat; // pointer to linked list of catalogs - + bool m_bConvertEncoding; };