[BACK]Return to string.texi CVS log [TXT][DIR] Up to [local] / OpenXM / src / asir-doc / parts / builtin

Annotation of OpenXM/src/asir-doc/parts/builtin/string.texi, Revision 1.1.1.1

1.1       noro        1: @node $BJ8;zNs$K4X$9$k1i;;(B,,, $BAH$_9~$_H!?t(B
                      2: @section $BJ8;zNs$K4X$9$k1i;;(B
                      3:
                      4: @menu
                      5: * rtostr::
                      6: * strtov::
                      7: @end menu
                      8:
                      9: @node rtostr,,, $BJ8;zNs$K4X$9$k1i;;(B
                     10: @subsection @code{rtostr}
                     11: @findex rtostr
                     12:
                     13: @table @t
                     14: @item rtostr(@var{obj})
                     15: :: @var{obj} $B$rJ8;zNs$KJQ$($k(B.
                     16: @end table
                     17:
                     18: @table @var
                     19: @item return
                     20: $BJ8;zNs(B
                     21: @item obj
                     22: $BG$0U(B
                     23: @end table
                     24:
                     25: @itemize @bullet
                     26: @item
                     27: $BG$0U$N%*%V%8%'%/%H(B @var{obj} $B$rJ8;zNs$KJQ$($k(B.
                     28: @item
                     29: $B@0?t$J$I$rJ8;zNs$KJQ49$7$FJQ?tL>$H7k9g$9$k$3$H$K$h$j(B,
                     30: $BE:;zIU$-$NITDj85$r@8@.$9$k>l9g$KB?$/MQ$$$i$l$k(B.
                     31: @item
                     32: $B5U$K(B, $BJ8;zNs$rITDj85$KJQ49$9$k;~$K$O(B, @code{strtov} $B$rMQ$$$k(B.
                     33: @end itemize
                     34:
                     35: @example
                     36: [0] A=afo;
                     37: afo
                     38: [1] type(A);
                     39: 2
                     40: [2] B=rtostr(A);
                     41: afo
                     42: [3] type(B);
                     43: 7
                     44: [4] B+"1";
                     45: afo1
                     46: @end example
                     47:
                     48: @table @t
                     49: @item $B;2>H(B
                     50: @fref{strtov}, @fref{type}.
                     51: @end table
                     52:
                     53: @node strtov,,, $BJ8;zNs$K4X$9$k1i;;(B
                     54: @subsection @code{strtov}
                     55: @findex strtov
                     56:
                     57: @table @t
                     58: @item strtov(@var{str})
                     59: :: @var{str} ($BJ8;zNs(B) $B$rITDj85$KJQ$($k(B.
                     60: @end table
                     61:
                     62: @table @var
                     63: @item return
                     64: $BITDj85(B
                     65: @item str
                     66: $BITDj85$H$7$FJQ492DG=$JJ8;zNs(B
                     67: @end table
                     68:
                     69: @itemize @bullet
                     70: @item
                     71: $BITDj85$H$7$FJQ492DG=$JJ8;zNs$rITDj85$KJQ$($k(B.
                     72: @item
                     73: $BITDj85$H$7$FJQ492DG=$JJ8;zNs$H$O(B, $B1Q>.J8;z$G;O$^$j(B,
                     74: $B1Q;z(B, $B?t;z$*$h$S5-9f(B @code{_} $B$G:n$i$l$kJ8;zNs$G$"$k(B.
                     75: @item
                     76: @code{rtostr()} $B$HAH9g$;$F(B, $B%W%m%0%i%`Cf$G<+F0E*$KITDj85$r@8@.$7$?$$;~$K(B
                     77: $BMQ$$$i$l$k(B.
                     78: @end itemize
                     79:
                     80: @example
                     81: [0] A="afo";
                     82: afo
                     83: [1] for (I=0;I<3;I++) @{B=strtov(A+rtostr(I)); print([B,type(B)]);@}
                     84: [afo0,2]
                     85: [afo1,2]
                     86: [afo2,2]
                     87: @end example
                     88:
                     89: @table @t
                     90: @item $B;2>H(B
                     91: @fref{rtostr}, @fref{type}, @fref{uc}.
                     92: @end table
                     93:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>