Next: , Previous: Functions and Variables for input and output, Up: stringproc   [Contents][Index]

79.3 Functions and Variables for characters

関数: alphacharp (char)

もしcharがアルファベット文字ならtrueを返します。

関数: alphanumericp (char)

もしcharがアルファベット文字か数字ならtrueを返します。

関数: ascii (int)

ASCIIコードint( -1 < int < 256 )に対応する文字を返します。

(%i1) for n from 0 thru 255 do ( 
   tmp: ascii(n), if alphacharp(tmp) then sprint(tmp),
      if n=96 then newline() )$
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 
a b c d e f g h i j k l m n o p q r s t u v w x y z
関数: cequal (char_1, char_2)

もしchar_1char_2が同じならtrueを返します。

関数: cequalignore (char_1, char_2)

cequalと同様ですが、文字の大小を無視します。

関数: cgreaterp (char_1, char_2)

もしchar_1のASCIIコードがchar_2のそれより大きいならtrueを返します。

関数: cgreaterpignore (char_1, char_2)

cgreaterpと同様ですが、文字の大小を無視します。

関数: charp (obj)

もしobjがMaxima-文字ならtrueを返します。 例えばイントロダクションを参照してください。

関数: cint (char)

charのASCIIコードを返します。

関数: clessp (char_1, char_2)

もしchar_1のASCIIコードがchar_2のそれより小さいならtrueを返します。

関数: clesspignore (char_1, char_2)

clesspと同様ですが、文字の大小を無視します。

関数: constituent (char)

もしcharがグラフィック文字であり、スペース文字でないなら、 trueを返します。 グラフィック文字は見ることができる文字とスペース文字です。 (constituentは、Paul Graham, ANSI Common Lisp, 1996, page 67で定義されています。)

(%i1) for n from 0 thru 255 do ( 
tmp: ascii(n), if constituent(tmp) then sprint(tmp) )$
! " #  %  ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B
C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c
d e f g h i j k l m n o p q r s t u v w x y z { | } ~
関数: cunlisp (lisp_char)

Lisp文字をMaxima文字に変換します。 (必要としないでしょう。)

関数: digitcharp (char)

もしcharが0から9までの数字なら、 trueを返します。

関数: lcharp (obj)

もし objがLisp文字なら、trueを返します。 (必要としないでしょう。)

関数: lowercasep (char)

もしcharが小文字なら、trueを返します。

変数: newline

改行文字。

変数: space

スペース文字。

変数: tab

タブ文字。

関数: uppercasep (char)

もしcharが大文字なら、trueを返します。


Next: , Previous: Functions and Variables for input and output, Up: stringproc   [Contents][Index]