Initial
This commit is contained in:
BIN
uuencode/Debug/uuencode.lib
Normal file
BIN
uuencode/Debug/uuencode.lib
Normal file
Binary file not shown.
BIN
uuencode/Debug/vc60.idb
Normal file
BIN
uuencode/Debug/vc60.idb
Normal file
Binary file not shown.
BIN
uuencode/Release/uuencode.lib
Normal file
BIN
uuencode/Release/uuencode.lib
Normal file
Binary file not shown.
BIN
uuencode/Release/vc60.idb
Normal file
BIN
uuencode/Release/vc60.idb
Normal file
Binary file not shown.
40
uuencode/makefile
Normal file
40
uuencode/makefile
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
MODULES=\
|
||||
uuencode.cpp
|
||||
|
||||
CC=g++
|
||||
LIB=ar
|
||||
EXEDIR=../exe/
|
||||
OPTIM=
|
||||
CFLAGS=-c -g
|
||||
INCLUDES= -I..
|
||||
LIBS=
|
||||
LFLAGS=-r
|
||||
SHELL=/bin/sh
|
||||
SPACER=
|
||||
TARGET=uuencode.lib
|
||||
|
||||
OBJS=uuencode.o
|
||||
|
||||
all: $(EXEDIR)$(TARGET) $(MODULES) $(OBJS)
|
||||
|
||||
$(OBJS): $(MODULES)
|
||||
$(CC) $(CFLAGS) $(INCLUDES) $(MODULES)
|
||||
|
||||
$(OBJS) : makefile
|
||||
|
||||
$(EXEDIR)$(TARGET): $(OBJS)
|
||||
$(LIB) $(LFLAGS) $(EXEDIR)$(TARGET) $(OBJS)
|
||||
|
||||
uuencode.o : uuencode.cpp uuencode.hpp
|
||||
|
||||
# DO NOT REMOVE
|
||||
|
||||
# $(MODULES) makefile
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
144
uuencode/scraps.txt
Normal file
144
uuencode/scraps.txt
Normal file
@@ -0,0 +1,144 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
#include <uuencode/uuencode.hpp>
|
||||
#include <common/string.hpp>
|
||||
#include <common/StringBuffer.hpp>
|
||||
#include <common/array.hpp>
|
||||
#include <stdio.h>
|
||||
|
||||
String UUEncode::encode(Array<BYTE> &encodeBytes)
|
||||
{
|
||||
static char Base64Table[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
int length;
|
||||
int index;
|
||||
StringBuffer strTempLine;
|
||||
|
||||
strTempLine.growBy(8192);
|
||||
if(!(length=encodeBytes.size()))return String();
|
||||
for(index=0;index<length-(length%3);index+=3)
|
||||
{
|
||||
strTempLine.append(Base64Table[encodeBytes[index]/4]);
|
||||
strTempLine.append(Base64Table[((encodeBytes[index%4])*16)+(encodeBytes[index+1]/16)]);
|
||||
strTempLine.append(Base64Table[((encodeBytes[index+1]%16)*4)+(encodeBytes[index+2]/64)]);
|
||||
strTempLine.append(Base64Table[encodeBytes[index+2]%64]);
|
||||
}
|
||||
if((length%3))
|
||||
{
|
||||
if(2==(length%3))
|
||||
{
|
||||
strTempLine.append(Base64Table[encodeBytes[index]/4]);
|
||||
strTempLine.append(Base64Table[((encodeBytes[index]%4)*16)+(encodeBytes[index+1]/16)]);
|
||||
strTempLine.append(Base64Table[(encodeBytes[index+1]%16)*4]);
|
||||
strTempLine.append("=");
|
||||
}
|
||||
else if(1==(length%3))
|
||||
{
|
||||
strTempLine.append(Base64Table[encodeBytes[index]/4]);
|
||||
strTempLine.append(Base64Table[(encodeBytes[index]%4)*16]);
|
||||
strTempLine.append("==");
|
||||
}
|
||||
}
|
||||
return strTempLine.toString();
|
||||
}
|
||||
|
||||
String UUEncode::encode(String strEncode)
|
||||
{
|
||||
static char Base64Table[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
int length;
|
||||
int index;
|
||||
String strTempLine;
|
||||
|
||||
if(strEncode.isNull()||!(length=strEncode.length()))return String();
|
||||
for(index=0;index<length-(length%3);index+=3)
|
||||
{
|
||||
strTempLine+=Base64Table[strEncode.charAt(index)/4];
|
||||
strTempLine+=Base64Table[((strEncode.charAt(index)%4)*16)+(strEncode.charAt(index+1)/16)];
|
||||
strTempLine+=Base64Table[((strEncode.charAt(index+1)%16)*4)+(strEncode.charAt(index+2)/64)];
|
||||
strTempLine+=Base64Table[strEncode.charAt(index+2)%64];
|
||||
}
|
||||
if((length%3))
|
||||
{
|
||||
if(2==(length%3))
|
||||
{
|
||||
strTempLine+=Base64Table[strEncode.charAt(index)/4];
|
||||
strTempLine+=Base64Table[((strEncode.charAt(index)%4)*16)+(strEncode.charAt(index+1)/16)];
|
||||
strTempLine+=Base64Table[(strEncode.charAt(index+1)%16)*4];
|
||||
strTempLine+="=";
|
||||
}
|
||||
else if(1==(length%3))
|
||||
{
|
||||
strTempLine+=Base64Table[strEncode.charAt(index)/4];
|
||||
strTempLine+=Base64Table[(strEncode.charAt(index)%4)*16];
|
||||
strTempLine+="==";
|
||||
}
|
||||
}
|
||||
return strTempLine;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
#include <smtp/uuencode.hpp>
|
||||
#include <common/openfile.hpp>
|
||||
#include <common/pview.hpp>
|
||||
#include <common/filemap.hpp>
|
||||
#include <common/progress.hpp>
|
||||
#include <common/profile.hpp>
|
||||
|
||||
BOOL UUEncode::encode(GUIWindow &parentWindow,String srcPathFileName,Block<String> &lineStrings,BOOL initBlock)const
|
||||
{
|
||||
Profile iniProfile;
|
||||
char readBuff[45];
|
||||
int readCount;
|
||||
int byteCount;
|
||||
int lineCount;
|
||||
char *ptrBuff;
|
||||
String outLine;
|
||||
int ch;
|
||||
|
||||
if(initBlock)lineStrings.remove();
|
||||
if(srcPathFileName.isNull())return FALSE;
|
||||
FileHandle readFile(srcPathFileName,FileHandle::Read,FileHandle::ShareRead);
|
||||
if(!readFile.isOkay())return FALSE;
|
||||
FileMap readMap(readFile);
|
||||
PureViewOfFile readView(readMap);
|
||||
iniProfile.makeFileName(srcPathFileName);
|
||||
srcPathFileName.removeTokens("\\/");
|
||||
::sprintf(outLine,"begin %d %s",644,(char*)srcPathFileName);
|
||||
lineStrings.insert(&outLine);
|
||||
Progress encodeProgress(parentWindow,srcPathFileName);
|
||||
encodeProgress.canCancel(TRUE);
|
||||
encodeProgress.show(TRUE);
|
||||
encodeProgress.setText("encoding... (press ESC to cancel).");
|
||||
while(sizeof(readBuff)==readView.read(readBuff,sizeof(readBuff))){parentWindow.yieldTask();lineCount++;}
|
||||
readView.rewind();
|
||||
encodeProgress.range(lineCount);
|
||||
while(readCount=readView.read(readBuff,sizeof(readBuff)))
|
||||
{
|
||||
String lineString;
|
||||
char *ptrLine=(LPSTR)lineString;
|
||||
*(ptrLine++)=chEncode(readCount);
|
||||
for(ptrBuff=readBuff,byteCount=readCount;byteCount>0;byteCount-=3,ptrBuff+=3)
|
||||
{
|
||||
*(ptrLine++)=chEncode(*ptrBuff>>2);
|
||||
*(ptrLine++)=chEncode((*ptrBuff<<4)&0x30|(ptrBuff[1]>>4)&0x0F);
|
||||
*(ptrLine++)=chEncode((ptrBuff[1]<<2)&0x3C|(ptrBuff[2]>>6)&0x03);
|
||||
*(ptrLine++)=chEncode(ptrBuff[2]&0x3F);
|
||||
parentWindow.yieldTask();
|
||||
}
|
||||
lineStrings.insert(&lineString);
|
||||
encodeProgress++;
|
||||
if(!encodeProgress.isOkay()){lineStrings.remove();return FALSE;}
|
||||
if(readCount!=sizeof(readBuff))break;
|
||||
}
|
||||
String lastLine;
|
||||
lastLine+=(char)('\0'?('\0'&0x3F)+' ':'`');
|
||||
lineStrings.insert(&lastLine);
|
||||
lineStrings.insert(&String("end"));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
*/
|
||||
*/
|
||||
74
uuencode/uuencode.cpp
Normal file
74
uuencode/uuencode.cpp
Normal file
@@ -0,0 +1,74 @@
|
||||
#include <uuencode/uuencode.hpp>
|
||||
#include <common/StringBuffer.hpp>
|
||||
#include <common/file.hpp>
|
||||
|
||||
bool UUEncode::encode(Array<BYTE> &bytes,const String &strName,Block<String> &encodedLines)
|
||||
{
|
||||
File inFile;
|
||||
int readCount;
|
||||
char readBuff[45];
|
||||
int byteIndex;
|
||||
int byteCount;
|
||||
char *ptrBuff;
|
||||
|
||||
encodedLines.remove();
|
||||
encodedLines.insert(&String(String("begin 644 ")+strName));
|
||||
byteIndex=0;
|
||||
while(readCount=read(bytes,byteIndex,readBuff,sizeof(readBuff)))
|
||||
{
|
||||
StringBuffer stringBuffer;
|
||||
stringBuffer.append(chEncode(readCount));
|
||||
for(ptrBuff=readBuff,byteCount=readCount;byteCount>0;byteCount-=3,ptrBuff+=3)
|
||||
{
|
||||
stringBuffer.append(chEncode(*ptrBuff>>2));
|
||||
stringBuffer.append(chEncode((*ptrBuff<<4)&0x30|(ptrBuff[1]>>4)&0x0F));
|
||||
stringBuffer.append(chEncode((ptrBuff[1]<<2)&0x3C|(ptrBuff[2]>>6)&0x03));
|
||||
stringBuffer.append(chEncode(ptrBuff[2]&0x3F));
|
||||
}
|
||||
encodedLines.insert(&stringBuffer.toString());
|
||||
if(readCount!=sizeof(readBuff))break;
|
||||
}
|
||||
encodedLines.insert(&String("'"));
|
||||
encodedLines.insert(&String("end"));
|
||||
return encodedLines.size()?true:false;
|
||||
}
|
||||
|
||||
String UUEncode::encode(Array<BYTE> &bytes,const String &strName)
|
||||
{
|
||||
StringBuffer stringBuffer;
|
||||
File inFile;
|
||||
int readCount;
|
||||
char readBuff[45];
|
||||
int byteIndex;
|
||||
int byteCount;
|
||||
char *ptrBuff;
|
||||
|
||||
stringBuffer.append(String("begin 644 ")+strName+String("\n"));
|
||||
byteIndex=0;
|
||||
while(readCount=read(bytes,byteIndex,readBuff,sizeof(readBuff)))
|
||||
{
|
||||
stringBuffer.append(chEncode(readCount));
|
||||
for(ptrBuff=readBuff,byteCount=readCount;byteCount>0;byteCount-=3,ptrBuff+=3)
|
||||
{
|
||||
stringBuffer.append(chEncode(*ptrBuff>>2));
|
||||
stringBuffer.append(chEncode((*ptrBuff<<4)&0x30|(ptrBuff[1]>>4)&0x0F));
|
||||
stringBuffer.append(chEncode((ptrBuff[1]<<2)&0x3C|(ptrBuff[2]>>6)&0x03));
|
||||
stringBuffer.append(chEncode(ptrBuff[2]&0x3F));
|
||||
}
|
||||
stringBuffer.append("\n");
|
||||
if(readCount!=sizeof(readBuff))break;
|
||||
}
|
||||
stringBuffer.append("`\n");
|
||||
stringBuffer.append("end\n");
|
||||
return stringBuffer.toString();
|
||||
}
|
||||
|
||||
DWORD UUEncode::read(Array<BYTE> &bytes,int &byteIndex,char *readBuff,int sizeBuff)
|
||||
{
|
||||
if(byteIndex+sizeBuff>bytes.size())sizeBuff=bytes.size()-byteIndex;
|
||||
::memcpy(readBuff,&bytes[byteIndex],sizeBuff);
|
||||
byteIndex+=sizeBuff;
|
||||
return sizeBuff;
|
||||
}
|
||||
|
||||
|
||||
60
uuencode/uuencode.cpp~
Normal file
60
uuencode/uuencode.cpp~
Normal file
@@ -0,0 +1,60 @@
|
||||
#include <smtp/uuencode.hpp>
|
||||
#include <common/openfile.hpp>
|
||||
#include <common/pview.hpp>
|
||||
#include <common/filemap.hpp>
|
||||
#include <common/progress.hpp>
|
||||
#include <common/profile.hpp>
|
||||
|
||||
BOOL UUEncode::encode(String srcPathFileName,Block<String> &lineStrings,BOOL initBlock)const
|
||||
{
|
||||
Profile iniProfile;
|
||||
char readBuff[45];
|
||||
int readCount;
|
||||
int byteCount;
|
||||
int lineCount;
|
||||
char *ptrBuff;
|
||||
String outLine;
|
||||
int ch;
|
||||
|
||||
if(initBlock)lineStrings.remove();
|
||||
if(srcPathFileName.isNull())return FALSE;
|
||||
FileHandle readFile(srcPathFileName,FileHandle::Read,FileHandle::ShareRead);
|
||||
if(!readFile.isOkay())return FALSE;
|
||||
FileMap readMap(readFile);
|
||||
PureViewOfFile readView(readMap);
|
||||
iniProfile.makeFileName(srcPathFileName);
|
||||
srcPathFileName.removeTokens("\\/");
|
||||
::sprintf(outLine,"begin %d %s",644,(char*)srcPathFileName);
|
||||
lineStrings.insert(&outLine);
|
||||
Progress encodeProgress(parentWindow,srcPathFileName);
|
||||
encodeProgress.canCancel(TRUE);
|
||||
encodeProgress.show(TRUE);
|
||||
encodeProgress.setText("encoding... (press ESC to cancel).");
|
||||
while(sizeof(readBuff)==readView.read(readBuff,sizeof(readBuff))){parentWindow.yieldTask();lineCount++;}
|
||||
readView.rewind();
|
||||
encodeProgress.range(lineCount);
|
||||
while(readCount=readView.read(readBuff,sizeof(readBuff)))
|
||||
{
|
||||
String lineString;
|
||||
char *ptrLine=(LPSTR)lineString;
|
||||
*(ptrLine++)=chEncode(readCount);
|
||||
for(ptrBuff=readBuff,byteCount=readCount;byteCount>0;byteCount-=3,ptrBuff+=3)
|
||||
{
|
||||
*(ptrLine++)=chEncode(*ptrBuff>>2);
|
||||
*(ptrLine++)=chEncode((*ptrBuff<<4)&0x30|(ptrBuff[1]>>4)&0x0F);
|
||||
*(ptrLine++)=chEncode((ptrBuff[1]<<2)&0x3C|(ptrBuff[2]>>6)&0x03);
|
||||
*(ptrLine++)=chEncode(ptrBuff[2]&0x3F);
|
||||
parentWindow.yieldTask();
|
||||
}
|
||||
lineStrings.insert(&lineString);
|
||||
encodeProgress++;
|
||||
if(!encodeProgress.isOkay()){lineStrings.remove();return FALSE;}
|
||||
if(readCount!=sizeof(readBuff))break;
|
||||
}
|
||||
String lastLine;
|
||||
lastLine+=(char)('\0'?('\0'&0x3F)+' ':'`');
|
||||
lineStrings.insert(&lastLine);
|
||||
lineStrings.insert(&String("end"));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
96
uuencode/uuencode.dsp
Normal file
96
uuencode/uuencode.dsp
Normal file
@@ -0,0 +1,96 @@
|
||||
# Microsoft Developer Studio Project File - Name="uuencode" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
||||
|
||||
CFG=uuencode - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "uuencode.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "uuencode.mak" CFG="uuencode - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "uuencode - Win32 Release" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE "uuencode - Win32 Debug" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "uuencode - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
|
||||
# ADD CPP /nologo /Gz /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "STRICT" /D "__FLAT__" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo
|
||||
|
||||
!ELSEIF "$(CFG)" == "uuencode - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /Gz /MTd /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "STRICT" /D "__FLAT__" /YX /FD /GZ /c
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "uuencode - Win32 Release"
|
||||
# Name "uuencode - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\uuencode.cpp
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
||||
29
uuencode/uuencode.dsw
Normal file
29
uuencode/uuencode.dsw
Normal file
@@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "uuencode"=.\uuencode.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
41
uuencode/uuencode.hpp
Normal file
41
uuencode/uuencode.hpp
Normal file
@@ -0,0 +1,41 @@
|
||||
#ifndef _UUENCODE_UUENCODE_HPP_
|
||||
#define _UUENCODE_UUENCODE_HPP_
|
||||
#ifndef _COMMON_WINDOWS_HPP_
|
||||
#include <common/windows.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_BLOCK_HPP_
|
||||
#include <common/block.hpp>
|
||||
#endif
|
||||
|
||||
template <class T>
|
||||
class Array;
|
||||
class String;
|
||||
|
||||
class UUEncode
|
||||
{
|
||||
public:
|
||||
UUEncode(void);
|
||||
virtual ~UUEncode();
|
||||
static bool encode(Array<BYTE> &bytes,const String &strName,Block<String> &encodedLines);
|
||||
static String encode(Array<BYTE> &bytes,const String &strName);
|
||||
private:
|
||||
static DWORD read(Array<BYTE> &bytes,int &byteIndex,char *readBuff,int sizeBuff);
|
||||
static BYTE chEncode(int ch);
|
||||
};
|
||||
|
||||
inline
|
||||
UUEncode::UUEncode(void)
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
UUEncode::~UUEncode()
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
BYTE UUEncode::chEncode(int ch)
|
||||
{
|
||||
return (ch?(ch&0x3F)+' ':'`');
|
||||
}
|
||||
#endif
|
||||
37
uuencode/uuencode.hpp~
Normal file
37
uuencode/uuencode.hpp~
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef _SMTP_UUENCODE_HPP_
|
||||
#define _SMTP_UUENCODE_HPP_
|
||||
#ifndef _COMMON_WINDOWS_HPP_
|
||||
#include <common/windows.hpp>
|
||||
#endif
|
||||
|
||||
template <class T>
|
||||
class Block;
|
||||
class String;
|
||||
//class GUIWindow;
|
||||
|
||||
class UUEncode
|
||||
{
|
||||
public:
|
||||
UUEncode(void);
|
||||
virtual ~UUEncode();
|
||||
BOOL encode(String srcPathFileName,Block<String> &lineStrings,BOOL initBlock=TRUE)const;
|
||||
private:
|
||||
BYTE chEncode(int ch)const;
|
||||
};
|
||||
|
||||
inline
|
||||
UUEncode::UUEncode(void)
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
UUEncode::~UUEncode()
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
BYTE UUEncode::chEncode(int ch)const
|
||||
{
|
||||
return (ch?(ch&0x3F)+' ':'`');
|
||||
}
|
||||
#endif
|
||||
BIN
uuencode/uuencode.ncb
Normal file
BIN
uuencode/uuencode.ncb
Normal file
Binary file not shown.
BIN
uuencode/uuencode.o
Normal file
BIN
uuencode/uuencode.o
Normal file
Binary file not shown.
BIN
uuencode/uuencode.opt
Normal file
BIN
uuencode/uuencode.opt
Normal file
Binary file not shown.
27
uuencode/uuencode.plg
Normal file
27
uuencode/uuencode.plg
Normal file
@@ -0,0 +1,27 @@
|
||||
<html>
|
||||
<body>
|
||||
<pre>
|
||||
<h1>Build Log</h1>
|
||||
<h3>
|
||||
--------------------Configuration: uuencode - Win32 Debug--------------------
|
||||
</h3>
|
||||
<h3>Command Lines</h3>
|
||||
Creating temporary file "C:\WINNT\Profiles\sean\LOCALS~1\Temp\RSP3F.tmp" with contents
|
||||
[
|
||||
/nologo /Gz /MTd /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "STRICT" /D "__FLAT__" /Fp"Debug/uuencode.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
|
||||
"D:\work\uuencode\uuencode.cpp"
|
||||
]
|
||||
Creating command line "cl.exe @C:\WINNT\Profiles\sean\LOCALS~1\Temp\RSP3F.tmp"
|
||||
Creating command line "link.exe -lib /nologo /out:"Debug\uuencode.lib" .\Debug\uuencode.obj "
|
||||
<h3>Output Window</h3>
|
||||
Compiling...
|
||||
uuencode.cpp
|
||||
Creating library...
|
||||
|
||||
|
||||
|
||||
<h3>Results</h3>
|
||||
uuencode.lib - 0 error(s), 0 warning(s)
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user