TeX in C
Explore TeX with modern c compiler.
PART 2: The character set

宏定义

#define FIRST_TEXT_CHAR   0
 [#19] ordinal number of the smallest element of TextChar. 更多...
 
#define LAST_TEXT_CHAR   255
 [#19] ordinal number of the largest element of TextChar. 更多...
 
#define NULL_CODE   0
 [#22] ASCII code that might disappear. 更多...
 
#define CARRIAGE_RETURN   '\r'
 [#22] ASCII code used at end of line. 更多...
 
#define INVALID_CODE   127
 [#22] ASCII code that many systems prohibit in text files. 更多...
 

类型定义

typedef UChar ASCIICode
 [#18]: ASCIICode::UChar(8) = [0, 255] 更多...
 
typedef UChar TextChar
 [#19]: TextChar::UChar(8) = [0, 255] 更多...
 

函数

void charset_init ()
 

变量

ASCIICode xord [256]
 [#20] specifies conversion of input characters. 更多...
 
TextChar xchr [256]
 [#20] specifies conversion of output characters. 更多...
 

详细描述

宏定义说明

◆ CARRIAGE_RETURN

#define CARRIAGE_RETURN   '\r'

[#22] ASCII code used at end of line.

◆ FIRST_TEXT_CHAR

#define FIRST_TEXT_CHAR   0

[#19] ordinal number of the smallest element of TextChar.

◆ INVALID_CODE

#define INVALID_CODE   127

[#22] ASCII code that many systems prohibit in text files.

◆ LAST_TEXT_CHAR

#define LAST_TEXT_CHAR   255

[#19] ordinal number of the largest element of TextChar.

◆ NULL_CODE

#define NULL_CODE   0

[#22] ASCII code that might disappear.

类型定义说明

◆ ASCIICode

typedef UChar ASCIICode

[#18]: ASCIICode::UChar(8) = [0, 255]

◆ TextChar

typedef UChar TextChar

[#19]: TextChar::UChar(8) = [0, 255]

函数说明

◆ charset_init()

void charset_init ( )

[#21]

[#24]

变量说明

◆ xchr

TextChar xchr[256]

[#20] specifies conversion of output characters.

◆ xord

ASCIICode xord[256]

[#20] specifies conversion of input characters.