Initial
This commit is contained in:
21
yproxy/NewsDecoder.hpp
Normal file
21
yproxy/NewsDecoder.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef _YPROXY_NEWSDECODER_HPP_
|
||||
#define _YPROXY_NEWSDECODER_HPP_
|
||||
#ifndef _COMMON_STRING_HPP_
|
||||
#include <common/string.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_BLOCK_HPP_
|
||||
#include <common/block.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_FILE_HPP_
|
||||
#include <common/file.hpp>
|
||||
#endif
|
||||
|
||||
class NewsDecoder
|
||||
{
|
||||
public:
|
||||
static bool decode(const String &pathFileName,Block<String> &uuencodedText);
|
||||
static bool decode(const String &messageID,Block<String> &articleText,Block<String> &uuencodedText);
|
||||
private:
|
||||
static bool isYEnc(Block<String> &articleText,int &beginIndex,int &endIndex);
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user