Function: get-unused-iso-final-char

get-unused-iso-final-char is a function defined in charset.c.

Signature

(get-unused-iso-final-char DIMENSION CHARS)

Documentation

Return an unused ISO final char for a charset of DIMENSION and CHARS.

DIMENSION is the number of bytes to represent a character: 1 or 2. CHARS is the number of characters in a dimension: 94 or 96.

This final char is for private use, thus the range is 0 (48) .. ? (63). If there's no unused final char for the specified kind of charset, return nil.

Source Code

// Defined in /usr/src/emacs/src/charset.c
{
  bool chars_flag = check_iso_charset_parameter (dimension, chars,
						 make_fixnum ('0'));
  for (int final_char = '0'; final_char <= '?'; final_char++)
    if (ISO_CHARSET_TABLE (XFIXNUM (dimension), chars_flag, final_char) < 0)
      return make_fixnum (final_char);
  return Qnil;
}