Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Updated to defines to what expat uses. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
b23076ff1f070e980727eed64214b452 |
User & Date: | rolf 2024-06-28 00:07:11 |
Context
2024-06-29
| ||
01:35 | wip Leaf check-in: 2184b00aca user: rolf tags: HTML5CustomNames | |
2024-06-28
| ||
00:07 | Updated to defines to what expat uses. Leaf check-in: b23076ff1f user: rolf tags: trunk | |
2024-06-26
| ||
10:22 | Now in fact fixed [5fec5cdc5d]. check-in: d1f90f5c0e user: rolf tags: trunk | |
Changes
Changes to generic/dom.h.
︙ | ︙ | |||
195 196 197 198 199 200 201 | between the bottom 5 and 6 bits of the bytes. We need 8 bits to index into pages, 3 bits to add to that index and 5 bits to generate the mask. */ #define UTF8_GET_NAMING2(pages, byte) \ (namingBitmap[((pages)[(((byte)[0]) >> 2) & 7] << 3) \ + ((((byte)[0]) & 3) << 1) \ + ((((byte)[1]) >> 5) & 1)] \ | | | | 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | between the bottom 5 and 6 bits of the bytes. We need 8 bits to index into pages, 3 bits to add to that index and 5 bits to generate the mask. */ #define UTF8_GET_NAMING2(pages, byte) \ (namingBitmap[((pages)[(((byte)[0]) >> 2) & 7] << 3) \ + ((((byte)[0]) & 3) << 1) \ + ((((byte)[1]) >> 5) & 1)] \ & (1u << (((byte)[1]) & 0x1F))) /* A 3 byte UTF-8 representation splits the characters 16 bits between the bottom 4, 6 and 6 bits of the bytes. We need 8 bits to index into pages, 3 bits to add to that index and 5 bits to generate the mask. */ #define UTF8_GET_NAMING3(pages, byte) \ (namingBitmap[((pages)[((((byte)[0]) & 0xF) << 4) \ + ((((byte)[1]) >> 2) & 0xF)] \ << 3) \ + ((((byte)[1]) & 3) << 1) \ + ((((byte)[2]) >> 5) & 1)] \ & (1u << (((byte)[2]) & 0x1F))) #define UTF8_GET_NAMING_NMTOKEN(p, n) \ ((n) == 1 \ ? nameChar7Bit[(int)(*(p))] \ : ((n) == 2 \ ? UTF8_GET_NAMING2(namePages, (const unsigned char *)(p)) \ : ((n) == 3 \ |
︙ | ︙ |