DCL 4.0
Loading...
Searching...
No Matches
TransferEncoding.cpp File Reference
#include <ctype.h>
#include <dcl/Object.h>
#include <dcl/TransferEncoding.h>

Go to the source code of this file.

Macros

#define __DCL_INCLUDED_CTYPE_H
#define CR   13
#define LF   10
#define TAB   9
#define MAX_LINE_LENGTH   76
#define BASE64_PADDING_CHAR   '='

Functions

char hex2int (int c)

Macro Definition Documentation

◆ __DCL_INCLUDED_CTYPE_H

#define __DCL_INCLUDED_CTYPE_H

Definition at line 2 of file TransferEncoding.cpp.

◆ BASE64_PADDING_CHAR

#define BASE64_PADDING_CHAR   '='

Definition at line 182 of file TransferEncoding.cpp.

◆ CR

#define CR   13

Definition at line 24 of file TransferEncoding.cpp.

◆ LF

#define LF   10

Definition at line 25 of file TransferEncoding.cpp.

◆ MAX_LINE_LENGTH

#define MAX_LINE_LENGTH   76

Definition at line 29 of file TransferEncoding.cpp.

◆ TAB

#define TAB   9

Definition at line 26 of file TransferEncoding.cpp.

Function Documentation

◆ hex2int()

char hex2int ( int c)
inline

Definition at line 107 of file TransferEncoding.cpp.

108{
109 if (isdigit(c))
110 return c - '0';
111 else if (('A' <= c) && (c <= 'F'))
112 return c - 'A' + 10;
113 else if (('a' <= c) && (c <= 'f'))
114 return c - 'a' + 10;
115 else
116 {
117 __DCL_ASSERT(false);
118 return -1;
119 }
120}
#define __DCL_ASSERT(expr)
Definition Object.h:371