Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros | Functions
afw_ascii.h File Reference

Adaptive Framework ASCII. More...

#include "afw_minimal.h"

Go to the source code of this file.

Macros

#define AFW_ASCII_NUL   0x00
 NULL character.
 
#define AFW_ASCII_SOH   0x01
 Start of Heading.
 
#define AFW_ASCII_STX   0x02
 Start of Text.
 
#define AFW_ASCII_ETX   0x03
 End of Text.
 
#define AFW_ASCII_EOT   0x04
 End of Transmission.
 
#define AFW_ASCII_ENQ   0x05
 ENQuiry.
 
#define AFW_ASCII_ACK   0x06
 ACKnowledge.
 
#define AFW_ASCII_BEL   0x07
 Bell.
 
#define AFW_ASCII_BS   0x08
 BackSpace (non-destructive)
 
#define AFW_ASCII_HT   0x09
 Horizontal Tab.
 
#define AFW_ASCII_LF   0x0A
 Line Feed.
 
#define AFW_ASCII_VT   0x0B
 Vertical Tab.
 
#define AFW_ASCII_FF   0x0C
 Form Feed.
 
#define AFW_ASCII_CR   0x0D
 Carriage Return.
 
#define AFW_ASCII_SO   0x0E
 Shift Out.
 
#define AFW_ASCII_SI   0x0F
 Shift In.
 
#define AFW_ASCII_DLE   0x10
 Data Link Escape.
 
#define AFW_ASCII_DC1   0x11
 Device Control 1 (XON)
 
#define AFW_ASCII_DC2   0x12
 Device Control 2.
 
#define AFW_ASCII_DC3   0x13
 Device Control 3 (XOFF)
 
#define AFW_ASCII_DC4   0x14
 Device Control 4.
 
#define AFW_ASCII_NAK   0x15
 Negative Acknowledge.
 
#define AFW_ASCII_SYN   0x16
 Synchronize idle.
 
#define AFW_ASCII_ETB   0x17
 End Transmission Block.
 
#define AFW_ASCII_CAN   0x18
 Cancel Line.
 
#define AFW_ASCII_EM   0x19
 End of Media.
 
#define AFW_ASCII_SUB   0x1A
 Substitute.
 
#define AFW_ASCII_ESC   0x1B
 Escape.
 
#define AFW_ASCII_FS   0x1C
 File Separator.
 
#define AFW_ASCII_GS   0x1D
 Group Separator.
 
#define AFW_ASCII_RS   0x1E
 Record Separator.
 
#define AFW_ASCII_US   0x1F
 Unit Separator.
 
#define AFW_ASCII_DELETE   0x7F
 Delete.
 
#define AFW_ASCII_Z_PATH_SEPARATOR   "/"
 Path separator.
 
#define AFW_ASCII_PATH_SEPARATOR   '/'
 
#define afw_ascii_is_printable(v)    ( ((v)>=AFW_ASCII_SPACE) && ((v)<=AFW_ASCII_TILDE) )
 Determine if octet is ascii printable character. More...
 
#define afw_ascii_is_lowercase(v)    ( ((v) >= 'a') && ((v) <= 'z') )
 Determine if octet is ascii lowercase character. More...
 
#define afw_ascii_is_uppercase(v)    ( ((v) >= 'A') && ((v) <= 'Z') )
 Determine if octet is ascii uppercase character. More...
 
#define afw_ascii_is_alpha(v)    ( afw_ascii_is_ascii_lowercase(v) || afw_ascii_is_ascii_uppercase(v) )
 Determine if octet is ascii alpha character. More...
 
#define afw_ascii_is_alphanumeric(v)    ( afw_ascii_is_ascii_alpha(v) || ( ((v)>='0') && ((v)<='9') ) )
 Determine if octet is ascii digit character. More...
 
#define afw_ascii_is_control_character(v)    ( ((v) <= 31) || ((v) == AFW_ASCII_DELETE) )
 Determine if octet is ascii control character. More...
 
#define afw_ascii_is_digit(v)    ( ((v)>='0') && ((v)<='9') )
 Determine if octet is digit character. More...
 
#define afw_ascii_is_hex_digit(v)    ( afw_ascii_decode_hex_digit(v) != -1 )
 Determine if octet is ascii hex digit. More...
 
#define afw_ascii_is_whitespace(v)    ((v) == 32 || ((v) >= 9 && (v) <= 13))
 Determine if octet is white space. More...
 

Functions

 afw_ascii_decode_hex_digit (afw_octet_t octet)
 Decode ascii hex digit. More...
 
 afw_ascii_encode_hex_digit (afw_octet_t octet)
 Encode ascii hex digit. More...
 

Detailed Description

Adaptive Framework ASCII.

These also work for UNICODE codepoints, since ASCII is a subset.

Definition in file afw_ascii.h.