php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
html_tables.h File Reference

Go to the source code of this file.

Data Structures

struct  enc_to_uni_stage2
 
struct  enc_to_uni
 
struct  uni_to_enc
 
union  entity_multicodepoint_row
 
struct  entity_stage3_row
 
struct  entity_table_opt
 
struct  entity_cp_map
 
struct  entity_ht
 

Macros

#define CHARSET_UNICODE_COMPAT(cs)
 
#define CHARSET_SINGLE_BYTE(cs)
 
#define CHARSET_PARTIAL_SUPPORT(cs)
 
#define LONGEST_ENTITY_LENGTH   31
 
#define ENT_ENC_TO_UNI_STAGE1(k)
 
#define ENT_ENC_TO_UNI_STAGE2(k)
 
#define ENT_STAGE1_INDEX(k)
 
#define ENT_STAGE2_INDEX(k)
 
#define ENT_STAGE3_INDEX(k)
 
#define ENT_CODE_POINT_FROM_STAGES(i, j, k)
 

Typedefs

typedef const entity_stage3_rowentity_stage2_row
 
typedef const entity_stage3_row *const * entity_stage1_row
 
typedef const entity_cp_mapentity_ht_bucket
 

Enumerations

enum  entity_charset {
  cs_utf_8 , cs_8859_1 , cs_cp1252 , cs_8859_15 ,
  cs_cp1251 , cs_8859_5 , cs_cp866 , cs_macroman ,
  cs_koi8r , cs_big5 , cs_gb2312 , cs_big5hkscs ,
  cs_sjis , cs_eucjp , cs_numelems
}
 

Macro Definition Documentation

◆ CHARSET_PARTIAL_SUPPORT

#define CHARSET_PARTIAL_SUPPORT ( cs)
Value:
((cs) >= cs_big5)
@ cs_big5
Definition html_tables.h:28

Definition at line 34 of file html_tables.h.

◆ CHARSET_SINGLE_BYTE

#define CHARSET_SINGLE_BYTE ( cs)
Value:
((cs) > cs_utf_8 && (cs) < cs_big5)
@ cs_utf_8
Definition html_tables.h:27

Definition at line 33 of file html_tables.h.

◆ CHARSET_UNICODE_COMPAT

#define CHARSET_UNICODE_COMPAT ( cs)
Value:
((cs) <= cs_8859_1)
@ cs_8859_1
Definition html_tables.h:27

Definition at line 32 of file html_tables.h.

◆ ENT_CODE_POINT_FROM_STAGES

#define ENT_CODE_POINT_FROM_STAGES ( i,
j,
k )
Value:
(((i) << 12) | ((j) << 6) | (k))
again j

Definition at line 1091 of file html_tables.h.

◆ ENT_ENC_TO_UNI_STAGE1

#define ENT_ENC_TO_UNI_STAGE1 ( k)
Value:
((k & 0xC0) >> 6)

Definition at line 91 of file html_tables.h.

◆ ENT_ENC_TO_UNI_STAGE2

#define ENT_ENC_TO_UNI_STAGE2 ( k)
Value:
((k) & 0x3F)

Definition at line 93 of file html_tables.h.

◆ ENT_STAGE1_INDEX

#define ENT_STAGE1_INDEX ( k)
Value:
(((k) & 0xFFF000) >> 12) /* > 1D, we have no mapping */

Definition at line 1088 of file html_tables.h.

◆ ENT_STAGE2_INDEX

#define ENT_STAGE2_INDEX ( k)
Value:
(((k) & 0xFC0) >> 6)

Definition at line 1089 of file html_tables.h.

◆ ENT_STAGE3_INDEX

#define ENT_STAGE3_INDEX ( k)
Value:
((k) & 0x3F)

Definition at line 1090 of file html_tables.h.

◆ LONGEST_ENTITY_LENGTH

#define LONGEST_ENTITY_LENGTH   31

Definition at line 77 of file html_tables.h.

Typedef Documentation

◆ entity_ht_bucket

Definition at line 2609 of file html_tables.h.

◆ entity_stage1_row

typedef const entity_stage3_row* const* entity_stage1_row

Definition at line 1124 of file html_tables.h.

◆ entity_stage2_row

Definition at line 1121 of file html_tables.h.

Enumeration Type Documentation

◆ entity_charset

Enumerator
cs_utf_8 
cs_8859_1 
cs_cp1252 
cs_8859_15 
cs_cp1251 
cs_8859_5 
cs_cp866 
cs_macroman 
cs_koi8r 
cs_big5 
cs_gb2312 
cs_big5hkscs 
cs_sjis 
cs_eucjp 
cs_numelems 

Definition at line 27 of file html_tables.h.

Variable Documentation

◆ charset

enum entity_charset charset

Definition at line 39 of file html_tables.h.

◆ codeset

const char* codeset

Definition at line 37 of file html_tables.h.

◆ codeset_len

uint32_t codeset_len

Definition at line 38 of file html_tables.h.