Add wxConvAuto::IsFallbackEncoding()
This commit is contained in:
@@ -91,6 +91,12 @@ public:
|
|||||||
return m_bomType;
|
return m_bomType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Return true if the fall-back encoding is used
|
||||||
|
bool IsFallbackEncoding() const
|
||||||
|
{
|
||||||
|
return m_ownsConv && m_bomType == wxBOM_None;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// common part of all ctors
|
// common part of all ctors
|
||||||
void Init()
|
void Init()
|
||||||
|
@@ -146,6 +146,13 @@ public:
|
|||||||
*/
|
*/
|
||||||
wxBOM GetBOM() const;
|
wxBOM GetBOM() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Check if the fall-back encoding is used.
|
||||||
|
|
||||||
|
@since 3.1.5
|
||||||
|
*/
|
||||||
|
bool IsFallbackEncoding() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Return a pointer to the characters that makes up this BOM.
|
Return a pointer to the characters that makes up this BOM.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user