1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-08-05 15:41:47 +02:00

Major plugin refactor and cleanup.

Switched to POCO library for unified platform/library interface.
Deprecated the external module API. It was creating more problems than solving.
Removed most built-in libraries in favor of system libraries for easier maintenance.
Cleaned and secured code with help from static analyzers.
This commit is contained in:
Sandu Liviu Catalin
2021-01-30 08:51:39 +02:00
parent e0e34b4030
commit 4a6bfc086c
6219 changed files with 1209835 additions and 454916 deletions

View File

@@ -0,0 +1,122 @@
//
// DoubleByteEncoding.h
//
// Library: Encodings
// Package: Encodings
// Module: DoubleByteEncoding
//
// Definition of the DoubleByteEncoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_DoubleByteEncoding_INCLUDED
#define Encodings_DoubleByteEncoding_INCLUDED
#include "Poco/Encodings.h"
#include "Poco/TextEncoding.h"
namespace Poco {
class Encodings_API DoubleByteEncoding: public TextEncoding
/// This abstract class is a base class for various double-byte character
/// set (DBCS) encodings.
///
/// Double-byte encodings are variants of multi-byte encodings
/// where (Unicode) each code point is represented by one or
/// two bytes. Unicode code points are restricted to the
/// Basic Multilingual Plane.
///
/// Subclasses must provide encoding names, a static CharacterMap, as well
/// as static Mapping and reverse Mapping tables, and provide these to the
/// DoubleByteEncoding constructor.
{
public:
struct Mapping
{
Poco::UInt16 from;
Poco::UInt16 to;
};
// TextEncoding
const char* canonicalName() const;
bool isA(const std::string& encodingName) const;
const CharacterMap& characterMap() const;
int convert(const unsigned char* bytes) const;
int convert(int ch, unsigned char* bytes, int length) const;
int queryConvert(const unsigned char* bytes, int length) const;
int sequenceLength(const unsigned char* bytes, int length) const;
protected:
DoubleByteEncoding(const char** names, const TextEncoding::CharacterMap& charMap, const Mapping mappingTable[], std::size_t mappingTableSize, const Mapping reverseMappingTable[], std::size_t reverseMappingTableSize);
/// Creates a DoubleByteEncoding using the given mapping and reverse-mapping tables.
///
/// names must be a static array declared in the derived class,
/// containing the names of this encoding, declared as:
///
/// const char* MyEncoding::_names[] =
/// {
/// "myencoding",
/// "MyEncoding",
/// NULL
/// };
///
/// The first entry in names must be the canonical name.
///
/// charMap must be a static CharacterMap giving information about double-byte
/// character sequences.
///
/// For each mappingTable item, from must be a value in range 0x0100 to
// 0xFFFF for double-byte mappings, which the most significant (upper) byte
/// representing the first character in the sequence and the lower byte
/// representing the second character in the sequence.
///
/// For each reverseMappingTable item, from must be Unicode code point from the
/// Basic Multilingual Plane, and to is a one-byte or two-byte sequence.
/// As with mappingTable, a one-byte sequence is in range 0x00 to 0xFF, and a
/// two-byte sequence is in range 0x0100 to 0xFFFF.
///
/// Unicode code points are restricted to the Basic Multilingual Plane
/// (code points 0x0000 to 0xFFFF).
///
/// Items in both tables must be sorted by from, in ascending order.
~DoubleByteEncoding();
/// Destroys the DoubleByteEncoding.
int map(Poco::UInt16 encoded) const;
/// Maps a double-byte encoded character to its Unicode code point.
///
/// Returns the Unicode code point, or -1 if the encoded character is bad
/// and cannot be mapped.
int reverseMap(int cp) const;
/// Maps a Unicode code point to its double-byte representation.
///
/// Returns -1 if the code point cannot be mapped, otherwise
/// a value in range 0 to 0xFF for single-byte mappings, or
/// 0x0100 to 0xFFFF for double-byte mappings.
private:
DoubleByteEncoding();
const char** _names;
const TextEncoding::CharacterMap& _charMap;
const Mapping* _mappingTable;
const std::size_t _mappingTableSize;
const Mapping* _reverseMappingTable;
const std::size_t _reverseMappingTableSize;
};
} // namespace Poco
#endif // Encodings_DoubleByteEncoding_INCLUDED

