version 1.3, 1999/12/21 02:47:34 |
version 1.4, 2000/02/07 07:11:38 |
|
|
@comment $OpenXM$ |
@comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/string.texi,v 1.3 1999/12/21 02:47:34 noro Exp $ |
\BJP |
\BJP |
@node $BJ8;zNs$K4X$9$k1i;;(B,,, $BAH$_9~$_H!?t(B |
@node $BJ8;zNs$K4X$9$k1i;;(B,,, $BAH$_9~$_H!?t(B |
@section $BJ8;zNs$K4X$9$k1i;;(B |
@section $BJ8;zNs$K4X$9$k1i;;(B |
|
|
* rtostr:: |
* rtostr:: |
* strtov:: |
* strtov:: |
* eval_str:: |
* eval_str:: |
|
* strtoascii asciitostr:: |
@end menu |
@end menu |
|
|
\JP @node rtostr,,, $BJ8;zNs$K4X$9$k1i;;(B |
\JP @node rtostr,,, $BJ8;zNs$K4X$9$k1i;;(B |
Line 187 This functions is the inversion function of @code{rtos |
|
Line 188 This functions is the inversion function of @code{rtos |
|
@fref{rtostr} |
@fref{rtostr} |
@end table |
@end table |
|
|
|
\JP @node strtoascii asciitostr,,, $BJ8;zNs$K4X$9$k1i;;(B |
|
\EG @node strtoascii asciitostr,,, Strings |
|
@subsection @code{strtoascii}, @code{asciitostr} |
|
@findex strtoascii |
|
@findex asciitostr |
|
|
|
@table @t |
|
@item strtoascii(@var{str}) |
|
\JP :: $BJ8;zNs$r%"%9%-!<%3!<%I$GI=$9(B. |
|
\EG :: Converts a string into a sequence of ASCII codes. |
|
@item asciitostr(@var{list}) |
|
\JP :: $B%"%9%-!<%3!<%I$NNs$rJ8;zNs$KJQ49$9$k(B. |
|
\EG :: Converts a sequence of ASCII codes into a string. |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
\JP @code{strtoascii()}:$B%j%9%H(B; @code{asciitostr()}:$BJ8;zNs(B |
|
\EG @code{strtoascii()}:list; @code{asciitostr()}:string |
|
@item str |
|
\JP $BJ8;zNs(B |
|
\EG string |
|
@item list |
|
\JP 1 $B0J>e(B 256 $BL$K~$N@0?t$+$i$J$k%j%9%H(B |
|
\EG list containing positive integers less than 256. |
|
@end table |
|
|
|
@itemize @bullet |
|
\BJP |
|
@item |
|
@code{strtoascii()} $B$OJ8;zNs$r@0?t$N%j%9%H$KJQ49$9$k(B. $B3F(B |
|
$B@0?t$OJ8;zNs$N%"%9%-!<%3!<%I$rI=$9(B. |
|
@item |
|
@code{asciitostr()} $B$O(B @code{asciitostr()} $B$N5U4X?t$G$"$k(B. |
|
\E |
|
\BEG |
|
@item |
|
@code{strtoascii()} converts a string into a list of integers |
|
which is a representation of the string by the ASCII code. |
|
@item |
|
@code{asciitostr()} is the inverse of @code{asciitostr()}. |
|
\E |
|
@end itemize |
|
|
|
@example |
|
[0] strtoascii("abcxyz"); |
|
[97,98,99,120,121,122] |
|
[1] asciitostr(@@); |
|
abcxyz |
|
[2] asciitostr([256]); |
|
asciitostr : argument out of range |
|
return to toplevel |
|
@end example |