mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
3f49d92011
commit
482e696847
|
@ -357,19 +357,19 @@ QString escapeAmps( QString const & str );
|
|||
QString unescapeAmps( QString const & str );
|
||||
|
||||
//restrict scope to this very file.
|
||||
namespace{
|
||||
namespace {
|
||||
// encoding mappings between QStringConverter::Encoding and QTextCodec::Encoding
|
||||
const QMap< QStringConverter::Encoding, QTextCodec::Encoding > encodingMap = {
|
||||
{ QStringConverter::Latin1, QTextCodec::Latin1 },
|
||||
{ QStringConverter::Utf8, QTextCodec::Utf8 },
|
||||
{ QStringConverter::Utf16, QTextCodec::Utf16 },
|
||||
{ QStringConverter::Utf16LE , QTextCodec::Utf16LE },
|
||||
{ QStringConverter::Utf16BE , QTextCodec::Utf16BE },
|
||||
{ QStringConverter::Utf32LE , QTextCodec::Utf32LE },
|
||||
{ QStringConverter::Utf32BE , QTextCodec::Utf32BE },
|
||||
{ QStringConverter::Utf16LE, QTextCodec::Utf16LE },
|
||||
{ QStringConverter::Utf16BE, QTextCodec::Utf16BE },
|
||||
{ QStringConverter::Utf32LE, QTextCodec::Utf32LE },
|
||||
{ QStringConverter::Utf32BE, QTextCodec::Utf32BE },
|
||||
// others
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
QTextCodec::Encoding detectCodec( QByteArray & ba, char16_t expectedFirstCharacter = 0 );
|
||||
QStringConverter::Encoding detectEncoding( QByteArray & ba, char16_t expectedFirstCharacter = 0 );
|
||||
|
|
Loading…
Reference in a new issue