Lines Matching defs:CHARS
33 * public. Using the character as an index into the <code>CHARS</code>
54 private static final byte[] CHARS = new byte[1 << 16];
269 CHARS[j] |= MASK_VALID | MASK_CONTENT;
275 CHARS[specialChar[i]] = (byte)(CHARS[specialChar[i]] & ~MASK_CONTENT);
280 CHARS[spaceChar[i]] |= MASK_SPACE;
285 CHARS[nameStartChar[i]] |= MASK_NAME_START | MASK_NAME |
290 CHARS[j] |= MASK_NAME_START | MASK_NAME |
295 CHARS[letterChar[i]] |= MASK_NAME_START | MASK_NAME |
301 CHARS[nameChar[i]] |= MASK_NAME | MASK_NCNAME;
305 CHARS[j] |= MASK_NAME | MASK_NCNAME;
310 CHARS[j] |= MASK_NAME | MASK_NCNAME;
314 CHARS[combiningCharChar[i]] |= MASK_NAME | MASK_NCNAME;
318 CHARS[j] |= MASK_NAME | MASK_NCNAME;
322 CHARS[extenderChar[i]] |= MASK_NAME | MASK_NCNAME;
325 // remove ':' from allowable MASK_NCNAME_START and MASK_NCNAME chars
326 CHARS[':'] &= ~(MASK_NCNAME_START | MASK_NCNAME);
330 CHARS[pubidChar[i]] |= MASK_PUBID;
334 CHARS[j] |= MASK_PUBID;
406 * <code>CHARS</code> array, then they are responsible for checking
412 return (c < 0x10000 && (CHARS[c] & MASK_VALID) != 0) ||
431 return (c < 0x10000 && (CHARS[c] & MASK_CONTENT) != 0) ||
452 return c < 0x10000 && (CHARS[c] & MASK_SPACE) != 0;
463 return c < 0x10000 && (CHARS[c] & MASK_NAME_START) != 0;
474 return c < 0x10000 && (CHARS[c] & MASK_NAME) != 0;
485 return c < 0x10000 && (CHARS[c] & MASK_NCNAME_START) != 0;
496 return c < 0x10000 && (CHARS[c] & MASK_NCNAME) != 0;
507 return c < 0x10000 && (CHARS[c] & MASK_PUBID) != 0;