Function: map-charset-chars
map-charset-chars is a function defined in charset.c.
Signature
(map-charset-chars FUNCTION CHARSET &optional ARG FROM-CODE TO-CODE)
Documentation
Call FUNCTION for all characters in CHARSET.
Optional 3rd argument ARG is an additional argument to be passed
to FUNCTION, see below.
Optional 4th and 5th arguments FROM-CODE and TO-CODE specify the
range of code points (in CHARSET) of target characters on which to
map the FUNCTION. Note that these are not character codes, but code
points of CHARSET; for the difference see decode-char and
list-charset-chars. If FROM-CODE is nil or imitted, it stands for
the first code point of CHARSET; if TO-CODE is nil or omitted, it
stands for the last code point of CHARSET.
FUNCTION will be called with two arguments: RANGE and ARG. RANGE is a cons (FROM . TO), where FROM and TO specify a range of characters that belong to CHARSET on which FUNCTION should do its job. FROM and TO are Emacs character codes, unlike FROM-CODE and TO-CODE, which are CHARSET code points.
Source Code
// Defined in /usr/src/emacs/src/charset.c
{
struct charset *cs;
unsigned from, to;
CHECK_CHARSET_GET_CHARSET (charset, cs);
if (NILP (from_code))
from = CHARSET_MIN_CODE (cs);
else
{
from = XFIXNUM (from_code);
if (from < CHARSET_MIN_CODE (cs))
from = CHARSET_MIN_CODE (cs);
}
if (NILP (to_code))
to = CHARSET_MAX_CODE (cs);
else
{
to = XFIXNUM (to_code);
if (to > CHARSET_MAX_CODE (cs))
to = CHARSET_MAX_CODE (cs);
}
map_charset_chars (NULL, function, arg, cs, from, to);
return Qnil;
}