Move wxLocaleIdent implementation out of line
No real changes, just don't make all wxLocaleIdent setters inline, this is not necessary as none of these methods are performance-critical. This commit is best viewed with --color-moved git option.
This commit is contained in:
@@ -45,39 +45,19 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set language
|
// Set language
|
||||||
wxLocaleIdent& Language(const wxString& language)
|
wxLocaleIdent& Language(const wxString& language);
|
||||||
{
|
|
||||||
m_language = language;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set region
|
// Set region
|
||||||
wxLocaleIdent& Region(const wxString& region)
|
wxLocaleIdent& Region(const wxString& region);
|
||||||
{
|
|
||||||
m_region = region;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set script (not supported under Unix)
|
// Set script (not supported and ignored under Unix)
|
||||||
wxLocaleIdent& Script(const wxString& script)
|
wxLocaleIdent& Script(const wxString& script);
|
||||||
{
|
|
||||||
m_script = script;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set charset (only supported under Unix)
|
// Set charset (only supported under Unix)
|
||||||
wxLocaleIdent& Charset(const wxString& charset)
|
wxLocaleIdent& Charset(const wxString& charset);
|
||||||
{
|
|
||||||
m_charset = charset;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set modifier (only supported under Unix)
|
// Set modifier (only supported under Unix)
|
||||||
wxLocaleIdent& Modifier(const wxString& modifier)
|
wxLocaleIdent& Modifier(const wxString& modifier);
|
||||||
{
|
|
||||||
m_modifier = modifier;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Accessors for the individual fields.
|
// Accessors for the individual fields.
|
||||||
const wxString& GetLanguage() const { return m_language; }
|
const wxString& GetLanguage() const { return m_language; }
|
||||||
|
@@ -41,6 +41,44 @@ wxUILocale wxUILocale::ms_current;
|
|||||||
// implementation
|
// implementation
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// wxLocaleIdent
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
wxLocaleIdent& wxLocaleIdent::Language(const wxString& language)
|
||||||
|
{
|
||||||
|
m_language = language;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
wxLocaleIdent& wxLocaleIdent::Region(const wxString& region)
|
||||||
|
{
|
||||||
|
m_region = region;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
wxLocaleIdent& wxLocaleIdent::Script(const wxString& script)
|
||||||
|
{
|
||||||
|
m_script = script;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
wxLocaleIdent& wxLocaleIdent::Charset(const wxString& charset)
|
||||||
|
{
|
||||||
|
m_charset = charset;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
wxLocaleIdent& wxLocaleIdent::Modifier(const wxString& modifier)
|
||||||
|
{
|
||||||
|
m_modifier = modifier;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// wxUILocale
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef __WINDOWS__
|
#ifndef __WINDOWS__
|
||||||
|
|
||||||
/* static */
|
/* static */
|
||||||
|
Reference in New Issue
Block a user