comparison man/lispref/strings.texi @ 5863:15041705c196

Provide `char-code-limit', implement the GNU equivalent in terms of it. src/ChangeLog addition: 2015-03-15 Aidan Kehoe <kehoea@parhasard.net> * text.h: Make CHAR_CODE_LIMIT available as a #define. * text.h (valid_ichar_p): Use it. * text.c: Make a fixnum Vchar_code_limit available here. * text.c (non_ascii_valid_ichar_p): Use CHAR_CODE_LIMIT. * text.c (vars_of_text): Make `char-code-limit' available to Lisp. tests/ChangeLog addition: 2015-03-15 Aidan Kehoe <kehoea@parhasard.net> * automated/mule-tests.el (test-chars): Use char-code-limit explicitly here, instead of hardcoding the corresponding values. lisp/ChangeLog addition: 2015-03-16 Aidan Kehoe <kehoea@parhasard.net> * obsolete.el (max-char): Make this available for compatiblity with GNU, implement it in terms of char-code-limit.
author Aidan Kehoe <kehoea@parhasard.net>
date Mon, 16 Mar 2015 00:09:46 +0000
parents 9fae6227ede5
children e0f1dfaa821e
comparison
equal deleted inserted replaced
5862:5b799fa6d75e 5863:15041705c196
327 This function converts an integer into the equivalent character. Not 327 This function converts an integer into the equivalent character. Not
328 all integers correspond to valid characters; use @code{char-int-p} to 328 all integers correspond to valid characters; use @code{char-int-p} to
329 determine whether this is the case. If the integer cannot be converted, 329 determine whether this is the case. If the integer cannot be converted,
330 @code{nil} is returned. 330 @code{nil} is returned.
331 @end defun 331 @end defun
332
333 @defvar char-code-limit
334 This is a constant integer describing an exclusive upper bound on the
335 results return by @code{char-int} and that set of integers (fixnums) for
336 which @code{int-char} will give non-nil. Without @sc{mule}
337 (internationalization) support this will be @code{#x100}, as described
338 under @code{char-int}, but with @sc{mule} support the range of values is
339 much bigger, at least 21 bits' worth. If an integer is less than
340 @var{char-code-limit}, it may still not have an associated character, it
341 is still necessary to check with the next function, @code{char-int-p}.
342 @end defvar
332 343
333 @defun char-int-p object 344 @defun char-int-p object
334 This function returns @code{t} if @var{object} is an integer that can be 345 This function returns @code{t} if @var{object} is an integer that can be
335 converted into a character. 346 converted into a character.
336 @end defun 347 @end defun