Lines Matching refs:chars

535             char[] chars = val.toCharArray();
540 for (lead = 0; lead < chars.length; lead++) {
541 if (!isWhitespace(chars[lead])) {
546 for (trail = chars.length - 1; trail >= 0; trail--) {
547 if (!isWhitespace(chars[trail])) {
552 for (int i = 0; i < chars.length; i++) {
553 char c = chars[i];
604 char[] chars = val.toCharArray();
606 int end = chars.length;
609 while ((beg < end) && isWhitespace(chars[beg])) {
613 while ((beg < end) && isWhitespace(chars[end - 1])) {
620 if (end != chars.length &&
622 chars[end - 1] == '\\') {
629 if (chars[beg] == '#') {
631 return decodeHexPairs(chars, ++beg, end);
635 if ((chars[beg] == '\"') && (chars[end - 1] == '\"')) {
644 if ((chars[i] == '\\') && (i + 1 < end)) {
645 if (!Character.isLetterOrDigit(chars[i + 1])) {
647 builder.append(chars[i]); // snarf escaped char
651 // Convert hex-encoded UTF-8 to 16-bit chars.
652 byte[] utf8 = getUtf8Octets(chars, i, end);
669 builder.append(chars[i]); // snarf unescaped char
684 * Given an array of chars (with starting and ending indexes into it)
688 private static byte[] decodeHexPairs(char[] chars, int beg, int end) {
691 int hi = Character.digit(chars[beg], 16);
692 int lo = Character.digit(chars[beg + 1], 16);
701 "Illegal attribute value: " + new String(chars));
707 * Given an array of chars (with starting and ending indexes into it),
714 private static byte[] getUtf8Octets(char[] chars, int beg, int end) {
719 (chars[beg++] == '\\')) {
720 int hi = Character.digit(chars[beg++], 16);
721 int lo = Character.digit(chars[beg++], 16);