Files
Work/yproxy/NewsDecoder.hpp
2024-08-07 09:16:27 -04:00

22 lines
562 B
C++

#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