Partager via


ATL Encoding Reference

Encoding in a range of common Internet standards such as uuencode, hexadecimal, and UTF8 is supported by the code found in atlenc.h.

Functions

AtlGetHexValue

Call this function to get the numeric value of a hexadecimal digit.

AtlHexDecode

Decodes a string of data that has been encoded as hexadecimal text such as by a previous call to AtlHexEncode.

AtlHexDecodeGetRequiredLength

Call this function to get the size in bytes of a buffer that could contain data decoded from a hex-encoded string of the specified length.

AtlHexEncode

Call this function to encode some data as a string of hexadecimal text.

AtlHexEncodeGetRequiredLength

Call this function to get the size in characters of a buffer that could contain a string encoded from data of the specified size.

AtlUnicodeToUTF8

Call this function to convert a Unicode string to UTF-8.

BEncode

Call this function to convert some data using the "B" encoding.

BEncodeGetRequiredLength

Call this function to get the size in characters of a buffer that could contain a string encoded from data of the specified size.

EscapeXML

Call this function to convert characters that are unsafe for use in XML to their safe equivalents.

GetExtendedChars

Call this function to get the number of extended characters in a string.

IsExtendedChar

Call this function to find out if a given character is an extended character (less than 32, greater than 126, and not a tab, linefeed or carriage return)

QEncode

Call this function to convert some data using the "Q" encoding.

QEncodeGetRequiredLength

Call this function to get the size in characters of a buffer that could contain a string encoded from data of the specified size.

QPDecode

Decodes a string of data that has been encoded in quoted-printable format such as by a previous call to QPEncode.

QPDecodeGetRequiredLength

Call this function to get the size in bytes of a buffer that could contain data decoded from quoted-printable-encoded string of the specified length.

QPEncode

Call this function to encode some data in quoted-printable format.

QPEncodeGetRequiredLength

Call this function to get the size in characters of a buffer that could contain a string encoded from data of the specified size.

UUDecode

Decodes a string of data that has been uuencoded such as by a previous call to UUEncode.

UUDecodeGetRequiredLength

Call this function to get the size in bytes of a buffer that could contain data decoded from a uuencoded string of the specified length.

UUEncode

Call this function to uuencode some data.

UUEncodeGetRequiredLength

Call this function to get the size in characters of a buffer that could contain a string encoded from data of the specified size.

Macros

ATL_ESC Flags

These flags are used to control the behavior of EscapeXML.

ATLSMTP_QPENCODE Flags

These flags describe how quoted-printable encoding is to be performed by QPEncode.

ATLSMTP_UUENCODE Flags

These flags describe how uuencoding is to be performed by UUEncode.

See Also

Other Resources

ATL Concepts

ATL Reference