同步操作将从 sulayman_tien/poco 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
//// QuotedPrintableDecoder.cpp//// Library: Net// Package: Messages// Module: QuotedPrintableDecoder//// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.// and Contributors.//// SPDX-License-Identifier: BSL-1.0//#include "Poco/Net/QuotedPrintableDecoder.h"#include "Poco/NumberParser.h"#include "Poco/Exception.h"#include "Poco/Ascii.h"using Poco::UnbufferedStreamBuf;using Poco::NumberParser;using Poco::DataFormatException;namespace Poco {namespace Net {QuotedPrintableDecoderBuf::QuotedPrintableDecoderBuf(std::istream& istr):_buf(*istr.rdbuf()){}QuotedPrintableDecoderBuf::~QuotedPrintableDecoderBuf(){}int QuotedPrintableDecoderBuf::readFromDevice(){int ch = _buf.sbumpc();while (ch == '='){ch = _buf.sbumpc();if (ch == '\r'){_buf.sbumpc(); // read \n}else if (Poco::Ascii::isHexDigit(ch)){std::string hex = "0x";hex += (char) ch;ch = _buf.sbumpc();if (Poco::Ascii::isHexDigit(ch)){hex += (char) ch;return NumberParser::parseHex(hex);}throw DataFormatException("Incomplete hex number in quoted-printable encoded stream");}else if (ch != '\n'){throw DataFormatException("Invalid occurrence of '=' in quoted-printable encoded stream");}ch = _buf.sbumpc();}return ch;}QuotedPrintableDecoderIOS::QuotedPrintableDecoderIOS(std::istream& istr): _buf(istr){poco_ios_init(&_buf);}QuotedPrintableDecoderIOS::~QuotedPrintableDecoderIOS(){}QuotedPrintableDecoderBuf* QuotedPrintableDecoderIOS::rdbuf(){return &_buf;}QuotedPrintableDecoder::QuotedPrintableDecoder(std::istream& istr):QuotedPrintableDecoderIOS(istr),std::istream(&_buf){}QuotedPrintableDecoder::~QuotedPrintableDecoder(){}} } // namespace Poco::Net
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。