diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/poco/Foundation/include/Poco/ASCIIEncoding.h | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/poco/Foundation/include/Poco/ASCIIEncoding.h')
-rw-r--r-- | contrib/libs/poco/Foundation/include/Poco/ASCIIEncoding.h | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/contrib/libs/poco/Foundation/include/Poco/ASCIIEncoding.h b/contrib/libs/poco/Foundation/include/Poco/ASCIIEncoding.h index b6a07f0dd9..e47f615384 100644 --- a/contrib/libs/poco/Foundation/include/Poco/ASCIIEncoding.h +++ b/contrib/libs/poco/Foundation/include/Poco/ASCIIEncoding.h @@ -1,51 +1,51 @@ -// -// ASCIIEncoding.h -// -// Library: Foundation -// Package: Text -// Module: ASCIIEncoding -// -// Definition of the ASCIIEncoding class. -// -// Copyright (c) 2004-2007, Applied Informatics Software Engineering GmbH. -// and Contributors. -// -// SPDX-License-Identifier: BSL-1.0 -// - - -#ifndef Foundation_ASCIIEncoding_INCLUDED -#define Foundation_ASCIIEncoding_INCLUDED - - -#include "Poco/Foundation.h" -#include "Poco/TextEncoding.h" - - -namespace Poco { - - -class Foundation_API ASCIIEncoding: public TextEncoding - /// 7-bit ASCII text encoding. -{ -public: - ASCIIEncoding(); - ~ASCIIEncoding(); - 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; - -private: - static const char* _names[]; - static const CharacterMap _charMap; -}; - - -} // namespace Poco - - -#endif // Foundation_ASCIIEncoding_INCLUDED +// +// ASCIIEncoding.h +// +// Library: Foundation +// Package: Text +// Module: ASCIIEncoding +// +// Definition of the ASCIIEncoding class. +// +// Copyright (c) 2004-2007, Applied Informatics Software Engineering GmbH. +// and Contributors. +// +// SPDX-License-Identifier: BSL-1.0 +// + + +#ifndef Foundation_ASCIIEncoding_INCLUDED +#define Foundation_ASCIIEncoding_INCLUDED + + +#include "Poco/Foundation.h" +#include "Poco/TextEncoding.h" + + +namespace Poco { + + +class Foundation_API ASCIIEncoding: public TextEncoding + /// 7-bit ASCII text encoding. +{ +public: + ASCIIEncoding(); + ~ASCIIEncoding(); + 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; + +private: + static const char* _names[]; + static const CharacterMap _charMap; +}; + + +} // namespace Poco + + +#endif // Foundation_ASCIIEncoding_INCLUDED |