View File

@@ -0,0 +1,73 @@
//
// Encodings.h
//
// Library: Encodings
// Package: Encodings
// Module: Encodings
//
// Basic definitions for the Poco Encodings library.
// This file must be the first file included by every other Encodings
// header file.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_Encodings_INCLUDED
#define Encodings_Encodings_INCLUDED
#include "Poco/Foundation.h"
//
// The following block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the Encodings_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// Encodings_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
//
#if defined(_WIN32) && defined(POCO_DLL)
#if defined(Encodings_EXPORTS)
#define Encodings_API __declspec(dllexport)
#else
#define Encodings_API __declspec(dllimport)
#endif
#endif
#if !defined(Encodings_API)
#if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define Encodings_API __attribute__ ((visibility ("default")))
#else
#define Encodings_API
#endif
#endif
//
// Automatically link Encodings library.
//
#if defined(_MSC_VER)
#if !defined(POCO_NO_AUTOMATIC_LIBS) && !defined(Encodings_EXPORTS)
#pragma comment(lib, "PocoEncodings" POCO_LIB_SUFFIX)
#endif
#endif
namespace Poco {
void Encodings_API registerExtraEncodings();
/// Registers the character encodings from the Encodings library
/// with the TextEncoding class.
} // namespace Poco
#endif // Encodings_Encodings_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// ISO8859_10Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: ISO8859_10Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_ISO8859_10Encoding_INCLUDED
#define Encodings_ISO8859_10Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API ISO8859_10Encoding: public DoubleByteEncoding
/// ISO-8859-10 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-10.TXT.
{
public:
ISO8859_10Encoding();
~ISO8859_10Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_ISO8859_10Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// ISO8859_11Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: ISO8859_11Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_ISO8859_11Encoding_INCLUDED
#define Encodings_ISO8859_11Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API ISO8859_11Encoding: public DoubleByteEncoding
/// ISO-8859-11 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-11.TXT.
{
public:
ISO8859_11Encoding();
~ISO8859_11Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_ISO8859_11Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// ISO8859_13Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: ISO8859_13Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_ISO8859_13Encoding_INCLUDED
#define Encodings_ISO8859_13Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API ISO8859_13Encoding: public DoubleByteEncoding
/// ISO-8859-13 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-13.TXT.
{
public:
ISO8859_13Encoding();
~ISO8859_13Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_ISO8859_13Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// ISO8859_14Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: ISO8859_14Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_ISO8859_14Encoding_INCLUDED
#define Encodings_ISO8859_14Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API ISO8859_14Encoding: public DoubleByteEncoding
/// ISO-8859-14 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-14.TXT.
{
public:
ISO8859_14Encoding();
~ISO8859_14Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_ISO8859_14Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// ISO8859_16Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: ISO8859_16Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_ISO8859_16Encoding_INCLUDED
#define Encodings_ISO8859_16Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API ISO8859_16Encoding: public DoubleByteEncoding
/// ISO-8859-16 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-16.TXT.
{
public:
ISO8859_16Encoding();
~ISO8859_16Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_ISO8859_16Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// ISO8859_3Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: ISO8859_3Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_ISO8859_3Encoding_INCLUDED
#define Encodings_ISO8859_3Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API ISO8859_3Encoding: public DoubleByteEncoding
/// ISO-8859-3 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-3.TXT.
{
public:
ISO8859_3Encoding();
~ISO8859_3Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_ISO8859_3Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// ISO8859_4Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: ISO8859_4Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_ISO8859_4Encoding_INCLUDED
#define Encodings_ISO8859_4Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API ISO8859_4Encoding: public DoubleByteEncoding
/// ISO-8859-4 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-4.TXT.
{
public:
ISO8859_4Encoding();
~ISO8859_4Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_ISO8859_4Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// ISO8859_5Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: ISO8859_5Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_ISO8859_5Encoding_INCLUDED
#define Encodings_ISO8859_5Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API ISO8859_5Encoding: public DoubleByteEncoding
/// ISO-8859-5 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-5.TXT.
{
public:
ISO8859_5Encoding();
~ISO8859_5Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_ISO8859_5Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// ISO8859_6Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: ISO8859_6Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_ISO8859_6Encoding_INCLUDED
#define Encodings_ISO8859_6Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API ISO8859_6Encoding: public DoubleByteEncoding
/// ISO-8859-6 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-6.TXT.
{
public:
ISO8859_6Encoding();
~ISO8859_6Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_ISO8859_6Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// ISO8859_7Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: ISO8859_7Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_ISO8859_7Encoding_INCLUDED
#define Encodings_ISO8859_7Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API ISO8859_7Encoding: public DoubleByteEncoding
/// ISO-8859-7 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-7.TXT.
{
public:
ISO8859_7Encoding();
~ISO8859_7Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_ISO8859_7Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// ISO8859_8Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: ISO8859_8Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_ISO8859_8Encoding_INCLUDED
#define Encodings_ISO8859_8Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API ISO8859_8Encoding: public DoubleByteEncoding
/// ISO-8859-8 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-8.TXT.
{
public:
ISO8859_8Encoding();
~ISO8859_8Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_ISO8859_8Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// ISO8859_9Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: ISO8859_9Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_ISO8859_9Encoding_INCLUDED
#define Encodings_ISO8859_9Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API ISO8859_9Encoding: public DoubleByteEncoding
/// ISO-8859-9 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-9.TXT.
{
public:
ISO8859_9Encoding();
~ISO8859_9Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_ISO8859_9Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// MacCentralEurRomanEncoding.h
//
// Library: Encodings
// Package: Encodings
// Module: MacCentralEurRomanEncoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2019, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_MacCentralEurRomanEncoding_INCLUDED
#define Encodings_MacCentralEurRomanEncoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API MacCentralEurRomanEncoding: public DoubleByteEncoding
/// MacCentralEurRoman Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/CENTEURO.TXT.
{
public:
MacCentralEurRomanEncoding();
~MacCentralEurRomanEncoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_MacCentralEurRomanEncoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// MacChineseSimpEncoding.h
//
// Library: Encodings
// Package: Encodings
// Module: MacChineseSimpEncoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2019, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_MacChineseSimpEncoding_INCLUDED
#define Encodings_MacChineseSimpEncoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API MacChineseSimpEncoding: public DoubleByteEncoding
/// MacChineseSimp Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/CHINSIMP.TXT.
{
public:
MacChineseSimpEncoding();
~MacChineseSimpEncoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_MacChineseSimpEncoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// MacChineseTradEncoding.h
//
// Library: Encodings
// Package: Encodings
// Module: MacChineseTradEncoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2019, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_MacChineseTradEncoding_INCLUDED
#define Encodings_MacChineseTradEncoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API MacChineseTradEncoding: public DoubleByteEncoding
/// MacChineseTrad Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/CHINTRAD.TXT.
{
public:
MacChineseTradEncoding();
~MacChineseTradEncoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_MacChineseTradEncoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// MacCyrillicEncoding.h
//
// Library: Encodings
// Package: Encodings
// Module: MacCyrillicEncoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2019, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_MacCyrillicEncoding_INCLUDED
#define Encodings_MacCyrillicEncoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API MacCyrillicEncoding: public DoubleByteEncoding
/// MacCyrillic Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/CYRILLIC.TXT.
{
public:
MacCyrillicEncoding();
~MacCyrillicEncoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_MacCyrillicEncoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// MacJapaneseEncoding.h
//
// Library: Encodings
// Package: Encodings
// Module: MacJapaneseEncoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2019, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_MacJapaneseEncoding_INCLUDED
#define Encodings_MacJapaneseEncoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API MacJapaneseEncoding: public DoubleByteEncoding
/// MacJapanese Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/JAPANESE.TXT.
{
public:
MacJapaneseEncoding();
~MacJapaneseEncoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_MacJapaneseEncoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// MacKoreanEncoding.h
//
// Library: Encodings
// Package: Encodings
// Module: MacKoreanEncoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2019, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_MacKoreanEncoding_INCLUDED
#define Encodings_MacKoreanEncoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API MacKoreanEncoding: public DoubleByteEncoding
/// MacKorean Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/KOREAN.TXT.
{
public:
MacKoreanEncoding();
~MacKoreanEncoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_MacKoreanEncoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// MacRomanEncoding.h
//
// Library: Encodings
// Package: Encodings
// Module: MacRomanEncoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2019, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_MacRomanEncoding_INCLUDED
#define Encodings_MacRomanEncoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API MacRomanEncoding: public DoubleByteEncoding
/// MacRoman Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/ROMAN.TXT.
{
public:
MacRomanEncoding();
~MacRomanEncoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_MacRomanEncoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// Windows1253Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: Windows1253Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_Windows1253Encoding_INCLUDED
#define Encodings_Windows1253Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API Windows1253Encoding: public DoubleByteEncoding
/// windows-1253 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1253.TXT.
{
public:
Windows1253Encoding();
~Windows1253Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_Windows1253Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// Windows1254Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: Windows1254Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_Windows1254Encoding_INCLUDED
#define Encodings_Windows1254Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API Windows1254Encoding: public DoubleByteEncoding
/// windows-1254 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1254.TXT.
{
public:
Windows1254Encoding();
~Windows1254Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_Windows1254Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// Windows1255Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: Windows1255Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_Windows1255Encoding_INCLUDED
#define Encodings_Windows1255Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API Windows1255Encoding: public DoubleByteEncoding
/// windows-1255 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1255.TXT.
{
public:
Windows1255Encoding();
~Windows1255Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_Windows1255Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// Windows1256Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: Windows1256Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_Windows1256Encoding_INCLUDED
#define Encodings_Windows1256Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API Windows1256Encoding: public DoubleByteEncoding
/// windows-1256 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1256.TXT.
{
public:
Windows1256Encoding();
~Windows1256Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_Windows1256Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// Windows1257Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: Windows1257Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_Windows1257Encoding_INCLUDED
#define Encodings_Windows1257Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API Windows1257Encoding: public DoubleByteEncoding
/// windows-1257 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1257.TXT.
{
public:
Windows1257Encoding();
~Windows1257Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_Windows1257Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// Windows1258Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: Windows1258Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_Windows1258Encoding_INCLUDED
#define Encodings_Windows1258Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API Windows1258Encoding: public DoubleByteEncoding
/// windows-1258 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1258.TXT.
{
public:
Windows1258Encoding();
~Windows1258Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_Windows1258Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// Windows874Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: Windows874Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_Windows874Encoding_INCLUDED
#define Encodings_Windows874Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API Windows874Encoding: public DoubleByteEncoding
/// windows-874 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP874.TXT.
{
public:
Windows874Encoding();
~Windows874Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_Windows874Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// Windows932Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: Windows932Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_Windows932Encoding_INCLUDED
#define Encodings_Windows932Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API Windows932Encoding: public DoubleByteEncoding
/// windows-932 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP932.TXT.
{
public:
Windows932Encoding();
~Windows932Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_Windows932Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// Windows936Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: Windows936Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_Windows936Encoding_INCLUDED
#define Encodings_Windows936Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API Windows936Encoding: public DoubleByteEncoding
/// windows-936 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP936.TXT.
{
public:
Windows936Encoding();
~Windows936Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_Windows936Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// Windows949Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: Windows949Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_Windows949Encoding_INCLUDED
#define Encodings_Windows949Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API Windows949Encoding: public DoubleByteEncoding
/// windows-949 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP949.TXT.
{
public:
Windows949Encoding();
~Windows949Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_Windows949Encoding_INCLUDED

View File

@@ -0,0 +1,48 @@
//
// Windows950Encoding.h
//
// Library: Encodings
// Package: Encodings
// Module: Windows950Encoding
//
// Definition of the Windows1252Encoding class.
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Encodings_Windows950Encoding_INCLUDED
#define Encodings_Windows950Encoding_INCLUDED
#include "Poco/DoubleByteEncoding.h"
namespace Poco {
class Encodings_API Windows950Encoding: public DoubleByteEncoding
/// windows-950 Encoding.
///
/// This text encoding class has been generated from
/// http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP950.TXT.
{
public:
Windows950Encoding();
~Windows950Encoding();
private:
static const char* _names[];
static const CharacterMap _charMap;
static const Mapping _mappingTable[];
static const Mapping _reverseMappingTable[];
};
} // namespace Poco
#endif // Encodings_Windows950Encoding_INCLUDED