diff options
| author | Kenichi Handa | 2002-05-10 03:55:12 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-05-10 03:55:12 +0000 |
| commit | ac6a8028669701ce4836595fe73c8a757cc4ca70 (patch) | |
| tree | b81e6e5cdfbc58f86a06d7ddf92ff8f18c7fd208 /src | |
| parent | 69f8de5b05d006686ef2b9c244bd4370a09d21ff (diff) | |
| download | emacs-ac6a8028669701ce4836595fe73c8a757cc4ca70.tar.gz emacs-ac6a8028669701ce4836595fe73c8a757cc4ca70.zip | |
(struct charset): New member `code_space_mask'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/charset.h b/src/charset.h index 6d8068abd59..4a21d8e2d81 100644 --- a/src/charset.h +++ b/src/charset.h | |||
| @@ -132,9 +132,20 @@ struct charset | |||
| 132 | /* Dimension of the charset: 1, 2, 3, or 4. */ | 132 | /* Dimension of the charset: 1, 2, 3, or 4. */ |
| 133 | int dimension; | 133 | int dimension; |
| 134 | 134 | ||
| 135 | /* Minimum byte code in each dimension. */ | 135 | /* Byte code range of each dimension. <code_space>[4N] is a mininum |
| 136 | byte code of the (N+1)th dimension, <code_space>[4N+1] is a | ||
| 137 | maximum byte code of the (N+1)th dimension, <code_space>[4N+2] is | ||
| 138 | (<code_space>[4N+1] - <code_space>[4N] + 1), <code_space>[4N+3] | ||
| 139 | is a number of characters containd in the first to (N+1)th | ||
| 140 | dismesions. We get `char-index' of a `code-point' from this | ||
| 141 | information. */ | ||
| 136 | int code_space[16]; | 142 | int code_space[16]; |
| 137 | 143 | ||
| 144 | /* If B is a byte of Nth dimension of a code-point, the (N-1)th bit | ||
| 145 | of code_space_mask[B] is set. This array is used to quickly | ||
| 146 | check if a code-point is in a valid range. */ | ||
| 147 | unsigned char *code_space_mask; | ||
| 148 | |||
| 138 | /* 1 if there's no gap in code-points. */ | 149 | /* 1 if there's no gap in code-points. */ |
| 139 | int code_linear_p; | 150 | int code_linear_p; |
| 140 | 151 | ||