1996-07-25 22:56:11 +00:00
|
|
|
|
/* classes: h_files */
|
|
|
|
|
|
|
2001-08-31 10:42:19 +00:00
|
|
|
|
#ifndef SCM_CHARS_H
|
|
|
|
|
|
#define SCM_CHARS_H
|
|
|
|
|
|
|
2006-04-17 00:05:42 +00:00
|
|
|
|
/* Copyright (C) 1995,1996,2000,2001,2004, 2006 Free Software Foundation, Inc.
|
2001-08-31 10:42:19 +00:00
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2001-08-31 10:42:19 +00:00
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
1996-07-25 22:56:11 +00:00
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
|
* Lesser General Public License for more details.
|
2001-08-31 10:42:19 +00:00
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2005-05-23 19:57:22 +00:00
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2003-04-05 19:15:35 +00:00
|
|
|
|
*/
|
2001-08-31 10:42:19 +00:00
|
|
|
|
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
* alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
feature.h, filesys.h, fports.h, gc.h, gdbint.h, genio.h, gsubr.h,
hash.h, init.h, ioext.h, kw.h, list.h, markers.h, marksweep.h,
mbstrings.h, numbers.h, objprop.h, options.h, pairs.h, ports.h,
posix.h, print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
vports.h, weaks.h: #include "libguile/__scm.h", not
<libguile/__scm.h>. This allows 'gcc -MM' to determine which
dependencies are within libguile properly.
1996-09-05 21:19:08 +00:00
|
|
|
|
#include "libguile/__scm.h"
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Immediate Characters
|
|
|
|
|
|
*/
|
2000-03-02 20:54:43 +00:00
|
|
|
|
#define SCM_CHARP(x) (SCM_ITAG8(x) == scm_tc8_char)
|
|
|
|
|
|
#define SCM_CHAR(x) ((unsigned int)SCM_ITAG8_DATA(x))
|
2004-04-06 21:48:02 +00:00
|
|
|
|
#define SCM_MAKE_CHAR(x) SCM_MAKE_ITAG8((scm_t_bits) (unsigned char) (x), scm_tc8_char)
|
2000-03-02 20:54:43 +00:00
|
|
|
|
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API char *const scm_charnames[];
|
|
|
|
|
|
SCM_API int scm_n_charnames;
|
|
|
|
|
|
SCM_API const char scm_charnums[];
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API SCM scm_char_p (SCM x);
|
|
|
|
|
|
SCM_API SCM scm_char_eq_p (SCM x, SCM y);
|
|
|
|
|
|
SCM_API SCM scm_char_less_p (SCM x, SCM y);
|
|
|
|
|
|
SCM_API SCM scm_char_leq_p (SCM x, SCM y);
|
|
|
|
|
|
SCM_API SCM scm_char_gr_p (SCM x, SCM y);
|
|
|
|
|
|
SCM_API SCM scm_char_geq_p (SCM x, SCM y);
|
|
|
|
|
|
SCM_API SCM scm_char_ci_eq_p (SCM x, SCM y);
|
|
|
|
|
|
SCM_API SCM scm_char_ci_less_p (SCM x, SCM y);
|
|
|
|
|
|
SCM_API SCM scm_char_ci_leq_p (SCM x, SCM y);
|
|
|
|
|
|
SCM_API SCM scm_char_ci_gr_p (SCM x, SCM y);
|
|
|
|
|
|
SCM_API SCM scm_char_ci_geq_p (SCM x, SCM y);
|
|
|
|
|
|
SCM_API SCM scm_char_alphabetic_p (SCM chr);
|
|
|
|
|
|
SCM_API SCM scm_char_numeric_p (SCM chr);
|
|
|
|
|
|
SCM_API SCM scm_char_whitespace_p (SCM chr);
|
|
|
|
|
|
SCM_API SCM scm_char_upper_case_p (SCM chr);
|
|
|
|
|
|
SCM_API SCM scm_char_lower_case_p (SCM chr);
|
|
|
|
|
|
SCM_API SCM scm_char_is_both_p (SCM chr);
|
|
|
|
|
|
SCM_API SCM scm_char_to_integer (SCM chr);
|
|
|
|
|
|
SCM_API SCM scm_integer_to_char (SCM n);
|
|
|
|
|
|
SCM_API SCM scm_char_upcase (SCM chr);
|
|
|
|
|
|
SCM_API SCM scm_char_downcase (SCM chr);
|
2004-04-06 21:48:02 +00:00
|
|
|
|
SCM_API int scm_c_upcase (unsigned int c);
|
|
|
|
|
|
SCM_API int scm_c_downcase (unsigned int c);
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API void scm_init_chars (void);
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
2001-08-31 10:42:19 +00:00
|
|
|
|
#endif /* SCM_CHARS_H */
|
2000-03-19 19:01:16 +00:00
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
|
c-file-style: "gnu"
|
|
|
|
|
|
End:
|
|
|
|
|
|
*/
|