1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377
|
@node Characters, Lists, Sequences and Arrays and Hash Tables, Top
@chapter Characters
@defun NAME-CHAR (name)
Package:LISP
Given an argument acceptable to string,
Returns a character object whose name is NAME if one exists. Returns NIL
otherwise. NAME must be an object that can be coerced to a string.
@end defun
@defun CHAR-NAME (char)
Package:LISP
Returns the name for CHAR as a string; NIL if CHAR has no name.
Only #\Backspace, #\Tab, #\Newline (or #\Linefeed), #\Page, #\Return,
and #\Rubout have names.
@end defun
@defun BOTH-CASE-P (char)
Package:LISP
Returns T if CHAR is an alphabetic character; NIL otherwise. Equivalent to
ALPHA-CHAR-P.
@end defun
@defun SCHAR (simple-string index)
Package:LISP
Returns the character object representing the INDEX-th character in STRING.
This is faster than CHAR.
@end defun
@defvr {Constant} CHAR-SUPER-BIT
Package:SI
The bit that indicates a super character.
@end defvr
@defvr {Constant} CHAR-FONT-LIMIT
Package:SI
The upper exclusive bound on values produced by CHAR-FONT.
@end defvr
@defun CHAR-DOWNCASE (char)
Package:LISP
Returns the lower-case equivalent of CHAR, if any.
If not, simply returns CHAR.
@end defun
@defun STRING-CHAR-P (char)
Package:SI
Returns T if CHAR can be stored in a string. In GCL, this function always
returns T since any character in GCL can be stored in a string.
@end defun
@defun CHAR-NOT-LESSP (char &rest more-chars)
Package:LISP
Returns T if the codes of CHARs are in strictly non-increasing order; NIL
otherwise. For a lower-case character, the code of its upper-case equivalent
is used.
@end defun
@defun DISASSEMBLE (thing)
Package:LISP
Compiles the form specified by THING and prints the intermediate C language
code for that form. But does NOT install the result of compilation.
If THING is a symbol that names a not-yet-compiled function, the function
definition is disassembled.
If THING is a lambda expression, it is disassembled as a function definition.
Otherwise, THING itself is disassembled as a top-level form.
@end defun
@defun LOWER-CASE-P (char)
Package:LISP
Returns T if CHAR is a lower-case character; NIL otherwise.
@end defun
@defun CHAR<= (char &rest more-chars)
Package:LISP
Returns T if the codes of CHARs are in strictly non-decreasing order; NIL
otherwise.
@end defun
@defvr {Constant} CHAR-HYPER-BIT
Package:SI
The bit that indicates a hyper character.
@end defvr
@defun CODE-CHAR (code &optional (bits 0) (font 0))
Package:LISP
Returns a character object with the specified code, if any.
If not, returns NIL.
@end defun
@defun CHAR-CODE (char)
Package:LISP
Returns the code attribute of CHAR.
@end defun
@defvr {Constant} CHAR-CONTROL-BIT
Package:SI
The bit that indicates a control character.
@end defvr
@defun CHAR-LESSP (char &rest more-chars)
Package:LISP
Returns T if the codes of CHARs are in strictly increasing order; NIL
otherwise. For a lower-case character, the code of its upper-case equivalent
is used.
@end defun
@defun CHAR-FONT (char)
Package:SI
Returns the font attribute of CHAR.
@end defun
@defun CHAR< (char &rest more-chars)
Package:LISP
Returns T if the codes of CHARs are in strictly increasing order; NIL otherwise.
@end defun
@defun CHAR>= (char &rest more-chars)
Package:LISP
Returns T if the codes of CHARs are in strictly non-increasing order; NIL
otherwise.
@end defun
@defvr {Constant} CHAR-META-BIT
Package:SI
The bit that indicates a meta character.
@end defvr
@defun GRAPHIC-CHAR-P (char)
Package:LISP
Returns T if CHAR is a printing character, i.e., #\Space through #\~;
NIL otherwise.
@end defun
@defun CHAR-NOT-EQUAL (char &rest more-chars)
Package:LISP
Returns T if no two of CHARs are the same character; NIL otherwise.
Upper case character and its lower case equivalent are regarded the same.
@end defun
@defvr {Constant} CHAR-BITS-LIMIT
Package:SI
The upper exclusive bound on values produced by CHAR-BITS.
@end defvr
@defun CHARACTERP (x)
Package:LISP
Returns T if X is a character; NIL otherwise.
@end defun
@defun CHAR= (char &rest more-chars)
Package:LISP
Returns T if all CHARs are the same character; NIL otherwise.
@end defun
@defun ALPHA-CHAR-P (char)
Package:LISP
Returns T if CHAR is an alphabetic character, A-Z or a-z; NIL otherwise.
@end defun
@defun UPPER-CASE-P (char)
Package:LISP
Returns T if CHAR is an upper-case character; NIL otherwise.
@end defun
@defun CHAR-BIT (char name)
Package:SI
Returns T if the named bit is on in the character CHAR; NIL otherwise.
In GCL, this function always returns NIL.
@end defun
@defun MAKE-CHAR (char &optional (bits 0) (font 0))
Package:SI
Returns a character object with the same code attribute as CHAR and with
the specified BITS and FONT attributes.
@end defun
@defun CHARACTER (x)
Package:LISP
Coerces X into a character object if possible.
@end defun
@defun CHAR-EQUAL (char &rest more-chars)
Package:LISP
Returns T if all of its arguments are the same character; NIL otherwise.
Upper case character and its lower case equivalent are regarded the same.
@end defun
@defun CHAR-NOT-GREATERP (char &rest more-chars)
Package:LISP
Returns T if the codes of CHARs are in strictly non-decreasing order; NIL
otherwise. For a lower-case character, the code of its upper-case equivalent
is used.
@end defun
@defun CHAR> (char &rest more-chars)
Package:LISP
Returns T if the codes of CHARs are in strictly decreasing order; NIL
otherwise.
@end defun
@defun STANDARD-CHAR-P (char)
Package:LISP
Returns T if CHAR is a standard character, i.e., one of the 95 ASCII printing
characters #\Space to #\~ and #Newline; NIL otherwise.
@end defun
@defun CHAR-UPCASE (char)
Package:LISP
Returns the upper-case equivalent of CHAR, if any.
If not, simply returns CHAR.
@end defun
@defun DIGIT-CHAR-P (char &optional (radix 10))
Package:LISP
If CHAR represents a digit in RADIX, then returns the weight as an integer.
Otherwise, returns nil.
@end defun
@defun CHAR/= (char &rest more-chars)
Package:LISP
Returns T if no two of CHARs are the same character; NIL otherwise.
@end defun
@defun CHAR-GREATERP (char &rest more-chars)
Package:LISP
Returns T if the codes of CHARs are in strictly decreasing order; NIL
otherwise. For a lower-case character, the code of its upper-case equivalent
is used.
@end defun
@defun ALPHANUMERICP (char)
Package:LISP
Returns T if CHAR is either numeric or alphabetic; NIL otherwise.
@end defun
@defun CHAR-BITS (char)
Package:SI
Returns the bits attribute (which is always 0 in GCL) of CHAR.
@end defun
@defun DIGIT-CHAR (digit &optional (radix 10) (font 0))
Package:LISP
Returns a character object that represents the DIGIT in the specified RADIX.
Returns NIL if no such character exists.
@end defun
@defun SET-CHAR-BIT (char name newvalue)
Package:SI
Returns a character just like CHAR except that the named bit is set or
cleared, according to whether NEWVALUE is non-NIL or NIL. This function
is useless in GCL.
@end defun
|