Lines Matching refs:chars

390         private final char[] chars;     // characters in LDAP name being parsed
391 private final int len; // length of "chars"
392 private int cur = 0; // index of first unconsumed char in "chars"
402 chars = name.toCharArray();
419 if (chars[cur] == ',' || chars[cur] == ';') {
451 if (cur >= len || chars[cur] != '=') {
460 if (cur >= len || chars[cur] != '+') {
479 char c = chars[cur];
490 while ((cur > beg) && (chars[cur - 1] == ' ')) {
497 return new String(chars, beg, cur - beg);
506 if (cur < len && chars[cur] == '#') {
508 } else if (cur < len && chars[cur] == '"') {
519 Character.isLetterOrDigit(chars[cur])) {
522 return new String(chars, beg, cur - beg);
530 while ((cur < len) && chars[cur] != '"') {
531 if (chars[cur] == '\\') {
541 return new String(chars, beg, cur - beg);
550 if (chars[cur] == '\\') {
563 if (!isWhitespace(chars[end - 1]) || (esc == end - 1)) {
567 return new String(chars, beg, end - beg);
571 while ((cur < len) && isWhitespace(chars[cur])) {
582 (chars[cur] == ',' ||
583 chars[cur] == ';' ||
584 chars[cur] == '+'));
754 * hex-encoded UTF-8 converted to 16-bit Unicode chars.
796 char[] chars = val.toCharArray();
801 for (lead = 0; lead < chars.length; lead++) {
802 if (!isWhitespace(chars[lead])) {
807 for (trail = chars.length - 1; trail >= 0; trail--) {
808 if (!isWhitespace(chars[trail])) {
813 for (int i = 0; i < chars.length; i++) {
814 char c = chars[i];
845 * Unicode chars. Returns a string value as a String, and a
850 char[] chars = val.toCharArray();
852 int end = chars.length;
855 while ((beg < end) && isWhitespace(chars[beg])) {
858 while ((beg < end) && isWhitespace(chars[end - 1])) {
866 if (end != chars.length &&
868 chars[end - 1] == '\\') {
875 if (chars[beg] == '#') {
877 return decodeHexPairs(chars, ++beg, end);
881 if ((chars[beg] == '\"') && (chars[end - 1] == '\"')) {
890 if ((chars[i] == '\\') && (i + 1 < end)) {
891 if (!Character.isLetterOrDigit(chars[i + 1])) {
893 buf.append(chars[i]); // snarf escaped char
897 // Convert hex-encoded UTF-8 to 16-bit chars.
898 byte[] utf8 = getUtf8Octets(chars, i, end);
913 buf.append(chars[i]); // snarf unescaped char
929 * Given an array of chars (with starting and ending indexes into it)
933 private static byte[] decodeHexPairs(char[] chars, int beg, int end) {
936 int hi = Character.digit(chars[beg], 16);
937 int lo = Character.digit(chars[beg + 1], 16);
946 "Illegal attribute value: #" + new String(chars));
952 * Given an array of chars (with starting and ending indexes into it),
959 private static byte[] getUtf8Octets(char[] chars, int beg, int end) {
964 (chars[beg++] == '\\')) {
965 int hi = Character.digit(chars[beg++], 16);
966 int lo = Character.digit(chars[beg++], 16);